ollyhughes1982
Well-known Member
- Joined
- Nov 27, 2018
- Messages
- 793
- Office Version
- 365
- Platform
- MacOS
Hi,
I have the formula (below) in column GV (GV162).
=IF(E162<>"",(IF(OR(LEFT(C162,6)="Pont y",LEFT(C162,5)="Ponte",LEFT(C162,5)="Ponty"),1,"")),"")
This formula checks whether the value in column C meets the stated criteria of the formula and puts a 1 (conditionally formatted in orange) in the cell if it does, but appears blank if it doesn’t.
This works fine, but what I want to know how to do is, add a formula in the next column (GW) that consecutively numbers any consecutive series of 1s. e.g. In the screenshot I would want to see a 1 in GW161 as it is a run of just one, a blank (or a 0?) in GW162, a 1 in GW163, a 2 in GW164 and a 3 in GW165. GW165 would then be a blank (or a 0?) again, as the run of 3 is over, and so on…
I’ve tried a couple of things, but can’t get them to work.
My endgame is to be able to identify the first time I achieve a run of 4 (or more) in a row (a challenge called ‘The Ponty Express’) and populate the data in the second worksheet (shown below), possibly using some sort of FILTER(SORT formula.
So, this worksheet would only show anything, once a full run of all 4 in 4 consecutive parkruns has been completed.
Link to the example file (small size and opens quickly) is here: Example.xlsx
Thanks in advance!
Olly.
I have the formula (below) in column GV (GV162).
=IF(E162<>"",(IF(OR(LEFT(C162,6)="Pont y",LEFT(C162,5)="Ponte",LEFT(C162,5)="Ponty"),1,"")),"")
This formula checks whether the value in column C meets the stated criteria of the formula and puts a 1 (conditionally formatted in orange) in the cell if it does, but appears blank if it doesn’t.
This works fine, but what I want to know how to do is, add a formula in the next column (GW) that consecutively numbers any consecutive series of 1s. e.g. In the screenshot I would want to see a 1 in GW161 as it is a run of just one, a blank (or a 0?) in GW162, a 1 in GW163, a 2 in GW164 and a 3 in GW165. GW165 would then be a blank (or a 0?) again, as the run of 3 is over, and so on…
I’ve tried a couple of things, but can’t get them to work.
My endgame is to be able to identify the first time I achieve a run of 4 (or more) in a row (a challenge called ‘The Ponty Express’) and populate the data in the second worksheet (shown below), possibly using some sort of FILTER(SORT formula.
So, this worksheet would only show anything, once a full run of all 4 in 4 consecutive parkruns has been completed.
Link to the example file (small size and opens quickly) is here: Example.xlsx
Thanks in advance!
Olly.