Office Excel 2007
I have a file with two sheets Addresses and Summary.
In a cell on the Summary sheet, I want to count the number of blank cells in
Column B on the Addresses sheet that contains a Heading row.
I can easily count the number of occurences of the word Westridge in Column
E with this:
=COUNTIF(Addresses!E2:E7061,"Westridge")
=COUNTIF(Addresses!B2:B7061," ")
I can't figure how to count the blank cells.
Thanks.
T. Valko - 29 Jun 2007 06:08 GMT
Do you want to count how many times column B has a blank/empty cell and
column E of the same row has Westridge?
=SUMPRODUCT(--(Addresses!B2:B7061=""),--(Addresses!E2:E7061="Westridge"))
If you just want to count blank/empty cells:
=COUNTBLANK(Addresses!B2:B7061)
Biff
> Office Excel 2007
>
[quoted text clipped - 11 lines]
>
> Thanks.
Charles W Davis - 29 Jun 2007 20:43 GMT
Thanks Biff,
Your first answer provided an answer to a question that I hadn't thought of,
but it was great.
Chuck
> Do you want to count how many times column B has a blank/empty cell and
> column E of the same row has Westridge?
[quoted text clipped - 22 lines]
>>
>> Thanks.
T. Valko - 29 Jun 2007 22:45 GMT
You're welcome. Thanks for the feedback!
Biff
> Thanks Biff,
>
[quoted text clipped - 28 lines]
>>>
>>> Thanks.
Trevor Shuttleworth - 29 Jun 2007 06:10 GMT
=COUNTBLANK((Addresses!B2:B7061)
Regards
Trevor
> Office Excel 2007
>
[quoted text clipped - 11 lines]
>
> Thanks.
Harlan Grove - 29 Jun 2007 06:15 GMT
"Charles W Davis" <Anthemwebs@lvcoxmail.com> wrote...
...
>I can't figure how to count the blank cells.
Excel uses two different definitions of blank: ISBLANK(x) = TRUE and
T(x)="". The former means no cell contents whatsoever. The latter means the
cell evaluates as text to the zero length string "". For the former, use
=-SUMPRODUCT(-ISBLANK(range))
for the latter, use
=COUNTIF(range,"") or =COUNTBLANK(range)