Search a column for content equal to a cell and return cell value adjacent

ninsianna

New Member
Joined
May 20, 2014
Messages
2
Not sure I described that well, but here's my example:

I have this cross referenced code and reference numbers:
CodeRef numbers
OQ COR 017, 7.1, 7.2, 7.3, 7.4, 7.5, 7.7
OQ COR 025.2, 7.6, 13, 13.1, 13.2, 13.3, 13.4, 13.5,
OQ COR 0310, 10.1, 10.2, 11
OQ COR 048, 8.1, 8.3, 12,
OQ COR 055, 5.1, 5.2,5.3, 8, 8.1, 8.3,

<tbody>
</tbody>

I have a list of reference numbers:

Ref #
4.3
5.1
5.2
5.3
7.1
7.2
7.3
7.4
7.5

<tbody>
</tbody>

<tbody>
</tbody>

I would like to search the Ref numbers to see if the Ref # is included, and if so, return the contents of the adjacent cell.

So : if the contents of C1 are included in column Y, in cell Y3, then return the contents of X3

The biggest issue is of course that the contents in column Y include multiple reference #s, so I'm not looking for an exact match. Even if I split them into individual columns, I'm not getting an accurate result with lookup or vlookup
 
That did not work for me. It returned blank data.

Try to change the , to ;

Like this:

=IFERROR(INDEX($A$2:$A$4;MATCH($D2;$B$2:$B$4;0));"")

Did you try with exact my layout? If not, could post your layout?

Could you post the exact formula that you used too?

Markmzz
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,216,093
Messages
6,128,784
Members
449,468
Latest member
AGreen17

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