LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Duplicate Row Removal Solution

I have an issue where I'm trying to remove duplicate rows from a table
(leaving one so that it is unique) and then another issue where I'm
trying to remove all duplicate rows in a table such that there are no
rows containing that data left.

The spread sheet consists of rows like this:

Col 1 Col 2 Col 3 Col 4
Stuff Stuff Something 1
Stuff Stuff Something 1
Stuff Stuff Stuff 0
Stuff Stuff Nada 1
Stuff Stuff Nada 1
Stuff Stuff Nada 1
Stuff Stuff Stuff 0
Stuff Stuff Stew 0

In this case Column 3 is the one that needs testing to see if they are
dups, all other columns are irrelavent. Basically what I was thinking
was, in terms of an algorithm:

Mark all duplicates with 1 whether they are above or below (thus
needing the OR statement):
=(if below == above, 1 OR if above == below, 1) Then delete all rows
with 1 in that Column 4.

The standard if that marks all but last duplicate could be:
"=if(A2=A1, 1, 0)" After this things really start getting fuzzy as
I'm not familiar enough with programmatically working with Excel.

I'm at a loss as to how to do this in Excel or if there would be an
even better way of doing this. I would appreciate it much if anyone
can demonstrate how this would be accomplished.
 
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
Best solution for removing duplicate content with conditions? popflier Excel Discussion (Misc queries) 2 March 5th 10 07:14 AM
Removal of Zero vmohan1978 Excel Worksheet Functions 4 January 24th 10 07:29 AM
Linking cells/duplicate removal Canuckcrazy Excel Discussion (Misc queries) 0 June 19th 09 12:16 AM
Auto Removal Of Duplicate Rows Astro Excel Worksheet Functions 1 February 19th 09 09:21 AM
Sheet removal...help please Terry Excel Discussion (Misc queries) 2 July 19th 05 11:12 PM


All times are GMT +1. The time now is 07:25 PM.

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

About Us

"It's about Microsoft Excel"