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 duplicated values


There must be a simple method in VB to delete duplicate values. I tried
the advancedfilter, but I couldn't get it working.

Anyone able to help me out here...


--
mariomaf
------------------------------------------------------------------------
mariomaf's Profile: http://www.excelforum.com/member.php...o&userid=30098
View this thread: http://www.excelforum.com/showthread...hreadid=498266

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Deleting duplicated values

In an adjacent column add the formula

=IF(COUNTIF($A$1:A1,A1)1,"Dup","")

then filter by that mew column on Dup and delete all visible rows.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"mariomaf" wrote in
message ...

There must be a simple method in VB to delete duplicate values. I tried
the advancedfilter, but I couldn't get it working.

Anyone able to help me out here...


--
mariomaf
------------------------------------------------------------------------
mariomaf's Profile:

http://www.excelforum.com/member.php...o&userid=30098
View this thread: http://www.excelforum.com/showthread...hreadid=498266



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Deleting duplicated values


The idea worked and is helpfull indeed. But isn't there an VB solution
which is better? Now I have a "Dup" value for each duplicate value and
I should delete these values in VB. So I would prefer to combine. So I
think I am gonna transform the worksheet code into VB code .

Once finished I will post it here for others to use.


--
mariomaf
------------------------------------------------------------------------
mariomaf's Profile: http://www.excelforum.com/member.php...o&userid=30098
View this thread: http://www.excelforum.com/showthread...hreadid=498266

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Deleting duplicated values

Just go through the steps with the macro recorder on

- insert column B
- add the formula
- add the autofilter
- filter the data
- delete the visible rows
- delete column B

It will need tweaking, but you have the basic macro then.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"mariomaf" wrote in
message ...

The idea worked and is helpfull indeed. But isn't there an VB solution
which is better? Now I have a "Dup" value for each duplicate value and
I should delete these values in VB. So I would prefer to combine. So I
think I am gonna transform the worksheet code into VB code .

Once finished I will post it here for others to use.


--
mariomaf
------------------------------------------------------------------------
mariomaf's Profile:

http://www.excelforum.com/member.php...o&userid=30098
View this thread: http://www.excelforum.com/showthread...hreadid=498266



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 Duplicated Data by Cell Fleone Excel Discussion (Misc queries) 2 January 26th 10 06:29 PM
Deleting Rows with data duplicated in 2 columns [email protected] Excel Worksheet Functions 7 April 10th 07 07:18 PM
duplicated values baha Excel Discussion (Misc queries) 2 December 10th 06 11:11 PM
deleting duplicated cells in a list via advanced autofilter? petevang Excel Discussion (Misc queries) 1 December 7th 05 03:54 PM
non-duplicated values scrabtree23[_3_] Excel Programming 1 February 8th 05 05:54 PM


All times are GMT +1. The time now is 09:30 PM.

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"