Delete Duplicate values horizontally.

qazibelal

New Member
Joined
Oct 1, 2022
Messages
1
Office Version
  1. 2016
Normally we remove duplicates through 'remove duplicate' or Unique() function in excel or through Power Query. But all these methods are applicable to identify duplicate as whole row or in a particular column.

Is there a way we can remove duplicates Horizontally i mean row wise?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Well UNIQUE has an optional parameter to delete duplicates by column. But if you don't pass it, it deletes by row. (But yeah, Excel Data Ribbon itself appears to only do by row.)
a.xlsx
ABCDEFGH
1aaabcaa
2abcab
3ac
4b
5c
Sheet7
Cell Formulas
RangeFormula
H1:H3H1=UNIQUE(G1:G5)
A2:C2A2=UNIQUE(A1:E1,1)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,225,726
Messages
6,186,666
Members
453,368
Latest member
xxtanka

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