Hi guys, I am completely stumped on this problem. Could anyone help me please?
I am in need of 2 formulae that concern streaks, or trends, of 1s and 0s.
My data is a single column of just 1s or 0s.
For this data, there are two columns that I would like to calculate:
1st column: Rank in trend
If the data cell is the 1st number in the streak, display 1.
If the data cell is the 2nd number in the streak, display 2.
etc etc
The numbers increase until the pattern is broken and a new streak starts, and this column goes back to 1 again.
2nd column: Length of trend
At the start of every streak this column displays how long the streak is.
All cells which are not at the start of a streak should stay blank.
Example Screenshot: (My actual data goes from A1:A40000)
Solutions using standard formulae instead of VBA are preferred in this case.
I am in need of 2 formulae that concern streaks, or trends, of 1s and 0s.
My data is a single column of just 1s or 0s.
For this data, there are two columns that I would like to calculate:
1st column: Rank in trend
If the data cell is the 1st number in the streak, display 1.
If the data cell is the 2nd number in the streak, display 2.
etc etc
The numbers increase until the pattern is broken and a new streak starts, and this column goes back to 1 again.
2nd column: Length of trend
At the start of every streak this column displays how long the streak is.
All cells which are not at the start of a streak should stay blank.
Example Screenshot: (My actual data goes from A1:A40000)
Solutions using standard formulae instead of VBA are preferred in this case.