looking up value in second sheet

Danny54

Active Member
Joined
Jul 3, 2019
Messages
295
Office Version
  1. 365
Platform
  1. Windows
Good Afternoon

I have a workbook that contains 2 worksheets whereas I need to do some kind of lookup between the two and create a new worksheet sheet3

Sheet1
ComCircuits
a1102023
b945629, 1102123

Sheet2
MarketIDName
945629​
Jenny
1102123​
Mary

Desired Output
Sheet3
ComCircuitsName
a1102023Mary
b945629, 1102123Jenny, Mary

I need to lookup the values Sheet1 (Circuits) in Sheet2 (ID) and return the Name to Sheet3 (Name)

Is there a vlookup or something what would do the trick?

Thanks
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Are you providing the Circuits on Sheet3 and need the names from Sheet2?
 
Upvote 0
I assumed you provide column A in Sheet3, then I used XLOOKUP for the B column and a mix of things for the C column.
Is this even close?

Sheet2
MarketIDName
99999​
Susanne
945629​
Jenny
1102123​
Mary
12345​
Kevin
55555​
Danny

Sheet3

Cell Formulas
RangeFormula
B2:B4B2=XLOOKUP(A2,Sheet1!A2:A11,Sheet1!B2:B11)
C2:C4C2=TEXTJOIN(", ",,INDEX(Sheet2!$C$1:$C$11,MATCH(FILTERXML("<x><y>"&SUBSTITUTE(B2,",","</y><y>")&"</y></x>","//y"),Sheet2!$B$1:$B$11,0),1))
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,054
Latest member
juliecooper255

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