Compare two cells with comma separated values and return the unique values from the comparison?
I am trying to compare two cells with comma separated values in Smartsheet and return only the unique values. See below for an example:
In excel I am able to accomplish this by using the following formula =TEXTJOIN(", ",TRUE,UNIQUE(TRANSPOSE(TEXTSPLIT(TEXTJOIN(", ",TRUE,A1:B1), ", ")),,1)) Is there any way to do something similar to this in Smartsheet?
Thanks!
Answers

You can use a combination of
JOIN
,COLLECT
, andFIND
functions. Smartsheet doesn't have an exact equivalent to Excel'sTEXTJOIN
orUNIQUE
functions, but you can construct a formula that emulates the desired behavior.Here's an example formula structure:
=JOIN(COLLECT(Column1:Column1, FIND(",", @cell) > 0), ", ")
You'd need to expand on this logic to compare the two cells and filter out only the unique values. However, Smartsheet formulas currently do not support array operations or the direct equivalent of Excel's
UNIQUE
function, making this a complex task that might require multiple helper columns or manual intervention.
Help Article Resources
Categories
 All Categories
 14 Welcome to the Community
 10.8K Get Help
 65 Global Discussions
 69 Industry Talk
 385 Announcements
 3.5K Ideas & Feature Requests
 56 Brandfolder
 125 Just for fun
 50 Community Job Board
 464 Show & Tell
 40 Member Spotlight
 44 Power Your Process
 28 Sponsor X
 234 Events
 7.3K Forum Archives
Check out the Formula Handbook template!