Unique List from 2 Columns Using TextJoin and Unique if possible

Stephen_IV

Well-known Member
Joined
Mar 17, 2003
Messages
1,174
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I use TextJoin and Unique to get Unique data in 1 cell. What I am looking to do is is to get unique data from 2 columns into 1 cell. In D1: Steve, Mike, Jay, Mary, Ray, Al

This is the formula that I use for 1 cell: =TEXTJOIN(", ",,UNIQUE(A1:A5)). I would like to do something like, =TEXTJOIN(", ",,UNIQUE(A1:B5)) in 1 cell. Thanks in advance!!!!

Book1
AB
1SteveRay
2SteveMike
3MikeMike
4JaySteve
5MaryAL
Sheet2


 
Nope, just what you would expect. There is a second argument to UNIQUE(), if omitted or false, returns unique rows, and if true returns unique columns. Each row is distinct (each pair of cells is unique), so the entire input range is returned.

I see some discussion and description attemps focused on a distinction between 'unique' and 'distinct' involving the UNIQUE() function. How does Longre's UNIQUEVALUES() behave when fed with a multiple row and multiple column range?
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,216,117
Messages
6,128,935
Members
449,480
Latest member
yesitisasport

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