Sumproduct-Countif variation

G

Guest

Heloo everybody. The following is my data
No English Maths Science Social
1A1 64 28 40 32
1A10 38 10 27 16
1A11 98 88 100 90
1A12 48 30 36 30
1A13 56 60 26 36
1A14 60 44 51 68
1A15 36 10 12 22
1A16 36 6 7 6
1A17 56 44 52 48
1A18 48 26 18 36
1A19 50 42 41 42
1A2 46 38 31 24
1A20 80 66 58 60
1A21 42 24 28 20
1A22 a a a a
G1= 90
=SUMPRODUCT(--(B2:B16>$G$1)) - giving 1 (actual - 0)
=COUNTIF(B2:B16,">"&$G$1) - resulting 0
When i remove the "a" in the columns sumproduct is giving the correct
answer. How to get correct answer from Sumproduct. Any suggestions, pls
With regards
Sridhar
 
G

Guest

If you including "a" the result should be 2 not 1 or 0, look a the third row
down you see a number 98 is greater than 90 and also any letter is greater
than 90

The formula below will ignore any letter
=SUMPRODUCT(--(ISNUMBER(B2:B16)),--(B2:B16>G1))
 
G

Guest

Thank you Mama for your suggestion. It works. I need clarification for
these formulae also.
f2==SUMPRODUCT(--(B2:B16>G1)*--(C2:C16>G1)*--(D2:D16>G1)*--(E2:E16>G1))

=IF(ROWS($1:1)<=$F$2,INDEX($A$2:$A$16,SMALL(IF(($B$2:$B$16>=$G$1)*($C$2:$C$16>=$G$1)*($D$2:$D$16>=$G$1)*($E$2:$E$16>=$G$1),ROW($B$2:$B$16)-MIN(ROW($A$2:$A$16))+1),ROWS($1:1))),"")
extracts the IDno, that satisfies the criteria. Any suggestion.
Thank you Mama
With regards
Sridhar
 
G

Guest

Don't use "*--" on the first formula, you can either use "*" or ",--" of
course no quotes

ctrl+shift+enter (CSE) on your second formula
 
G

Guest

Thank you Mama. The first one works. But the second array formula is
extracting the IDno. having all "a". How to avoid it?
With regards
Sridhr
 

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

Similar Threads

Formula debugging 3
Formula modification 10
Sumproduct Problem 4
sending an email i always get this error message 1
How to get the array like this? 6
Transpose Macro 1
Creating Ogive Curve 1
Auto calculate 1

Top