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

I need a macro to delete duplicate data. I would like to
capture the data in Range ("B1") and check it against each
value in column B. If a duplicate is found, I would like
to delete the first instance. It is possible that the
data is duplicated 2 or more times.

For example:

A B
1 123 ABC
2 234 CDE
3 123 ABC
4 567 FGH

In this case, I would like row 1 to be deleted. Then I
would like the next value ("B2" = CDE above) to be
captured and compared to the rest of the data. It is
possible that I have a range of 10, 20, 30 or more
values. The number of rows changes frequently. Any help
would greatly be appreciated.

Tony
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
How to delete duplicate data PL New Users to Excel 9 September 1st 06 03:47 AM
Delete Duplicate Rows Macro Question elfmajesty Excel Discussion (Misc queries) 1 June 17th 06 01:12 AM
delete duplicate data SITCFanTN New Users to Excel 3 June 4th 06 01:42 PM
Macro to delete duplicate/triplicate rows Ken Wright Excel Programming 0 August 11th 03 05:50 PM
Macro to delete duplicate/triplicate rows Tom Ogilvy Excel Programming 0 August 11th 03 05:47 PM


All times are GMT +1. The time now is 03:14 AM.

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

About Us

"It's about Microsoft Excel"