Excel Dcount multiple criteria

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have these criteria(all need to be fulfilled):

Date Venue Ticketype Postcode

However I want to be able to enter two venues sometimes, and only one other
times. I use Dcount, however it does not work, if I have two criteria one
beneath the other eg:
Venue
York
Castle

=DCOUNT(Data!A1:G200,,A10:F12)
 
The SUMPRODUCT formula can be used with double unary operators to
perform multi-conditional counts, but we'd need to see an example of
your data to suggest a solution. Can you post a sample?
 
DATA TO SEARCH(SHEET:DATA):

A B C D E F G
Date Venue TicketType Amount Postcode YC O
12.3.06 York child 1 yo Y
12.3.06 York adult 1 yo
12.3.06 York family 4 ph
12.3.06 York child 1 O
12.3.06 York senior 1 ne
12.3.06 York senior 1 rh
12.3.06 York adult 1 yo Y
12.3.06 York family 4 ca
12.3.06 York child 1 yo
12.3.06 York child 1 O
12.3.06 York family 4 ph
12.3.06 York adult 1 ca
12.3.06 Castle child 1
12.3.06 Castle family 4 ex
12.3.06 Castle adult 1 ex


CRITERIA(SHEET QUERY):
Date Venue TicketType Postcode YC O
??.3.06 york CHILD y
castle

FORMULA TO CALCULATE ANSWER TO CRITERIA:
=DCOUNT(Data!A1:G200,,A10:F12)
 
Dcount is used to count numbers, use DcountA to include text.
Also, you must specify the column to look in as the second argument.
And the third argument should specify the criteria range.
So if the data is in A1:G16 and the criteria range is H1:N3 then...
=DCOUNTA(A1:G16,"Venue",H1:N3)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"FarmerGemGem"
<[email protected]>
wrote in message
I have these criteria(all need to be fulfilled):

Date Venue Ticketype Postcode

However I want to be able to enter two venues sometimes, and only one other
times. I use Dcount, however it does not work, if I have two criteria one
beneath the other eg:
Venue
York
Castle

=DCOUNT(Data!A1:G200,,A10:F12)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top