Pratap 1987
Board Regular
- Joined
- Feb 28, 2011
- Messages
- 95
Hi there,
I need assitance in building a formula or vba which could pull me the count of non-blank cell after the blank cell.
Please note that we could have multiple blank cells in the same row. The formula or vba should pull the count of non-blank cell only after previous blank cell.
Example:
(Note: in the below example Row # 3 has 2 blank cells. When it finds the blank cells it should locate the last or previous blank cell - in the example from Column F instead of Column C)
[TABLE="class: grid, width: 500, align: left"]
<TBODY>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]Count[/TD]
[/TR]
[TR]
[TD="align: center"]100[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"][/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]250[/TD]
[TD="align: center"]350[/TD]
[TD="align: center"]450[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD="align: center"]100[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"]300[/TD]
[TD="align: center"]400[/TD]
[TD="align: center"][/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]250[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]100[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"][/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"][/TD]
[TD="align: center"]300[/TD]
[TD="align: center"]1[/TD]
[/TR]
</TBODY>[/TABLE]
I need assitance in building a formula or vba which could pull me the count of non-blank cell after the blank cell.
Please note that we could have multiple blank cells in the same row. The formula or vba should pull the count of non-blank cell only after previous blank cell.
Example:
(Note: in the below example Row # 3 has 2 blank cells. When it finds the blank cells it should locate the last or previous blank cell - in the example from Column F instead of Column C)
[TABLE="class: grid, width: 500, align: left"]
<TBODY>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]Count[/TD]
[/TR]
[TR]
[TD="align: center"]100[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"][/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]250[/TD]
[TD="align: center"]350[/TD]
[TD="align: center"]450[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD="align: center"]100[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"]300[/TD]
[TD="align: center"]400[/TD]
[TD="align: center"][/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]250[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]100[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"][/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"][/TD]
[TD="align: center"]300[/TD]
[TD="align: center"]1[/TD]
[/TR]
</TBODY>[/TABLE]