Compare data in columns, remove duplicates and return unique values in a new column

Status
Not open for further replies.

nitiona

Banned User
Joined
Jul 29, 2023
Messages
16
Office Version
  1. 2019
Platform
  1. Windows
Dear Experts,

Request your support in generating excel formula for below query,

Basically I have excel containing 4 columns, having unique data. I need a formula that can compare data in 4 columns and return only unique values in a new colum with '+' separator, removing any duplicates. Sample screenshot is attached.
 

Attachments

  • Screenshot 2024-02-03 094438.png
    Screenshot 2024-02-03 094438.png
    3.4 KB · Views: 6

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Like this ?

Excel Formula:
=TEXTJOIN("+",,LET(data,A2:D2,TRANSPOSE(UNIQUE(TRANSPOSE(data)))))


1707113218673.png
 
Upvote 0
Single formula in F2
Excel Formula:
=BYROW(A2:D5,LAMBDA(ro,TEXTJOIN("+",TRUE,UNIQUE(TRANSPOSE(ro)))))
Hi thanks for your quick response. However formula returns with error as #NAME?. Please assist, what might be wrong.
 
Upvote 0
to many Transpose sorry

use this

Excel Formula:
=TEXTJOIN("+",,LET(data,A2:D2,UNIQUE(TRANSPOSE(data))))
Hi thanks for your quick response. However formula returns with error as #NAME?. Please assist, what might be wrong.
 
Upvote 0
hi Microsoft office professional plus 2019
in your BIO it says 365, but you are using 2019, so please change it to 2019 if you are using 2019, so as not to confuse thanks

1707121672604.png
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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