ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to delete repeted rows automaticaly? (https://www.excelbanter.com/excel-discussion-misc-queries/634-how-delete-repeted-rows-automaticaly.html)

gabarrao

How to delete repeted rows automaticaly?
 

Hello,

I have a very big list of adresses and phones. There are a lot of
repeted data in it.
I would like to know if there is a way to erase the repeted rows of my
list automaticaly. If it is possible, how can I do it?

Thanks very much.

Matheus


--
gabarrao
------------------------------------------------------------------------
gabarrao's Profile: http://www.excelforum.com/member.php...o&userid=16885
View this thread: http://www.excelforum.com/showthread...hreadid=320598


Peter

I would sort the rows (Data, Sort) and then delete the duplicated rows which
will be obvious. Take a note of the original row sequence before the first
sort so you can reresort it back to the original sequence after the deletion
(if required).

"gabarrao" wrote:


Hello,

I have a very big list of adresses and phones. There are a lot of
repeted data in it.
I would like to know if there is a way to erase the repeted rows of my
list automaticaly. If it is possible, how can I do it?

Thanks very much.

Matheus


--
gabarrao
------------------------------------------------------------------------
gabarrao's Profile: http://www.excelforum.com/member.php...o&userid=16885
View this thread: http://www.excelforum.com/showthread...hreadid=320598



gabarrao


Hello,

I have already done this. But even this way the list is too big. I
would like to find and automatic way.

Thanks very much,

Matheus


--
gabarrao
------------------------------------------------------------------------
gabarrao's Profile: http://www.excelforum.com/member.php...o&userid=16885
View this thread: http://www.excelforum.com/showthread...hreadid=320598


IC

"gabarrao" wrote in message
...

Hello,

I have already done this. But even this way the list is too big. I
would like to find and automatic way.

Thanks very much,

Matheus


--
gabarrao
------------------------------------------------------------------------
gabarrao's Profile:

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


This macro assumes your data starts at row 1, that column A is the one you
want to test for duplicates and that the data has been sorted on column A.
Change the Row= and Col= lines to change the target cells.

It will keep the first row of any dupes and continue until it finds a 2
blank cells.

Sub deletedupes()
Row = 1
Col = 1
Do Until Cells(Row, Col).Value = ""
Cells(Row + 1, Col).Activate
If Cells(Row + 1, Col) = Cells(Row, Col) Then
ActiveCell.EntireRow.Delete
Else
Row = Row + 1
End If
Loop
End Sub

Ian



Gord Dibben

DataFilterAdvanced Filter

Check "unique records only" and "copy to another location".

For more on this method see Debra Dalgleish's site

http://www.contextures.on.ca/xladvfilter01.html

Gord Dibben Excel MVP

On Fri, 26 Nov 2004 11:35:14 -0600, gabarrao
wrote:


Hello,

I have already done this. But even this way the list is too big. I
would like to find and automatic way.

Thanks very much,

Matheus



Mark

Hi,
I wrote something recently for another user and the main
problem was that although I created each string in upper
case it does not take into account that one cell had ST
and the other cell had Street. You have to make sure that
rrepeated lines are actually repeats, word for word. Send
me your email and I will send it to you.



- -mark

see my excel stuff:
http://au.geocities.com/excelmarksway
http://www.geocities.com/excelmarksway

-----Original Message-----

Hello,

I have a very big list of adresses and phones. There are

a lot of
repeted data in it.
I would like to know if there is a way to erase the

repeted rows of my
list automaticaly. If it is possible, how can I do it?

Thanks very much.

Matheus


--
gabarrao
----------------------------------------------------------

--------------
gabarrao's Profile: http://www.excelforum.com/member.php?

action=getinfo&userid=16885
View this thread:

http://www.excelforum.com/showthread...hreadid=320598

.



All times are GMT +1. The time now is 02:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com

ExcelBanter Database Error
Database Error Database error
The ExcelBanter database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.excelbanter.com home page, then try to open another page.
  • Click the Back button to try another link.
The www.excelbanter.com forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.