Embedding TEXTSPLIT and TEXTJOIN into an INDEX/MATCH formula

jimbomcmucka

New Member
Joined
Oct 11, 2022
Messages
26
Office Version
  1. 365
Platform
  1. Windows
Hi guys, I'm hoping you can help - my brain alone wont get me through this problem.

Not so long ago I posted about multiple values being separated in my data source with a '|' and somebody brought my attention to the TEXTSPLIT and TEXTJOIN function, which has helped hugely incorporating into some VLOOKUPS. I am now trying to add these into an INDEX/MATCH formula and am confusing myself.

The current formula is as follows:

=CONCATENATE("model-",(INDEX('Extract (Marketing)'!2:2,1,MATCH("PRODCODE",'Extract (Marketing)'!$A$1:$LX$1,0)))))

So, the value from the column named 'PRODCODE' is returned with the prefixed text "model-"

As with my previous problem there are multiple PRODCODES within the data set separated by a '|'. How would i go about adding the TEXTSPLIT and TEXTJOIN function to return a result as follows:

model-123456789|model-234567890|model-3456789012 ...

Any help is really appreciated!

Thanks,
Jim
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
What result you are currently getting?
Currently, using the formula above, I am getting as follows: "model-123455789|234567890|3456789012"

I am yet to have a result return without an error when trying to add in the TEXTSPLIT and TEXTJOIN.

Thanks,
Jim
 
Upvote 0
Try

Excel Formula:
=SUBSTITUTE(CONCATENATE("model-",(INDEX('Extract (Marketing)'!2:2,1,MATCH("PRODCODE",'Extract (Marketing)'!$A$1:$LX$1,0)))),"|","|model-")
 
Upvote 0
Solution
Amazing! Thanks for your help. Looks like I was getting bogged down using the wrong function for the task!

Jim
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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