LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default How to count interstitial blank cells?

How can I count the number of blank cells between
the row above and the last nonblank row above, if
the cell in this row is nonblank?

That is, the count is one or more only in the first
nonblank cell following one or more blank cells.

For example, suppose A1:A2 are nonblank, A3:A5
are blank, and A6:A9 are nonblank. I want B6 to
count 3 and B10 to count 4. All other cells in B:B
should be blank (or zero).

I know I can do this easily in VBA.

Is there some way to write a cell formula that only
uses built-in Excel functions -- preferrably not even
add-ins?
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
count number of cells bill gras Excel Worksheet Functions 4 October 3rd 05 07:15 AM
Generating truly blank cells Nat Excel Worksheet Functions 4 September 30th 05 11:39 PM
formula to count cells not blanK pmarques Excel Worksheet Functions 4 August 3rd 05 01:44 PM
Blank Cells in Pivot Tables Greg Excel Discussion (Misc queries) 1 March 16th 05 09:23 PM
Can I count how many grey-filled cells are in a row ? AnthonyG Excel Worksheet Functions 1 February 4th 05 10:08 AM


All times are GMT +1. The time now is 08:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"