Duplicate entries in an intended Unique list!

IanC

New Member
Joined
Jan 21, 2004
Messages
12
Env: Office XP/2002 + Win2000.

I'm trying to extract unique entries from a list and always seem to be left with a duplicate entry!

In column "D", I have a list such as...

Pre Sales
Pre Sales
Kickoff
Kickoff
Kickoff
Kickoff
SOW Development
SOW Development
Kickoff
Pre Sales
Kickoff
SOW Development
Project Planning
Customer Travel
SOW Development
Project Planning
Kickoff
Customer Travel

When I run my code to extract the unique entries from this list, I'm left with (in the example below) duplicate entries...

Change Control
Customer Meetings
Customer Travel
Documentation
Draft Config Guide
Implementation
Kickoff
Pre Sales
Pre Sales

Project Management
Project Planning
SOW Development

Here's the code I'm using...

Code:
Range("D2:D1000").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range("AA1"), Unique:=True

My questions are:-

1. Why am I still getting duplicate entries in the list?
2. How can I only select cells in column 'D' down to the last row with data so I don't have spaces in the 'unique list'?

Thanks, I'm stumped!! :oops:
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Is there an easy way to show additional characters/spaces etc or even an option to ignore spaces in the unique test??
 
Upvote 0

Forum statistics

Threads
1,213,506
Messages
6,114,024
Members
448,543
Latest member
MartinLarkin

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