Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

dcount or and

ResolvedVersion 2003

Kirstine has attended:
Excel Advanced course

DCount, Or, And

Hello

Is it possible to combine DCOUNT in a formula with OR and AND?

RE: DCount, Or, And

Dear Kirstine

Thank you for attending Excel Advanced Course. I hope you enjoyed the course and benefited from it.

Normally you

RE: DCount, Or, And

Hi Rajeev

Many thanks for your reply. I would appreciate some examples. What I am trying to do is count rows where specific entries are, for example count as one if the salesperson is John, the product is apples and the county is hampshire.

Thanks again
Kirstine

RE: DCount, Or, And

Dear Kristine

Thank you for your response.


Please find attached excel file where I have done a simple DCOUNTA function to get the result that you are looking for!!

I have marked the various sections as database, Criteria Range and The Result for your convenience.

If you notice on cell E18 I have input the DCOUNTA function as below:

=DCOUNTA(A4:C15,C4,A1:C2)

I hope you understand the function and you can try to replace the data of your choice to see if that works for you!!

I hope this helps.

Many thanks

Kindest Regards

Rajeev Rawat
MOS Master Instructor 2000/2003
MCAS Master Instructor 2007

Attached files...

DCOUNTA.xls

Excel tip:

Changing Excel file and worksheet defaults

The appearance of any new Excel files or any new worksheets that are inserted into a file are controlled by two template files, Book.xlt and Sheet.xlt.

By opening, modifying and saving these templates you can change the default settings for all new files and/or all newly inserted sheets.

Use Book.xlt to make change to defaults for new workbooks; and Sheet.xlt to change defaults for sheets.

If you can't find either of these files on your computer, you can create and save them yourself.

You can do this simply by creating a new workbook with the setting you want to use as your defaults; then saving them with the appropriate name in the XLStart folder. If you are using Office 2003, this is usually found in C:\Program Files\Microsoft Office\Office11\XLStart.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.