Tidy up my excel database

richiwatts

Board Regular
Joined
Aug 27, 2002
Messages
131
I have a database that has just over 3000 rows and 3 columns. In the cells on each row are groups of words (one word per cell) e.g

bights bites bytes

The problem is that this group of words shows up 3 times in the database as:

bights bites bytes
bites bytes bights
bytes bights bites

I have this problem for every single line in my database. And they are spread out all over the place as column (A)is in alphabetical order. Really and truelly I should only have about 1000 rows.

Does anyone have any ideas as to how I could tidy this up a get rid of the duplicates? I am a beginner with Excel so I would be grateful if you could explain it in basic terms.

The only way i can think of is to be able to make all off the rows be in alphabetical order so that I get this
bights bites bytes
bights bites bytes
bights bites bytes

That way it would be easier to find all the duplicates and delete them. But how do i do that?

many thanks
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Try, Filter In Place, Unique. Data-Filter from ToolBar or the code below:

Sub myFilter()
Range("A1", Range("A65536").End(xlUp)).AdvancedFilter _
Action:=xlFilterInPlace, Unique:=True

Range("A1", Range("B65536").End(xlUp)).SpecialCells _
(xlCellTypeVisible).Copy Destination:=Sheets("Sheet1").Range("A1")

ActiveSheet.ShowAllData
End Sub


You will need to change the ranges. This will currently filter con column "A" only. JSW
 
Upvote 0
This macro should sort all the rows in Ascending order.

<pre>Sub SortRows()
Dim lRow As Long
For lRow = 2 To Range("A65536").End(xlUp).Row
Cells(lRow, 1).Resize(1, 3).Sort Key1:=Cells(lRow, 1), Order1:=xlAscending, Header:=xlNo, Orientation:=xlLeftToRight
Next lRow
End Sub</pre>
 
Upvote 0
I suppose if the duplicates were in a diffent colour I could take the data into word and delete all text with that colour
 
Upvote 0

Forum statistics

Threads
1,222,246
Messages
6,164,807
Members
451,917
Latest member
WEB78

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top