ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Multiple Qualifiers (https://www.excelbanter.com/excel-discussion-misc-queries/252369-multiple-qualifiers.html)

HeatherMichelle

Multiple Qualifiers
 
I am trying to do a Count to get the number of locations that have a total of
= 22

This is the incorrect formula:
=SUMPRODUCT(--(Data!$F$1:$F$19272=51160),--(Data!$S$1:$S$19272=22)), my
desired answer would be 1, or 50%

Column F Column D
51160 34
51160 20
230 10
230 62
20 28

JLatham

Multiple Qualifiers
 
The second part of your column, according to your example should refer to
column D, not S.

But if the smaller numbers really are in S, then you need to examine both
columns and make sure the numbers are really numbers, and not text. Your
formula works just fine for me (returns 1) when the proper columns are
referenced).


"HeatherMichelle" wrote:

I am trying to do a Count to get the number of locations that have a total of
= 22

This is the incorrect formula:
=SUMPRODUCT(--(Data!$F$1:$F$19272=51160),--(Data!$S$1:$S$19272=22)), my
desired answer would be 1, or 50%

Column F Column D
51160 34
51160 20
230 10
230 62
20 28



All times are GMT +1. The time now is 06:33 AM.

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