PC Review


Reply
Thread Tools Rate Thread

delete quintuplicate rows of data in spreadsheet

 
 
goognodoubt
Guest
Posts: n/a
 
      21st Apr 2006
After importing data from a daily racing form into an excel spreadsheet
I will have the lifetime past performance of up to 100 +- race horses
so Column A will contain as many as 15 to 20 races of the same (horse)
name even though the data in Column B through
...........................(whatever column) will be unique. I only need
to use 4 races from each horse, I would like a way to filter data so
that only 4 races of each horse are available, the rest will be
deleted. If exporting it into MS Access is a way to do it that is OK
too!!

 
Reply With Quote
 
 
 
 
David Biddulph
Guest
Posts: n/a
 
      21st Apr 2006
"goognodoubt" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> After importing data from a daily racing form into an excel spreadsheet
> I will have the lifetime past performance of up to 100 +- race horses
> so Column A will contain as many as 15 to 20 races of the same (horse)
> name even though the data in Column B through
> ..........................(whatever column) will be unique. I only need
> to use 4 races from each horse, I would like a way to filter data so
> that only 4 races of each horse are available, the rest will be
> deleted. If exporting it into MS Access is a way to do it that is OK
> too!!


I would have thought the easiest way was to have a column to produce a
sequence count of the occurrences of each name. So in row 9 you'd have
=COUNTIF(A$1:A9,A9), and you can copy that from top to bottom of your list.
If you then do an AutoFilter on the list & in your new column select Custom:
less than or equal to 4, that should do the trick. This won't actually
delete but just hide the rows, but you could use the filter the other way &
select "greater than or equal to" 5, and then delete the rows it selects.

You may wish to sort the list before you do the sequence count, so that you
can keep the 4 most recent, or whichever you want.
--
David Biddulph


 
Reply With Quote
 
goognodoubt
Guest
Posts: n/a
 
      21st Apr 2006
Great Answer, it works beautifully, Thanks!!!!!!!!!!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Iteratively delete rows from a spreadsheet Vicki Hagberg Microsoft Excel Programming 3 14th Apr 2009 03:43 AM
Fast Way to Delete Rows from Big Spreadsheet (Using VBA) LarryP Microsoft Excel Programming 5 21st May 2008 02:44 PM
how to delete alternate rows in a spreadsheet? SI Microsoft Excel New Users 3 17th Apr 2008 10:19 AM
How do I delete both duplicate rows from a spreadsheet? =?Utf-8?B?bmF0YWxpYQ==?= Microsoft Excel Misc 3 29th Apr 2006 11:40 PM
Delete rows in a spreadsheet Jeffrey Gertner Microsoft Excel Worksheet Functions 1 8th Apr 2004 02:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:16 AM.