Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 229
Default Sumproduct-Countif variation

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Sumproduct-Countif variation

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:B16G1))


"yshridhar" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 229
Default Sumproduct-Countif variation

Thank you Mama for your suggestion. It works. I need clarification for
these formulae also.
f2==SUMPRODUCT(--(B2:B16G1)*--(C2:C16G1)*--(D2:D16G1)*--(E2:E16G1))

=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

"Teethless mama" wrote:

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:B16G1))


"yshridhar" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Sumproduct-Countif variation

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

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


"yshridhar" wrote:

Thank you Mama for your suggestion. It works. I need clarification for
these formulae also.
f2==SUMPRODUCT(--(B2:B16G1)*--(C2:C16G1)*--(D2:D16G1)*--(E2:E16G1))

=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

"Teethless mama" wrote:

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:B16G1))


"yshridhar" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 229
Default Sumproduct-Countif variation

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

"Teethless mama" wrote:

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

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


"yshridhar" wrote:

Thank you Mama for your suggestion. It works. I need clarification for
these formulae also.
f2==SUMPRODUCT(--(B2:B16G1)*--(C2:C16G1)*--(D2:D16G1)*--(E2:E16G1))

=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

"Teethless mama" wrote:

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:B16G1))


"yshridhar" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Variation from the mean? Greenwich_Man Charts and Charting in Excel 1 September 25th 07 03:14 PM
SumProduct + CountIf Sarah Excel Discussion (Misc queries) 2 May 7th 07 09:17 PM
SUMIF variation? Bob Newman Excel Worksheet Functions 8 June 18th 06 09:13 PM
formula for "coefficient of variation" woodendummy Excel Worksheet Functions 1 January 18th 05 05:14 AM
variation on countif? Liz G Excel Worksheet Functions 2 November 1st 04 07:34 PM


All times are GMT +1. The time now is 12:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"