deleting rows if duplicate (1 Viewer)

swarv

Registered User.
Local time
Today, 12:14
Joined
Dec 2, 2008
Messages
196
Hi all,

I was wondering is there a way of deleting rows where there is a duplicate.

i.e.
1 a a a
2 a a a
3 b b b
4 b b b

I would like it to delete rows 2 and 4 leaving just 1 row in that has the data in.

Thanks

Martin
 

Trevor G

Registered User.
Local time
Today, 12:14
Joined
Oct 1, 2009
Messages
2,341
depending on which version of MS Office depends on where to find the function.

In Excel 2007 you would highlight our table then select the Data Tab, and on the right there is the Data Tools and in there is an icon that states Remove Duplicates. When you select this feature you can select which column (s) to check for.
 

chergh

blah
Local time
Today, 12:14
Joined
Jun 15, 2004
Messages
1,414
You can also use the special filter in earlier versions of excel
 

swarv

Registered User.
Local time
Today, 12:14
Joined
Dec 2, 2008
Messages
196
thats great. didn't know that function was there.
 

Rx_

Nothing In Moderation
Local time
Today, 05:14
Joined
Oct 22, 2009
Messages
2,803
That is something else in Excel 2007 to try.
Turned on the recorder and this is what came out.
Might have to consider this fore some future automated reports

Code:
Range("B3:B10").Select
    ActiveSheet.Range("$B$3:$B$10").RemoveDuplicates Columns:=1, Header:=xlNo
 

Users who are viewing this thread

Top Bottom