Searching Columns for Values

Sineadd

Board Regular
Joined
Apr 24, 2019
Messages
58
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi

When I use the below formula in cell E2 it searches to see if the value in D2 matches any value in colum A and if it does it returns the value in the notes column.
My issue is some data has more than one number ( Like in A2) so this returns a blank - Is there a formula to use that is able to search if the value is in the cell and retur the value in the notes field


NumberNotesNumberNotes
1234 / 5678Yes
1234​
=IFERROR(INDEX($B:$B,MATCH(D2,$A:$A,0)),"")
2356​
No
2356​
No
1269​
Yes
1269​
Yes
5698 / 69852No
69852​
12345678​
Yes
12345678​
Yes
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Match will only get you the first instance of a type of match. The 3rd argument of 0 means exact match, so you will not get a hit on 69852 because there is a additional text in that cell ("5698 / "). There is not a "wild card" match argument. But, using wildcard character may help. MATCH("*"&D2&"*",$A:$A,0) may help.

Mr Excel Questions 9.xlsm
ABC
1
22dkkdfjakljfdlk
3fjdkfjadk
4dkfjadfj
Sheet2
Cell Formulas
RangeFormula
A2A2=MATCH("*"&B2&"*",$C$2:$C$4,0)
 
Upvote 0
How about
Fluff.xlsm
ABCDE
1NumberNotesNumberNotes
21234 / 5678Yes1234Yes
32356No2356No
41269Yes1269Yes
55698 / 69852No69852No
612345678Yes12345678Yes
Master
Cell Formulas
RangeFormula
E2:E6E2=XLOOKUP("*"&D2&"*",$A$2:$A$6&"",$B$2:$B$6,"",2)
 
Upvote 0
Solution
How about
Fluff.xlsm
ABCDE
1NumberNotesNumberNotes
21234 / 5678Yes1234Yes
32356No2356No
41269Yes1269Yes
55698 / 69852No69852No
612345678Yes12345678Yes
Master
Cell Formulas
RangeFormula
E2:E6E2=XLOOKUP("*"&D2&"*",$A$2:$A$6&"",$B$2:$B$6,"",2)
Thank you - This is working perfect
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,981
Messages
6,122,565
Members
449,089
Latest member
Motoracer88

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