G
Guest
I have a column of cells with text strings of varying lengths. The last few
characters of each string is an ID that I need to separate out from the rest
of the string. The ID follow the formate 3-characters, dash,
more-characters. Below are some examples of the text strings. I need help
finding a column that will strip out just the ID from each string. I tried
=RIGHT(D98,(LEN(D98)-FIND("-",D98)+4)) but that failed because at least one
string has a dash to the left of the ID. Perhaps there is a way to use the
FIND function, but starting from the right rather than the left? If a
function won’t work, I am open to a VBA solution. Thanks.
Examples:
USD/CDS/MEX/BBVA-Madrid/E02-93622
USD/CDS/COLOMBIA/E04-90881
USD/CDS/MEXICO/E02-91435-A
USD/CDS/MEXICO/M03-90870
characters of each string is an ID that I need to separate out from the rest
of the string. The ID follow the formate 3-characters, dash,
more-characters. Below are some examples of the text strings. I need help
finding a column that will strip out just the ID from each string. I tried
=RIGHT(D98,(LEN(D98)-FIND("-",D98)+4)) but that failed because at least one
string has a dash to the left of the ID. Perhaps there is a way to use the
FIND function, but starting from the right rather than the left? If a
function won’t work, I am open to a VBA solution. Thanks.
Examples:
USD/CDS/MEX/BBVA-Madrid/E02-93622
USD/CDS/COLOMBIA/E04-90881
USD/CDS/MEXICO/E02-91435-A
USD/CDS/MEXICO/M03-90870