I would like to have some help regarding a formula that I can use to determine the amount of zeros between two consecutive 1.
Consider following example: 34 columns of which seven are 1 and the rest zeroes:
0 1 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0
1 1 2 8 1 6 1 7
- There is one zero before the first 1.
- There is one zero between the first and the second 1
- There are two zeroes between the second and the third 1
- There are eight zeroes between the third and the fourth 1
.
.
.
There is one zero between the sixth and the seventh 1
- There are seven zeroes after the seventh/last 1
The answer I am looking for is then:
1 1 2 8 1 6 1 7
Imagine that there are over 300 lines (see attached excel file)...it will take ages to do the counting manually...
Is there a formula that I can use to get the result?
Bambynor
Bookmarks