Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default delete row if duplicate

Hi Folks
I have 8000 lines to sort though, I need to get rid of duplicates
Can someone tell me how to remove a complete row if the one above has two
cells that are identical?
thanks in advance
--
Vass

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default delete row if duplicate


"Vass" wrote in message
o.uk...
Hi Folks
I have 8000 lines to sort though, I need to get rid of duplicates
Can someone tell me how to remove a complete row if the one above has two
cells that are identical?
thanks in advance



ah ha, almost there
=IF(ISNUMBER(MATCH(F231,F230,0),+IF(ISNUMBER(MATCH (H231,H230,0))),"Dup","
"))

but commas or brackets are wrong....

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default delete row if duplicate

A macro that looks at col F and col H
sub deldups()
for i = cells(rows.count, "f").end(xlup).row to 1 step -1
if cells(i,"f")=cells(i,"h") then rows(i).delete
next i
end sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Vass" wrote in message
o.uk...

"Vass" wrote in message
o.uk...
Hi Folks
I have 8000 lines to sort though, I need to get rid of duplicates
Can someone tell me how to remove a complete row if the one above has two
cells that are identical?
thanks in advance



ah ha, almost there
=IF(ISNUMBER(MATCH(F231,F230,0),+IF(ISNUMBER(MATCH (H231,H230,0))),"Dup","
"))

but commas or brackets are wrong....


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default delete row if duplicate


"Don Guillett" wrote in message
...
A macro that looks at col F and col H
sub deldups()
for i = cells(rows.count, "f").end(xlup).row to 1 step -1
if cells(i,"f")=cells(i,"h") then rows(i).delete
next i
end sub
--
Don Guillett


cheers Don
--
V

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 56
Default delete row if duplicate

Try doing an advanced data then checking the box "unique records only". You
can then select copy this to another sheet. This will get rid of dups.
--
If this has helped you, please click Yes

Thanks,
Megan


"Vass" wrote:


"Vass" wrote in message
o.uk...
Hi Folks
I have 8000 lines to sort though, I need to get rid of duplicates
Can someone tell me how to remove a complete row if the one above has two
cells that are identical?
thanks in advance



ah ha, almost there
=IF(ISNUMBER(MATCH(F231,F230,0),+IF(ISNUMBER(MATCH (H231,H230,0))),"Dup","
"))

but commas or brackets are wrong....

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete duplicate cell PointerMan Excel Worksheet Functions 4 March 4th 09 04:38 AM
delete duplicate rows christinaLO Excel Worksheet Functions 1 February 27th 07 06:22 PM
How do you delete duplicate addresses, but keep duplicate names? Shelly Excel Discussion (Misc queries) 1 August 28th 06 10:36 PM
How do I delete duplicate cells? AYANG Excel Worksheet Functions 1 June 27th 06 06:29 AM
Delete Duplicate chris Excel Discussion (Misc queries) 3 February 20th 06 10:35 PM


All times are GMT +1. The time now is 06:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"