There is an option under Advanced Autofilter which will get you the unique values. Is all of your data in the same cell, or in different onese?
Leon
Main Topics
Browse All TopicsHi there, I have a lot of rows that are duplicated and I would like to group them into just unique rows, so for example.
I have this
000000001000014391 2 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014391 2 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014391 2 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014391 2 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014391 2 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014391 2 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014391 2 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014391 2 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014391 2 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014391 2 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014391 2 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014391 2 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014391 2 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014392 3 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014392 3 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014392 3 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014392 3 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014392 3 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014392 3 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014392 3 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014392 3 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014392 3 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014392 3 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014403 3 PIPE ASTM A106 GR.B SMLS SCH STD
000000001000014403 3 PIPE ASTM A106 GR.B SMLS SCH STD
000000001000014403 3 PIPE ASTM A106 GR.B SMLS SCH STD
000000001000014403 3 PIPE ASTM A106 GR.B SMLS SCH STD
I would like just after my sort/grouping and have it automatically get rid of the rest of them.
000000001000014391 2 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014392 3 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014392 3 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014403 3 PIPE ASTM A106 GR.B SMLS SCH STD
Thank you in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
kesea,
Here's a file with a macro that deletes all duplicate rows:
http://my.storenow.net?f=9
Press the button to run the macro. The macro code is:
Sub uniques()
Dim r As Long
Dim rng As Range
Set rng = Range(Sheets("Sheet1").[A1
rng.Sort Key1:=Range("A1"), Order1:=xlAscending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
DataOption1:=xlSortNormal
For r = Sheets("Sheet1").[A65536].
If Cells(r, 1) = Cells(r - 1, 1) Then
Rows(r - 1).Delete Shift:=xlUp
End If
Next r
End Sub
Hope that helps
Patrick
Hi kesea,
> Just the unique rows.
If you need the entire row to be unique to can try this:
Sub RemoveDuplicateRows()
Dim ws As Worksheet, rng As Range, cel As Range, delrng As Range
Application.ScreenUpdating
Set ws = ActiveSheet
With ws.UsedRange
.AdvancedFilter Action:=xlFilterInPlace, Unique:=True
Set rng = .SpecialCells(xlVisible)
End With
ws.ShowAllData
For Each cel In ws.UsedRange.Columns(1).Ce
If Intersect(cel, rng) Is Nothing Then
If delrng Is Nothing Then
Set delrng = cel
Else
Set delrng = Union(delrng, cel)
End If
End If
Next cel
If Not delrng Is Nothing Then
delrng.EntireRow.Delete
End If
Application.ScreenUpdating
End Sub
Jim
Business Accounts
Answer for Membership
by: keseaPosted on 2006-12-05 at 08:51:02ID: 18077905
Whoops that should have been
I would like just after my sort/grouping and have it automatically get rid of the rest of them.
000000001000014391 2 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014392 3 VALVE PLUG CL150 RF ASTM A216 GR.WCB VPL0341
000000001000014403 3 PIPE ASTM A106 GR.B SMLS SCH STD
Just the unique rows.