Re: removing early duplicates
From: Tom Ogilvy (twogilvy_at_msn.com)
Date: 03/06/04
- Next message: Tom Ogilvy: "Re: data info on a form"
- Previous message: Tom Ogilvy: "Re: Identifying duplicates/unique values"
- In reply to: Mike: "removing early duplicates"
- Next in thread: Tom Ogilvy: "Re: removing early duplicates"
- Reply: Tom Ogilvy: "Re: removing early duplicates"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 6 Mar 2004 17:23:27 -0500
Assume you data is in A1 going down column A.
in B1 put in a formula
=if(Countif($A$1:A1,A1)=1,"Keep","Delete")
then drag fill this down the column.
select A1 and then do Data=>Filter=>Autofilter
In the dropdown in B1, select Delete.
Then highlight all the rows below Row A and do Edit=>Delete.
Now do Data=>Filter=>Autofilter to turn off the autofilter.
Only the unique list should remain.
If this isn't what you want, post back with what you mean by UDF. Generally
a UDF refers to a vba custom function that is used in a worksheet as a
formula - but formulas can't change existing cells - they can't delete data
inplace.
-- Regards, Tom Ogilvy "Mike" <junkmoskowitz@cinci.rr.com> wrote in message news:823501c403c3$2b6f5880$a301280a@phx.gbl... > Can anyone help me with a UDF to remove early duplicates > from a list? > > Example: > Input: > A > B > A > C > B > > Output: > A > C > B > > Thanks, > Mike
- Next message: Tom Ogilvy: "Re: data info on a form"
- Previous message: Tom Ogilvy: "Re: Identifying duplicates/unique values"
- In reply to: Mike: "removing early duplicates"
- Next in thread: Tom Ogilvy: "Re: removing early duplicates"
- Reply: Tom Ogilvy: "Re: removing early duplicates"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|