V-Lookup in a cell with more than one value present

Theemeadelis

New Member
Joined
Jul 10, 2023
Messages
20
Office Version
  1. 365
Platform
  1. Windows
I am in need of a formula which will search for a specific value in a column of cells that may contain more than one value in each cell.

e.g.

ABCDEF
1ROLERESULTROLERESULT
2897BONUS563, 897BONUS
3167#N/A
4897BONUS
5637, 598, 897BONUS
6324, 874#N/A
7162#N/A
8897BONUS
9354#N/A

I would be entering the formula in column F for it to check for every occurrence of the value "897" (B2), and for each occurrence of the B2 value "897" in column E, it would return the value from cell C2 "Bonus" in column E.

Is this possible with VLook-Up, or a different type of look-up formula?
 
Try this...

Excel Formula:
=TEXTJOIN(", ",,XLOOKUP(--TRIM(TEXTSPLIT(D2,",")),--TRIM($A$2:$A$5),$B$2:$B$5,""))

For experimentation sake... try copying and pasting column A to a blank column using paste special: values, add, and then paste them back in column a
 
Upvote 1
Solution

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try this...

Excel Formula:
=TEXTJOIN(", ",,XLOOKUP(--TRIM(TEXTSPLIT(D2,",")),--TRIM($A$2:$A$5),$B$2:$B$5,""))

For experimentation sake... try copying and pasting column A to a blank column using paste special: values, add, and then paste them back in column a
That's worked perfectly this time, thank you for your perseverance and help :D

1706721931501.png
 
Upvote 0
Happy to help. Fluff's formula should have worked. If my formula worked, it is because you have column A values stored as text.
 
Upvote 0

Forum statistics

Threads
1,215,079
Messages
6,123,009
Members
449,093
Latest member
ikke

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