Avoid Repetition/Mismatch in TEXTJOIN of Cell Contents and a Named Range

rfhandel

New Member
Joined
Nov 26, 2024
Messages
9
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
Sorry for my ignorance in formulas. I use what I can beg, borrow, or steal, but I do not do a very good job of figuring them out on my own.

I am trying to extract metadata from a cell that is specifically relevant to various media used in an image. Each metadata term is separated by a delimiter (i.e. ";").

I have managed to use a TEXTJOIN formula to extract the data from a named range as demonstrated in the formula and screenshot below, with delimiters dividing the extracted text;
=TEXTJOIN(",",TRUE,IF(ISNUMBER(FIND(Table15[Media],D4)),MID(D4,FIND(Table15[Media],D4),LEN(Table15[Media])),""))
however, as indicated by the highlighted text below, the formula also extracts text that is not an exact match from the delimited text to the data entered in the named range (i.e. Acrylic AND Acrylic Gouache vs just Acrylic Gouache). How can I get the formula to read an exact match to the cells in the named range with the text from the target cell.

Secondly, but of less importance, how could I add a conjunction (i.e. "and") to the last extracted term in addition to or replacing the comma delimiter?
1732681939831.png
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,153
Members
452,891
Latest member
JUSTOUTOFMYREACH

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