Index/Lookup

jlkirk

Active Member
Joined
May 6, 2002
Messages
328
Office Version
  1. 365
On sheet 1, column A1:A5, I have a list of names: Joe, Smith, Mary, Joan, Bill. Column B1:B5 of the same sheet contains reference codes for the names in A1:A5: JSM, SUT, MRE, KIT, and KTM.

On sheet 2, column B1:B5, I have a list of codes that includes some, but not necessarily all, the same codes that appear on sheet 1.

I would like to fill in sheet 2, column A1:A5 the names appearing on sheet 1 that correspond to the codes on sheet 2, column B1:B5.

Thanks in advance.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
in Sheet2!B1
=IFERROR(VLOOKUP(B1,Sheet1!A$1:A$5,1,0),"***NOT FOUND***")

copy down column B
 
Upvote 0
Maybe

Book1
AB
1Tom PearceOwner3
2Bill BrewerOwner4
3Jan StewerOwner5
4Peter GurneyOwner6
5Peter DavyOwner7
Sheet1



Book1
AB
1Tom PearceOwner3
2Owner42
3Jan StewerOwner5
4Peter GurneyOwner6
5Peter DavyOwner7
Sheet2
Cell Formulas
RangeFormula
A1=IFERROR(INDEX(Sheet1!$A$1:$A$5,MATCH(B1,Sheet1!$B$1:$B$5,0)),"")
 
Upvote 0
I cant get either to work. How do I get permission to post attachments?
 
Upvote 0
Glad you sorted it & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,193
Members
452,616
Latest member
intern444

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