Look up Number in a list and return matching text

kishorenaidugurram

New Member
Joined
Jun 23, 2015
Messages
11
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
Lookup.xlsx
IJKLMN
2To be Looked intoOutputNameID
3ABC(1234),FGH(8976),EFG(4567)ABCLooking or a Formula in J3ABC1234
4FGH(8976),EFG(45678),CDE(3456)CDELooking or a Formula in J4BCD2345
5CDE3456
6
7Need to look values in Col N in Col I and if matching found return the associated name
8Ex: 1234 is in Cell I3 and return corresponding text i.e, ABC
Sheet2
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Pretty ugly in J2 and filled down:

Code:
=RIGHT(LEFT(","&I2,SEARCH(N2,I2)-1),LEN(LEFT(","&I2,SEARCH(N2,I2)-1))-FIND("@",SUBSTITUTE(LEFT(","&I2,SEARCH(N2,I2)-1),",","@",LEN(LEFT(","&I2,SEARCH(N2,I2)-1))-LEN(SUBSTITUTE(LEFT(","&I2,SEARCH(N2,I2)-1),",",""))),1))
 
Upvote 0
Perhaps I am interpreting the question incorrectly, but what about this?

21 05 10.xlsm
IJKLMN
1
2To be Looked intoOutputNameID
3ABC(1234),FGH(8976),EFG(4567)ABCLooking or a Formula in J3ABC1234
4FGH(8976),EFG(45678),CDE(3456)CDELooking or a Formula in J4BCD2345
5CDE3456
Sheet2 (2)
Cell Formulas
RangeFormula
J3:J4J3=LOOKUP(9^9,FIND("("&N$3:N$5&")",I3),M$3:M$5)
 
Upvote 0
Solution
Perhaps I am interpreting the question incorrectly, but what about this?

21 05 10.xlsm
IJKLMN
1
2To be Looked intoOutputNameID
3ABC(1234),FGH(8976),EFG(4567)ABCLooking or a Formula in J3ABC1234
4FGH(8976),EFG(45678),CDE(3456)CDELooking or a Formula in J4BCD2345
5CDE3456
Sheet2 (2)
Cell Formulas
RangeFormula
J3:J4J3=LOOKUP(9^9,FIND("("&N$3:N$5&")",I3),M$3:M$5)
Hi Peter, Thank you. This is the formula that i was looking for and fits my requirement.
 
Upvote 0
Hi Peter, Thank you. This is the formula that i was looking for and fits my requirement.
You're welcome. Glad it worked for you! :)

I am using 2013/2016 version
Please update your Account details with this information (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using. (Don’t forget to scroll down & ‘Save’)

1620628952038.png
 
Last edited:
Upvote 0
You're welcome. Glad it worked for you! :)


Please update your Account details with this information (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using. (Don’t forget to scroll down & ‘Save’)

View attachment 38469
once again thanks Peter. I have updated the Account detais
 
Upvote 0

Forum statistics

Threads
1,216,403
Messages
6,130,364
Members
449,576
Latest member
DrSKA

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