TEXTJOIN with exact match

nburaq

Board Regular
Joined
Apr 2, 2021
Messages
220
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi,
I would like find the values based on exact match via textjoin function but it gives results even with partial matches. What is the correct formula for that or can you fix mine? Thanks for your help.

LocationValue
ABC
101​
ABC-00A
105​
ABC-00B
106​
ABC-00B-01
110​

I use formula similar to :
=TEXTJOIN(",",TRUE,IF($A$2:$A$5=E2,$B$2:$B$5,""))

If I try only to find value of "ABC" then it brings all the values starting with ABC. Hence instead of showing only value 101 it shows 101,105,106,110
 
I tried that but then it is giving "CALC! error
You can see that was not the case for me, so there must be something different about your data, layout of formula adaptation. Could you post a small set of sample data with the formula showing the error with XL2BB and then explain what result you would have expected from that sample data.

Also, did the post #8 formula work?
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
You can see that was not the case for me, so there must be something different about your data, layout of formula adaptation. Could you post a small set of sample data with the formula showing the error with XL2BB and then explain what result you would have expected from that sample data.

Also, did the post #8 formula work?
yes formula #8 works I think the problem is regarded with SAP table that I pulled from the system. I will try it again with an another table. Thanks again for the feedback!
 
Upvote 0

Forum statistics

Threads
1,214,917
Messages
6,122,233
Members
449,075
Latest member
staticfluids

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