I have a column filled with 0s and 1s like this:
A
1
1
1
0
0
1
0
1
1
0
0
1
0
0
1
What I want to do is simply have another column, with this values being counted until the next limit, like this:
A B
1 1
1 2
1 3
0 1
0 2
1 1
0 1
1 1
1 2
0 1
0 2
1 1
0 1
0 2
1 1
I have searched for an answer, but I only found old posts and formulas that didn't work. This should be a simple thing. I only want one formula and I prefer to use only one column! I'm a noobie in Excel formulas.
Things I've tried but didn't work: