How to filter a list to show records that are NOT duplicated

anewc1

Board Regular
Joined
Sep 8, 2005
Messages
180
Each number should show up twice, and if it only shows up once, those are the ones I want to find. For instance, in the list below, 2054, 3001 and 3168 only show up once. The list is several hundred thousand lines long, so I can't do it by hand. Thanks for any help!

Personnel No.
376
376
411
411
2052
2052
2053
2053
2054
2058
2058
3001
3168
3192
3192
3196
3196
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
1- are they always sorted like in your example?
2a- can there be 3 or more repeated value?
2b- If there are 3 times repeated value, do you still wanna see it in the list?

One approach could be creating a macro and when you run that it can highlight the stand alone ones...
 
Upvote 0
Now's about the time when I wish I could delete posts. :oops:

All I had to do is do a simple countif for the Emp# and then do an autofilter for the ones that had a count of 1 versus 2.

Oops. :-D
 
Upvote 0
I put your listing in Cells A1:A17

In Cell B2 I entered =OR(A2=A1,A2=A3) and Copied it down to B17

All cells containing FALSE are your Unique (Single) Numbers
 
Upvote 0

Forum statistics

Threads
1,224,416
Messages
6,178,509
Members
452,853
Latest member
philipnjk64

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