Related Posts
Anyone still play Pokémon Go?
Additional Posts in Excel Genius
Would anyone be willing to teach me vlookup?
New to Fishbowl?
Download the Fishbowl app to
unlock all discussions on Fishbowl.
unlock all discussions on Fishbowl.
Anyone still play Pokémon Go?
Would anyone be willing to teach me vlookup?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Download the Fishbowl app to unlock all discussions on Fishbowl.
Copy and paste embed code on your site

Scan your QR code to download
Fishbowl app on your mobile

Subject Expert
:)
No need to use VBA/SQL
P.s.: if you don't get one of the functions used, just lemme know
Confirmed this works. Victor you are an Excel god.
I might not be reading the prompt correctly, but have you tried text to columns?
Personally I would use SQL for this. If SQL isn’t an option then I would use VBA. Something like:
1. Starts with top row. Read keys from comma separated string and store each key in an array. Use comma as the separator.
2. Loop through array and perform VLOOKUP, storing values into a results array.
3. Concatenate values in array and use “, “ as a separator
4. Write result at the end of your range on the right but on the same row.
5.offset down 1, repeat steps until you reach a blank row in column. Use a column that will never have a blank cell to determine if you reached the bottom.
I would get a result in one column per iteration and then concaténate all results to have multiple results in one cell.
Question: does the cell always contain 3 countries? Or do you have cases where there’s none/1/2/4?
What’s the maximum amount of countries in a cell?
Thank you.
Will never be none, min 1, max 7