Vlookup and Concatenate

Johnnymartin

New Member
Joined
Sep 14, 2021
Messages
6
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi All,

Would greatly appreciate your help on a project I'm doing to help out a charity, I'm trying to upload their countywide Fire Risk assessments / training certs and other info but to be able to get it in a system I need the data in one cell (Column I in sheet1)

Current Structure:

Sheet1:

One line for each entry with an identifiable unique code, column I is where I need the solution to put the text into one cell:

Data structure:

Identifier BCDEFGHI
CP 1 N/A N/A N/A N/A N/A N/A N/A FRA John Smith FRA James Bland FRA Jim Smith
CP 2 N/A N/A N/A N/A N/A N/A N/A MHT John Smith MHT James Bland MHT Jim Smith



Sheet 2:


Identifier BCDE F G
CP 1 N/A N/A N/A N/A N/A FRA John Smith
CP 1 N/A N/A N/A N/A N/A FRA James Bland
CP 1N/A N/A N/A N/A N/A FRA Jim Smith
CP 2 N/A N/A N/A N/A N/A MHT John Smith
CP 2 N/A N/A N/A N/A N/A MHT James Bland
CP 2N/A N/A N/A N/A N/A MHT Jim Smith


I just need the solution to Vlookup the data from Sheet 2 in Cell G for each unique identifier into Sheet 1 in column I for the same identifier if this makes sense?!

Many thanks in advance

Jonathan
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
For 365 how about
Excel Formula:
=TEXTJOIN(", ",,FILTER(Sheet2!$G$2:$G$1000,Sheet2!$A$2:$A$1000=A2))
 
Upvote 0
Solution
For 365 how about
Excel Formula:
=TEXTJOIN(", ",,FILTER(Sheet2!$G$2:$G$1000,Sheet2!$A$2:$A$1000=A2))
That isn't working for me it's saying external connections are blocked on this laptop.
 
Upvote 0
What is the name of the sheet? If not Sheet2 did you change the sheet name in the formula?
 
Upvote 1
Thank you so much Fluff, my apologies for the late response, I'd changed the sheet without realising I'd done it!

That works perfectly, really appreciate your help with that they're so happy!

Have a great rest of the week

Jonathan
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,129
Messages
6,123,218
Members
449,091
Latest member
jeremy_bp001

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top