Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Cam
 
Posts: n/a
Default Function to find duplicate values, then delete

Hi,

I have about 2000 data on Excel file and many have duplicate values
(numberic) in the cell on Column A.
Is there a function that will look for duplicate and delete (or highlight)
all, but one of the duplicate value.

For example:
row 50-59 on column A has a value of 50006420, I like the macro to delete
row 51-59.
Thanks for any help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default Function to find duplicate values, then delete

If the data is sorted, then in B2 you can enter this formula:

=IF(A2 = A1, "duplicate","unique")

and copy down to the bottom of your range of A values. Then you can use
autofilter on column B to select "duplicate". Highlight all the visible
rows and Edit | Delete Row. Then select All in the filter drop-down.

However, the same thing can be achieved by Advanced Filter - highlight
the data in column A (works better with a header), then Data | Filter |
Advanced Filter. Your range is already defined, tick Unique Records
only and decide if you want to filter in place or move the unique
records to another location (specify where). Then click OK and the
job's done.

Hope this helps.

Pete

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 can I use the vlookup function to return a sum of the values? Chaandni Excel Discussion (Misc queries) 4 November 7th 05 03:05 PM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
how to use the Prob function in a list of averages to find the le josephWard6 Excel Worksheet Functions 2 June 19th 05 11:14 PM
find duplicate entries and delete them? Agnitoood Excel Worksheet Functions 1 February 28th 05 10:53 AM
need to save values from a function before it changes Ron Excel Worksheet Functions 1 October 29th 04 06:29 AM


All times are GMT +1. The time now is 07:05 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"