A very simple answer would be to add another column and enter the following formulae:
- In the first row, which always has a ROUTE, enter into cell
B2
the following formula=A2
to read the first ROUTE as a starting point - In the second and all subsequent rows of the new column, use this formula:
=IF(A3="---",B2,A3)
. This will read the value from above in the case of "---" being in the ROUTE column. You can enter the formula in cellB3
and then copy it down to the remaining rows.
Here's a screenshot of the solution. It assumes your first ROUTE is in A2
and the new column is column B
.