COUNT statement based on 2 criteria
COUNT statement based on 2 criteria
(OP)
Hi
I am trying to put a formula into a worksheet that will count the number of cells, on a separate worksheet, which meet two criteria - namely place name and type.
I have tried the following;
=SUM(('Weekly Referrals '!B:B="Barwood")*('Weekly Referrals '!E:E="S"))
All I get from the result is 0.
Any help would be appreciated!!
Jay
I am trying to put a formula into a worksheet that will count the number of cells, on a separate worksheet, which meet two criteria - namely place name and type.
I have tried the following;
=SUM(('Weekly Referrals '!B:B="Barwood")*('Weekly Referrals '!E:E="S"))
All I get from the result is 0.
Any help would be appreciated!!
Jay





RE: COUNT statement based on 2 criteria
RE: COUNT statement based on 2 criteria
You can probably use your formula, provided you enter it as an array formula (press Ctrl-Enter after entering the formula, instead of Enter)
DCOUNT is better, because it is faster. Array formulas tend to get very slow if you have a lot of data.
Cheers,
Joerd
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
RE: COUNT statement based on 2 criteria
=AND(B1="Barwood",E1="S").
Then where you want the total use
=Countif(G1:Gx,TRUE)
RE: COUNT statement based on 2 criteria
Perhaps it is little bit late. But just look at Thread770-85502