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

I need some help with creating an excel macro that will take out duplicate
phone numbers in a list . I think I could use the if function but I dont know
how to specifiey the numbers. I have about 1500 entries to sort through and
need a quicker way! Any advice would be greatly appreciated. Thanks Neal.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default macros or code

Hi Neal,

See Chip Pearson's Duplicates page at:

http://www.cpearson.com/excel/duplicat.htm#Replacing


---
Regards,
Norman



"Neal" wrote in message
...
I need some help with creating an excel macro that will take out duplicate
phone numbers in a list . I think I could use the if function but I dont
know
how to specifiey the numbers. I have about 1500 entries to sort through
and
need a quicker way! Any advice would be greatly appreciated. Thanks Neal.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default macros or code

sort on the phone number column

Assume this is column E

in the next blank column put in a formula like

Assume (F2)

=If(countif($E$2:E2)1,"Delete","Keep")

then drag fill down the column

Now apply an autofilter to at least this column and filter on Delete

Select all the rows and do Edit=Delete

Remove the Autofilter and you should have only the unique phone numbers.

Do this on a copy of your data.

--
Regards,
Tom Ogilvy

"Neal" wrote in message
...
I need some help with creating an excel macro that will take out duplicate
phone numbers in a list . I think I could use the if function but I dont

know
how to specifiey the numbers. I have about 1500 entries to sort through

and
need a quicker way! Any advice would be greatly appreciated. Thanks Neal.



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
VB Code Or Macros hitesh New Users to Excel 4 February 13th 10 05:12 PM
Enable Macros by Code aftamath77 Excel Discussion (Misc queries) 4 October 8th 08 04:49 PM
Macros/vba Code mpsears62 Excel Discussion (Misc queries) 0 August 7th 08 04:08 PM
Macros inside macros, and pasting into macro code. pagelocator[_2_] Excel Programming 1 November 24th 04 09:11 AM
Securing Macros/VBA Code Cindy Excel Programming 2 January 31st 04 06:10 PM


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

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"