Hi,
I have a working formula to range Chainages:
1. It will check for each Chainage* (Column D) value IF it is valid TRUE/FALSE (Column N)....the OR formula is shown in the fx bar
2. AND lists all consecutive TRUE chainages where they Start (Column P) and End (Column Q)
Formula for column P:
Formula for column Q:
But as you can see in the picture there are some FALSE cells which split 2 larger Ranges of TRUE
Is it possible to force those FALSE values into TRUE with a given Chainage gap value (D2)? e.g.:
IF D2=0 THEN nothing changes in column N
IF D2=2 THEN 2 consecutive FALSE values (enclosed between TRUE values) are changed to TRUE
IF D2=4 THEN 4 consecutive FALSE values (enclosed between TRUE values) are changed to TRUE
Notes:
I have a working formula to range Chainages:
1. It will check for each Chainage* (Column D) value IF it is valid TRUE/FALSE (Column N)....the OR formula is shown in the fx bar
2. AND lists all consecutive TRUE chainages where they Start (Column P) and End (Column Q)
Formula for column P:
Excel Formula:
=IFERROR(INDEX($D$4:$D$58653,AGGREGATE(15,6,(ROW($D$4:$D$58653)-ROW($D$4)+1)/($N$3:$N$58652=FALSE)/($N$4:$N$58653=TRUE),ROWS(P$4:P4))),"")
Excel Formula:
=IFERROR(INDEX($D$4:$D$58653,AGGREGATE(15,6,(ROW($D$4:$D$58653)-ROW($D$4)+1)/($N$3:$N$58652=TRUE)/($N$4:$N$58653<>TRUE),ROWS(Q$4:Q4))-1),"")
But as you can see in the picture there are some FALSE cells which split 2 larger Ranges of TRUE
Is it possible to force those FALSE values into TRUE with a given Chainage gap value (D2)? e.g.:
IF D2=0 THEN nothing changes in column N
IF D2=2 THEN 2 consecutive FALSE values (enclosed between TRUE values) are changed to TRUE
IF D2=4 THEN 4 consecutive FALSE values (enclosed between TRUE values) are changed to TRUE
Notes:
- Chainage is the horizontal distance as measured along a combination of curves and straight lines (curvilinear) between two points
- In this example each value of a column D cell is +1, but it can also be +2 or +5