ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   counting with 2 different criteria (https://www.excelbanter.com/excel-discussion-misc-queries/205740-counting-2-different-criteria.html)

roman

counting with 2 different criteria
 
=SUMPRODUCT(('Domestic #''s '!B3:B152="Assigned")*('Domestic #''s
'!K3:K152="New"))

Am I using the right formula? I want to count the amount of times Assigned
and New are both selected. They are on different columns. But the counts I
get are wrong when I manually filter. I checked to make sure there are no
leading spaces i.e _assigned, etc.... I am using a drop down to select
Assigned and New so figure it is not the case. Any other ideas or am I using
the wrong formula.

Thanks

Sheeloo[_2_]

counting with 2 different criteria
 
Try
=SUMPRODUCT(--(B3:B152="Assigned"),--(K3:K152="New"))

I have removed the Sheet name to simplify things... First test on "'Domestic
#'s " sheet itself then you can add back the name.

-- converts True or False values to 1 & 0 so that they can be added...
"Roman" wrote:

=SUMPRODUCT(('Domestic #''s '!B3:B152="Assigned")*('Domestic #''s
'!K3:K152="New"))

Am I using the right formula? I want to count the amount of times Assigned
and New are both selected. They are on different columns. But the counts I
get are wrong when I manually filter. I checked to make sure there are no
leading spaces i.e _assigned, etc.... I am using a drop down to select
Assigned and New so figure it is not the case. Any other ideas or am I using
the wrong formula.

Thanks



All times are GMT +1. The time now is 08:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com