subtotal blank cells

T

The Rook

I am wanting to count blank cells when using filters. I have tried
=subtotal(9,=countblank(A1:A500)) but it will not accept this formula.

Is there anyway I can do this?
 
P

Pete_UK

Fill a helper column with 1 in every cell, and then you can use this
as a count:

=SUBTOTAL(9,helper_range)

This will give you the count of the filtered (visible) items.

Hope this helps.

Pete
 
G

Gord Dibben

Why use the subtotal function?

Wouldn't =COUNTIF(A1:A500,"") do the same thing?


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Countbalnk Formula 4
Getting Text data using the Data - Subtotal feature 1
counting blanks in a non-consecutive range 3
countifs criteria 4
ABS in SUBTOTAL 3
Subtotal 4
EXCEL 2003 - SUBTOTALS 1
Excel Sumproduct 0

Top