Alexander is right.
I think best option is to have a helper column where you record the state, lets say state can be 0, 1, 2, 3. Then with conditional formatting you change the text cell according to this state.
The following process is much easier, select rows with state X, copy, etc
Best