hi,
how to Count number of consecutive non blank cells in a column by macro in excel?
hi,
how to Count number of consecutive non blank cells in a column by macro in excel?
Assuming you want the highest number of consecutive non-blank cells in a column
(for example, if there's 2 non blank cells in D1 and D2, then D3 is empty, but D4:D8 isn't, you want to show "5" for D4,D5,D6,D7 and D8)
Example code for column D.
Please Login or Register to view this content.
Please click the * below if this helps
Or
Please Login or Register to view this content.
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
Hi Sixthsense,
doesn't that count all the filled cells, not specifically the consecutive ones?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks