Anyone have Excel ideas for the following problem:

Need to basically VLOOKUP multiple records within a comma delimited cell and return multiple matches in a comma delimited cell. For example: France = Paris, Italy = Rome, and UK = London. Cell currently contains France, Italy, and Rome (all in one cell). I want to return another comma delimited cell like this: Paris, Italy, London.

The problem is the iteration over the cell - would this be a VBA answer?

like
Posting as :
works at
You are currently posting as works at

:)

No need to use VBA/SQL

P.s.: if you don't get one of the functions used, just lemme know

Post Photo
likehelpful

Confirmed this works. Victor you are an Excel god.

like

I might not be reading the prompt correctly, but have you tried text to columns?

likesmart

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.

like

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

Related Posts

Found the BEST hacker. This is an account that was already banned. I got killed by his new account with the same name just haven't figured out the number combo.

KD is 118!

Post Photo
like

Hi

I have joined IBM and resigned within 50 days.
Reason: project I was allocated not good and I initially rejected project but they forcefully moved to the project.I have asked multiple times to replace the project after that I have resigned.
Now manager is threatening me that I will be placed under no hire to IBM.
Is it ethical?

like

What is the last date to get H1-B approval decision ?

Has delta ever let anyone change their diamond choice benefits after selecting them?

like

What are you doing for a retirement plan as an independent consultant? Solo 401K, SEP IRA, etc.? Any recommendations on where to open an account?

like

Anyone still play Pokémon Go?

like

any openings for associate (technology) in pwc..??

like

Has anyone on h1 been able to get global entry? I applied in december and got my police verification done in January and have still not heard back.

like

What is the average bonus and hike rate?
Team: Model Validation (Credit Risk)

like

PwC 🐠 - any idea of who an experienced hire should contact if they want to join Forensic Advisory?

like

Any openings in third party due diligence/ background screening? I am also pursuing CFE. Thanks!!

Do any firms in the forensics world offer to pay for MBAs?

like

Are there any ea roles hiring (mainly Chi but flex to elsewhere) with chill creatively minded environments? I am great at the work but can’t deal with the typical buttoned up seniority bootlicking LOL

like

Would anyone in this bowl be interested in participating in live sessions? Perhaps tips and tricks, networking, interview tips, salary negotiation, etc. as topics…

likesmarthelpful

I applied for a Executive Staff Assistant for Kaiser. The range for this position is from $36-42/hr. I’ve been doing Health Admin for 10yrs starting as AD in the AF. I’m also in a Master Program for HCA. Advice on if this is low in CA.

like

If I have got an offer letter from Infosys and I accepted the offer, then I can be sure right that they will give joining for sure on the said date?

like

Does your art partner contribute to visual descriptions when you’re working on scripts?

like

I have an unexpected take home case study interview that requires Tableau. Obviously Tableau is not just something people have on their personal computers due to the cost. How do I go about this?

like

Additional Posts in Excel Genius

Anyone else have a formatting pet peeve and get annoyed when people don’t have a blank first column and row in tabs? I.e headers/data in cell A1

My first manager told me this, and I’ve followed it to a T since.

likesmart

What are some common reasons that a COUNTIF formula might not be working correctly? I'm using the correct range and value to count. I'm not seeing "ERROR" but the values aren't correct (it's not counting everything). Thx.

like

Any book recommendations on excel modeling for real world business applications?

like

Current IE here. What are some Time Motion Study Softwares that are out there and you use in your jobs?

like

What’s the best way to summarize multiple amortization schedule. I have each schedule on a separate tab. On a master sheet can I do something where I can input a specific month and show my ST/LT ...

like

I am trying to recreate this without the numbers at the end. Any advice?

Post Photo
likehelpful

How do I easily find any cells that are hard coded vs formula? I have 10,000 rows of data and column F is supposed to be a formula based on columns C and D, without clicking into all 10k cells in column F how can I make sure formulas are there and not accidentally hand keyed over?

like

Is there anything similar to the INDIRECT function that I can use to build a formula reference to another workbook? INDIRECT creates errors when the referenced workbook is closed..

like

Anyone use power query before? My goal is I have multiple look up values in one cell (separated by comma) and I need it to look up those values and return values from another table which also may have multiple values (separated by comma) anyone know how to do that? I played around with power query today but it wasn’t giving me what I wanted

like

Will need to migrate to office 365 soon. What’s the difference for excel from the 2013 version?

likehelpful

What are your top excel functions you use in finance / accounting - besides vlookup - Pivots - sumifs - count - index. I have an interview coming up which will have excel based technical questions. Not sure what other functions are considered important in the accounting finance world.

like

Anybody have the SQL server data mining add in on excel? Desperately need to run a really quick analysis through it but can’t configure it.

like

Hey guys, I'm trying to find a formula to use instead of the Goal Seek function. Anyone know it? I thought I had seen one years ago, but can't find it now.

like

Would anyone be willing to teach me vlookup?

like

Help me save the day: have a massive excel file (600k rows) with duplicate records (column a, b and c are duplicate, not a duplicate if a and b are the same though). How can I filter for just these records? If it didn’t crash excel I could concat into one column, Conditional format for duplicates, and sort by color. What’s a work around?

likehelpful

Does anyone from PwC have a list of the favorite groups shortcuts for excel? Please provide. Much appreciated .

like

Any ideas on turning string data into numerical data in excel that’s faster/easier to automate/better than using text to columns? Wish I could use alteryx, but not an option for this use case.

like

I’m verrrrrry new to excel and am going crazy because is there not a way to “clip” text in cells like you can in google sheets? I read about a “fill” option, but then noticed that cells that aren’t filled just repeat text. 😂🤯

like

How do I compare two sheets to make sure they are identical?

like

Has anyone had an issue with index match and lookups returning NA when trying to manipulate data from a password protected workbook?

New to Fishbowl?

Download the Fishbowl app to
unlock all discussions on Fishbowl.
That was just a preview…
Sign Up to see all discussions
  • Discover what it’s like to work at companies from real professionals
  • Get candid advice from people in your field in a safe space
  • Chat and network with other professionals in your field
Sign up in seconds to unlock all discussions on Fishbowl.

Already a user?
Login here

Share

Embed this post

Copy and paste embed code on your site

Preview

Download the
Fishbowl app

See what’s happening in your industry
from the palm of your hand.

A phone with Fishbowl app

Scan your QR code to download
Fishbowl app on your mobile

Download app

Sign up for free to view this conversation on Fishbowl

By continuing you agree to Terms of Use and Privacy Policy

Already have an account? Log in

Sign up for free to continue using Fishbowl

By continuing you agree to Terms of Use(New) and Privacy Policy(New)
Messaging rates may apply

Already have an account? Log in

For account settings, visit Fishbowl on Desktop Browser or

General

Legal