There is list A, containing text.
There is List B, with Letter combinations.
IF there is a text combination present in list A which is also present in list B I would like to replace the the text in A with the corresponding index B.
So for example;
FD --> 0
FC --> 1
C --> 6
FA --> 3
G --> 1
But all other text I would like to keep.
So in fact the same thing as the replace text command does, but than for the entire list.
I did find a python sript, which does the trick for ‘single Letters’ see below. However I also neet it for Letter combinations. Maybe by adding some brckets? (unfortunately I am not a python specialist).
Thank you in advance,