hugomiguelnn
New Member
- Joined
- Mar 14, 2021
- Messages
- 5
- Office Version
- 2016
- Platform
- Windows
Dear all,
I am stuck trying to automate a report which contains long strings of data with about 60 different country codes variants.
I have a column text based which is inconsistent, for example:
1) GUIDE, Paper congress 2564 US Zii
2) Geni Radio DOC RU, Team template
What I need to do, is to automate the task of pulling out the country code to a single cell. For example:
Cell 1) I would want to pull out US, and in
Cell 2) I would like to pull out RU.
The positioning of the countries is never consistent, and sometimes it is a "," next to it, or sometimes it ends the sentence, or is in the middle, etc. It is however always in capital letters.
I have been trying to nesting Vlookup function, index function, Match function, Find function, however I do not seem to be getting closer to figure this out. I can find the positioning of the word, however I am not able to pull the text out.
I find the word positioning the following way:
=OR(ISNUMBER(FIND(" US ";" "&A2&" "));ISNUMBER(FIND(" BR ";" "&A2&" "))
I just cant figure out how to pull out the value in a text base form. I am hoping someone here has similar experience and can guide me through it
Thanks!
I am stuck trying to automate a report which contains long strings of data with about 60 different country codes variants.
I have a column text based which is inconsistent, for example:
1) GUIDE, Paper congress 2564 US Zii
2) Geni Radio DOC RU, Team template
What I need to do, is to automate the task of pulling out the country code to a single cell. For example:
Cell 1) I would want to pull out US, and in
Cell 2) I would like to pull out RU.
The positioning of the countries is never consistent, and sometimes it is a "," next to it, or sometimes it ends the sentence, or is in the middle, etc. It is however always in capital letters.
I have been trying to nesting Vlookup function, index function, Match function, Find function, however I do not seem to be getting closer to figure this out. I can find the positioning of the word, however I am not able to pull the text out.
I find the word positioning the following way:
=OR(ISNUMBER(FIND(" US ";" "&A2&" "));ISNUMBER(FIND(" BR ";" "&A2&" "))
I just cant figure out how to pull out the value in a text base form. I am hoping someone here has similar experience and can guide me through it
Thanks!