Remove dups from 2 columns

JTL9161

Well-known Member
Joined
Aug 29, 2012
Messages
591
Office Version
  1. 365
Platform
  1. Windows
I have the below 2 columns for data. I am trying to write a formula that will filter out the opposite duplicates. For example there is a BOB/TIM A. and a TIM A./BOB. I only want the unique 5 combinations. Either one just as long as there is only 1 of each combination.

BOBTIM A.
BRIANTED
CHRISTIM B.
DAVESTEVE
PATRICK
RICKPAT
STEVEDAVE
TEDBRIAN
TIM A.BOB
TIM B.CHRIS

What I trying to achieve:
BOBTIM A.
BRIANTED
CHRISTIM B.
DAVESTEVE
PATRICK

Thank you in advance,
James
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I don't have the latest 365 on my rig, but this aught to do the trick.

MrExcelPlayground16.xlsx
ABCDE
1BOBTIM A.#NAME?
2BRIANTED
3CHRISTIM B.
4DAVESTEVE
5PATRICK
6RICKPAT
7STEVEDAVE
8TEDBRIAN
9TIM A.BOB
10TIM B.CHRIS
Sheet21
Cell Formulas
RangeFormula
D1D1=LET(a,A1:B10,b,TAKE(a,,1),c,TAKE(a,,-1),d,IF(b<c,b,c),e,IF(b>=c,b,c),f,HSTACK(d,e),UNIQUE(f))
 
Last edited:
Upvote 0
Another option which seems to work
Fluff.xlsm
ABCDE
1
2BOBTIM A.BOBTIM A.
3BRIANTEDBRIANTED
4CHRISTIM B.CHRISTIM B.
5DAVESTEVEDAVESTEVE
6PATRICKPATRICK
7RICKPAT
8STEVEDAVE
9TEDBRIAN
10TIM A.BOB
11TIM B.CHRIS
Master
Cell Formulas
RangeFormula
D2:E6D2=WRAPROWS(UNIQUE(TOCOL(A2:B11)),2)
Dynamic array formulas.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,340
Members
452,638
Latest member
Oluwabukunmi

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