Formula to return specific text based on look up value

pbj1688

New Member
Joined
May 10, 2016
Messages
7
Office Version
  1. 365
Platform
  1. Windows
HI, I have two spreadsheets. First sheet has the item code for look up, second sheet has the item code with associated value. I need help to figure out a formula that would search for the item code, reference the associated value, to then return specified text based on the value. Any help would be appreciated!

Book1
ABCDEFGHIJ
1lookup sheetdata sheet
2CodeCodeItemsvaluespecific text to return
3141414141414AppleAppletrain
4123456123456Appke, Orange, StrawberryAppke, Orange, Strawberrycar
5583211583211Apple, OrangeApple, Orangeairplane
6590283590283Orange, StrawberryOrange, Strawberrysubmarine
7385692385692StrawberryStrawberrytaxi
Sheet1
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Like this:

Book1
ABCDEFGHIJ
1lookup sheetdata sheet
2CodeCodeItemsvaluespecific text to return
3141414train141414AppleAppletrain
4123456car123456Appke, Orange, StrawberryAppke, Orange, Strawberrycar
5583211airplane583211Apple, OrangeApple, Orangeairplane
6590283submarine590283Orange, StrawberryOrange, Strawberrysubmarine
7385692taxi385692StrawberryStrawberrytaxi
Sheet1
Cell Formulas
RangeFormula
B3:B7B3=VLOOKUP(VLOOKUP(A3,D:E,2,0),I:J,2,0)
 
Upvote 0
Thanks so much for the quick reply! Column I and J are actually not on the spreadsheet. I was trying to do a combination of xlookup and IF statements so that if E3 = "Apple" then the response would be "train" without having a lookup table. Is that possible?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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