Need help with vlookup or index/match that finds a specific text value within a long string.

rhaas128

Board Regular
Joined
Jul 5, 2013
Messages
84
So I have a list of user ids on one worksheet. On another worksheet, I have a field called receivers that may contain a single user id or multiples that are separated by commas like so: AAA1234,BBB1234,CCC1234. I need to be able to search each cell in the receivers column and match the user id I provide on the first sheet to one of these cells, and then show data from another cell. I was attempting to use index match, but it isn't a direct match. I have setup a basic idea below with everything on one sheet.

ABC
UserIDReceiversReturn Value
AAA1234DDD1234,CCC1234,EEE12341
BBB1234AAA12342
CCC1234BBB12343

<tbody>
</tbody>

So I want to search for each UserID in column A and find it in column B, then return the value from column C.

Thanks for all help in advance and sorr if this is confusing.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Excel Workbook
AB
1ReceiversReturn Value
2DDD1234,CCC1234,EEE12341
3AAA12342
4BBB12343
5**
6**
7**
8UserIDReturn Value
9AAA12342
10BBB12343
11CCC12341
Sheet
 
Upvote 0
Doesn't matter. Return value can be text number or combination of both.
 
Upvote 0
You're welcome. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,172
Messages
6,123,443
Members
449,100
Latest member
sktz

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