Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have two columns C and D.
I want to count the items in C only if the sales volume in column D ar 0. Here is my formula: =COUNTIF(C4:C57,D4:D57=0) My formula result is 0 which is not correct. What am I doing wrong?? Please help!! -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
try =SUMPRODUCT(--(C4:C57<""),--(D4:D57=0)) -- Regards Frank Kabel Frankfurt, Germany "tratliff " schrieb im Newsbeitrag ... I have two columns C and D. I want to count the items in C only if the sales volume in column D are 0. Here is my formula: =COUNTIF(C4:C57,D4:D57=0) My formula result is 0 which is not correct. What am I doing wrong?? Please help!!! --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That works, but I don't understand the logic of the formula??
Why am I using a SUMPRODUCT to count?? Please help me understand? -- Message posted from http://www.ExcelForum.com |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
see: http://www.xldynamic.com/source/xld.SUMPRODUCT.html -- Regards Frank Kabel Frankfurt, Germany "tratliff " schrieb im Newsbeitrag ... That works, but I don't understand the logic of the formula?? Why am I using a SUMPRODUCT to count?? Please help me understand?? --- Message posted from http://www.ExcelForum.com/ |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Doesn't
=COUNTIF(D4:D57=0) work? If not, is it because of some condition in CO, such as not empty? If so, how about =SUMPRODUCT(--(D4:D57=0),--(C4:C57<"")) -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "tratliff " wrote in message ... I have two columns C and D. I want to count the items in C only if the sales volume in column D are 0. Here is my formula: =COUNTIF(C4:C57,D4:D57=0) My formula result is 0 which is not correct. What am I doing wrong?? Please help!!! --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
COUNTIF - Not an Error | Excel Discussion (Misc queries) | |||
Using "Countif" in macro gives compile error | Excel Discussion (Misc queries) | |||
Countif error using multiple workbooks | Excel Discussion (Misc queries) | |||
countif / sumif function error | Excel Worksheet Functions | |||
COUNTIF or not to COUNTIF on a range in another sheet | Excel Worksheet Functions |