Hi - I need to count the number of times a single or multiple set of columns contain "0" before the next column, which would contain a number. Probably not doing great describing it, but in the below example, I would want the formula to bring a result of 3:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]0[/TD]
[TD]0[/TD]
[TD]12[/TD]
[TD]12[/TD]
[TD]56[/TD]
[TD]35[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]656[/TD]
[TD]654[/TD]
[TD]653[/TD]
[TD]32[/TD]
[TD]32[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]65[/TD]
[TD]0[/TD]
[TD]45[/TD]
[TD]45[/TD]
[/TR]
</tbody>[/TABLE]
So, I need to count the number of sets or number of single 0's within the range. In this case, there are 3 (in red). I also only need to count the sets of 0 after the first >0 cell in the range. So in the example above, I need to count the sets after the 3rd column or the cell with the # 12.
If i could avoid using an array that would be ideal, as I need to calculate this for 20K rows.
Thanks!
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]0[/TD]
[TD]0[/TD]
[TD]12[/TD]
[TD]12[/TD]
[TD]56[/TD]
[TD]35[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]656[/TD]
[TD]654[/TD]
[TD]653[/TD]
[TD]32[/TD]
[TD]32[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]65[/TD]
[TD]0[/TD]
[TD]45[/TD]
[TD]45[/TD]
[/TR]
</tbody>[/TABLE]
So, I need to count the number of sets or number of single 0's within the range. In this case, there are 3 (in red). I also only need to count the sets of 0 after the first >0 cell in the range. So in the example above, I need to count the sets after the 3rd column or the cell with the # 12.
If i could avoid using an array that would be ideal, as I need to calculate this for 20K rows.
Thanks!