Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have three columns in a spreadsheet that can contain "A", "Y", "C",
respectively. I'm trying to get a total of each column as to how many time the A,Y, C, occurs in each column - there is a separate column for each letter. I tried setting up the formula as follows: =SUMPRODUCT(C2:C24="A") But, even though I have an A in some of the cells from CD:C24, the total still produces a 0 total. Any suggestions on the formula is appreciated. Thanks Charlie ************************************************** **** Charliec |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Have you tried count if - =countif(C2:C24,"A")
-- John MOS Master Instructor Office 2000, 2002 & 2003 Please reply & rate any replies you get Ice Hockey rules (especially the Wightlink Raiders) "Charliec" wrote: I have three columns in a spreadsheet that can contain "A", "Y", "C", respectively. I'm trying to get a total of each column as to how many time the A,Y, C, occurs in each column - there is a separate column for each letter. I tried setting up the formula as follows: =SUMPRODUCT(C2:C24="A") But, even though I have an A in some of the cells from CD:C24, the total still produces a 0 total. Any suggestions on the formula is appreciated. Thanks Charlie ************************************************** **** Charliec |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Great, works like a charm! Thanks for the tip.
Charlie On Thu, 22 Mar 2007 15:40:08 -0700, John wrote: Have you tried count if - =countif(C2:C24,"A") -- John MOS Master Instructor Office 2000, 2002 & 2003 Please reply & rate any replies you get Ice Hockey rules (especially the Wightlink Raiders) "Charliec" wrote: I have three columns in a spreadsheet that can contain "A", "Y", "C", respectively. I'm trying to get a total of each column as to how many time the A,Y, C, occurs in each column - there is a separate column for each letter. I tried setting up the formula as follows: =SUMPRODUCT(C2:C24="A") But, even though I have an A in some of the cells from CD:C24, the total still produces a 0 total. Any suggestions on the formula is appreciated. Thanks Charlie ************************************************** **** Charliec ************************************************** **** Charliec |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
SUMPRODUCT ignores non-numeric values like TRUE/FALSE so you have to
coerce your calculation into 1/0, e.g.: =SUMPRODUCT(--(C2:C24="A")) However, for one column at a time, you might as well use =COUNTIF(C2:C24,"A") In article , Charliec wrote: I have three columns in a spreadsheet that can contain "A", "Y", "C", respectively. I'm trying to get a total of each column as to how many time the A,Y, C, occurs in each column - there is a separate column for each letter. I tried setting up the formula as follows: =SUMPRODUCT(C2:C24="A") But, even though I have an A in some of the cells from CD:C24, the total still produces a 0 total. Any suggestions on the formula is appreciated. Thanks Charlie ************************************************** **** Charliec |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks
Charlie On Thu, 22 Mar 2007 16:42:36 -0600, JE McGimpsey wrote: SUMPRODUCT ignores non-numeric values like TRUE/FALSE so you have to coerce your calculation into 1/0, e.g.: =SUMPRODUCT(--(C2:C24="A")) However, for one column at a time, you might as well use =COUNTIF(C2:C24,"A") In article , Charliec wrote: I have three columns in a spreadsheet that can contain "A", "Y", "C", respectively. I'm trying to get a total of each column as to how many time the A,Y, C, occurs in each column - there is a separate column for each letter. I tried setting up the formula as follows: =SUMPRODUCT(C2:C24="A") But, even though I have an A in some of the cells from CD:C24, the total still produces a 0 total. Any suggestions on the formula is appreciated. Thanks Charlie ************************************************** **** Charliec ************************************************** **** Charliec |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
=IF(B1,"",SUMPRODUCT(--(B$1:B$5=""),--(A1<A$1:A$5))+1), Biff formula | Excel Worksheet Functions | |||
SUMPRODUCT(--ISNUMBER(FIND("AM",C5:160))*(k5:k160="") | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
Logic of this formula =SUMPRODUCT((A1:A4<"")/COUNTIF(A1:A4,A1:A4& | Excel Discussion (Misc queries) | |||
Sumproduct formula "breaks" when referencing too many cells, why? | Excel Discussion (Misc queries) |