I want to generate a “target” column based upon values in another 3 columns.
The existing completed columns are “driver”, “Abr1”, “drive2”.
Where “driver” and “drive2” are the same, use “Abr1” value in “target”.
Where they differ, select the value in earlier “Abr1” that corresponds to “drive2” in the same row.
In my hand constructed “target” here, the first 3 rows are identical to “Abr1” because “driver” and “drive2” match.
Then the algorithm uses the value in “drive2” to select a prior corresponding value in “Abr1” for “target” down the column.
Here are the columns:
image:!(/home/jim/Downloads/Pajek_Data/Screenshot_20190723_052400.jpeg “example”)
I have had interesting experiences trying VLOOKUP, INDEX with MATCH, etc. but no success yet. I am resisting writing a custom program as I prefer a standard Calc method I can adapt for future similar tasks.