Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Deleting Duplicates


Thanks for the help Trevor but it doesn't work. It doesn't do anything

--
halem
-----------------------------------------------------------------------
halem2's Profile: http://www.excelforum.com/member.php...nfo&userid=993
View this thread: http://www.excelforum.com/showthread.php?threadid=27059

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Deleting Duplicates

The routine works its way up from the bottom and uses COUNTIF to count the
cells in column A which have the same value as the current cell. If the
count is greater than 1 there is at least one duplicate and it deletes the
entire row.

If it isn't working then there aren't any duplicates in the column. Could
there be any spaces after the values you can see ? Maybe you have a
different worksheet selected ? It works consistently on my test data but,
for example, "b" and "b " would look the same but would not be considered as
duplicates.

Perhaps you could provide a link to the spreadsheet through the Excel Forum.

Regards

Trevor


"halem2" wrote in message
...

Thanks for the help Trevor but it doesn't work. It doesn't do anything.


--
halem2
------------------------------------------------------------------------
halem2's Profile:
http://www.excelforum.com/member.php...fo&userid=9930
View this thread: http://www.excelforum.com/showthread...hreadid=270599



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting Duplicates Angie M. Excel Worksheet Functions 2 February 4th 10 03:55 PM
Deleting Duplicates Philip Drury Excel Discussion (Misc queries) 1 October 3rd 07 06:26 PM
Deleting duplicates katana Excel Discussion (Misc queries) 4 February 7th 06 06:33 PM
Deleting the first row of two duplicates. Georgyneedshelp Excel Discussion (Misc queries) 2 October 19th 05 04:44 PM
Deleting Duplicates halem2[_45_] Excel Programming 1 October 19th 04 09:11 PM


All times are GMT +1. The time now is 07:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"