Cell Contains Comma Delimited Items. For Each Delimited Item, XLookup(?) and Concatenate the Results Formula Only (No VBA) (LAMBDA??)

RHK123

New Member
Joined
Nov 6, 2020
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Hello Excel Experts!

I'm stuck.

Here is a simplified description of my problem:

1. I have a lookup table.
2. I have a cell that contains comma delimited values.
3. I need to move thru the cell with the comma delimited values, perform a lookup of each delimited value against the lookup table, and concatenate the results of the current lookup to the previous lookup results.
Mr Excel Screenshot 2025-01-15 Question.jpg

The attached image is a visualization of the problem.
The only formula I used here is to determine the count of delimited items in cells C11: C14
That formula in D11 =LEN(C11)-LEN(SUBSTITUTE(C11,",",""))+1

I've never actually used Lambda, but I've read that recursive Lambda can "loop". Can it solve this problem?


Many Thanks!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Uh Oh!
On 2nd thought guess I simplified my problem too much!
When I use letters instead of number as the lookup index the solution doesn't work.
Do you have a workaround? Sorry :(

Mr Excel Screenshot 2025-01-15_3 Question.jpg
 

Attachments

  • Mr Excel Screenshot 2025-01-15_2 Question.jpg
    Mr Excel Screenshot 2025-01-15_2 Question.jpg
    32 KB · Views: 7
Last edited:
Upvote 0
Make sure the look up table in D are all text including the numbers. Updated formula below.
Book2
CDE
1Lookup
21AAA
32BBB
4xCCC
5yDDD
6
7
8
9
10InputOutput
111AAA
122,1BBB, AAA
13x, yCCC, DDD
14xCCC
Sheet12
Cell Formulas
RangeFormula
E11:E14E11=TEXTJOIN(", ",,XLOOKUP(TRIM(TEXTSPLIT(C11,",",,1)),$D$2:$D$5,$E$2:$E$5))
 
Upvote 0

Forum statistics

Threads
1,225,739
Messages
6,186,743
Members
453,370
Latest member
juliewar

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