On Sun, 1 Jan 2006 11:33:39 -0500, "Mike" <windme@cox.net> wrote:
>Happy New Year Everyone,
>
>Using Excel XP.
>
>I have 3 columns of data, A1:C10. I want to count the blanks in C1:C10 ONLY
>if there is data in A1:A10.
>
>Example:
>
> A B C
>----------------------------------------------
> 1 20 6 5
> 2 4 1
> 3 8 6 2
> 4 4 2
> 5 8 1 1
> 6 7 2
> 7 3 2 2
> 8
> 9
> 10
>
>In the above example I need a formula that counts the blanks in C1:C10 but
>only if there is data in A1:A10, so that I get a total of
>3 (C2,C4 & C6 are blank). When I use the countblank function it counts
>all the blanks in C1:C10 (6).
>
>Thanks in advance,
>Mike
>
>
Something like:
=SUMPRODUCT(NOT(ISBLANK(A1:A10))*ISBLANK(C1:C10))
One caveat -- if cell_ref contains a formula, then =ISBLANK(cell_ref)-->FALSE.
If the data in column A is the result of a formula, you may need to test for
whatever it is that the formula is returning to look like an empty cell; or you
could test for a number being present in the cell, if number is the only valid
entry.
--ron
Bookmarks