Count blank cells since last entry

G

Guest

I need formula in column M to count number of blank cells in column L since
the last entry
Sheet looks like this:
L2 1 M2
L3 M3
L4 M4
L5 M5
L6 1 M6 3
L7 1 M7 0
L8 M8
L9 1 M9 1

Thank you
Luke
 
G

Guest

Luke,
try typing
=IF(L2<>"",COUNTBLANK($L$2:L2),"")
at Cell M2 and
=IF(L3<>"",COUNTBLANK($L$2:L3)-SUM($M$2:M2),"")
at Cell M3.
Expand the formula of M3 at all remianing rows below it.

You can change the "" with "n.a.", 0 (zero) etc. if you don't want blank
cells.

Hoping that this is what you were looking for.
 
D

Domenic

Try...

M3, copied down:

=IF(L3<>"",COUNTBLANK(INDEX($L$2:L2,MATCH(9.99999999999999E+307,$L$2:L2))
:L3),"")

Hope this helps!
 

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

Array of Labels 4
Nesting IF/OR Statement 14
MS Query 1
Deleting/Clearing duplicate range of cells 4
Static Count blank 13
SQL Query and Form 1
Transposing a Long String 2
Auto-Numbering 10

Top