Excel formula to remove duplicates in a cell

sharshra

Active Member
Joined
Mar 20, 2013
Messages
276
Office Version
  1. 365
I have an output from TEXTJOIN, which has duplicates. I need unique values as the final output. I searched internet & found there are VBA UDFs to remove duplicates in a cell. But I want to achieve the same using Excel formulae.

Are there any options to remove duplicates in a cell using Excel formulae? Or is it possible to have an output from TEXTJOIN with unique values only? Please advise.

Example for illustration only-
Output from TEXTJOIN - abc, def, abc, xyz, bcd, cde, def, mno
Desired output without duplicates - abc, def, xyz, bcd, cde, mno
 
In post 1 you seemed to also be asking if your original TEXTJOIN function could get the unique values directly but you didn't address that part of my last post. :)
I used the basic TEXTJOIN function to get an output with duplicate values & hence asked if there are any options to get unique values with TEXTJOIN function. Now, I got the answer from your & Rick's posts. Hence, I think it will not add much value in sharing the original formula that I used.
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
The point is that you could probably use UNIQUE within your original TEXTJOIN formula so that it doesn't return duplicates in the first place.
 
Upvote 0

Forum statistics

Threads
1,215,564
Messages
6,125,575
Members
449,237
Latest member
Chase S

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