MIHeartandSoul
New Member
- Joined
- May 15, 2015
- Messages
- 5
I am looking for assistance please. I am trying to count the number of 0's before there is a 1. Please see below...
<colgroup><col><col span="12"></colgroup><tbody>
</tbody>
So with my example above store #1 has 1 '0' (column K) before there is a '1'.
Store #4 Has 8 '0's before there is a '1'.
Can anyone suggest a formula on how to do this calculation?
Store | A | B | C | D | E | F | G | H | I | J | K | Sum |
1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 1 |
2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 |
3 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 2 |
4 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 |
<colgroup><col><col span="12"></colgroup><tbody>
</tbody>
So with my example above store #1 has 1 '0' (column K) before there is a '1'.
Store #4 Has 8 '0's before there is a '1'.
Can anyone suggest a formula on how to do this calculation?