Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How can I use countif to count BOTH zeros AND blank cells as zer
How can I use countif to count BOTH zeros AND blank cells as zeros?
Wondering if I am unaware of a formula that exists that is less messy than my formula below to achieve this answer. I was going to do this: =COUNTBLANK([range]) + COUNTIF([range], 0) D. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How can I use countif to count BOTH zeros AND blank cells as zer
Part of the problem is blank cells can be due to being *truly* empty, or they
can be "" (such as the result of some formula) =IF(some_condition, "Condition True", "") If the cells are truly empty, you could try =SUMPRODUCT(--(A1:A9=0)) which treats empty cells as 0. But you will get an incorrect result if your "empty" cells actually have an empty string, "". I usually use the solution you've already found. "Danielle" wrote: How can I use countif to count BOTH zeros AND blank cells as zeros? Wondering if I am unaware of a formula that exists that is less messy than my formula below to achieve this answer. I was going to do this: =COUNTBLANK([range]) + COUNTIF([range], 0) D. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
sum of blank cells returns zeros | Excel Worksheet Functions | |||
Average Function (include Blank Cells and Zeros) | Excel Discussion (Misc queries) | |||
References to Blank Cells turn into Zeros | Excel Worksheet Functions | |||
how can I count blank cells as a zero, when using formula please?? | Excel Worksheet Functions | |||
how eliminate zeros in blank cells using paste link | Excel Worksheet Functions |