Look up to return name

zone709

Well-known Member
Joined
Mar 1, 2016
Messages
2,129
Office Version
  1. 365
Platform
  1. Windows
Trying to return name in sheet1 from sheet2. If Id number in sheet1 in D matches Id number in sheet 2 in A. Return the name in B in sheet2 to sheet1 column C yellow.


Book1
ABCD
1#nameReturn hereID
21joe10
32ralph56
43jake45
54mike23
65frank10
76mario45
Sheet1


Book1
AB
1
210Bite
323Rock
456Bite
545Rock
6
Sheet2
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Is this what you mean?

zone709.xlsm
ABCD
1#nameReturn hereID
21joeBite10
32ralphBite56
43jakeRock45
54mikeRock23
65frankBite10
76marioRock45
Sheet1
Cell Formulas
RangeFormula
C2:C7C2=XLOOKUP(D2:D7,Sheet2!A2:A5,Sheet2!B2:B5,"not found",0)
Dynamic array formulas.
 
Upvote 0
Solution
When i put the formula on anther sheet i get #Spill. Do you know why i might get that?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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