Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default remove duplicates, keeping latest dated record

Hi

I have an XL dbs with approx 7000 records in it. These are a list of
people who have attended training - many of the names and addresses
are duplicated, but column AF contains a date. I need to be able to
remove (or flag) duplicates, but keep the latest dated record for each
person (so we have their most recent address).

So basically I want to keep the most recently dated record for each
person, flagging others as 'old'

Any ideas would be welcome.

I can look at this in either XL2002 or XL 2007, so whichever has the
best feature to solve this.

TIA

Steve
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default remove duplicates, keeping latest dated record

1. Sort the data first by name then by date (descending)

This will leave you with the data organized by name. So all the Steve
Poster records will be in a contiguous block. Also the first record in the
Steve Poster block will have the most recent date.

2. Create a simple VLOOKUP() table to pull the data. If we VLOOKUP Steve
Poster we will get the first matching recored, which will also be the most
recent data.

A tiny trick, but it should work.

--
Gary''s Student - gsnu200813


"Steve" wrote:

Hi

I have an XL dbs with approx 7000 records in it. These are a list of
people who have attended training - many of the names and addresses
are duplicated, but column AF contains a date. I need to be able to
remove (or flag) duplicates, but keep the latest dated record for each
person (so we have their most recent address).

So basically I want to keep the most recently dated record for each
person, flagging others as 'old'

Any ideas would be welcome.

I can look at this in either XL2002 or XL 2007, so whichever has the
best feature to solve this.

TIA

Steve

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default remove duplicates, keeping latest dated record

Hey thanks for that - it worked a treat.


On Wed, 12 Nov 2008 07:43:00 -0800, Gary''s Student
wrote:

1. Sort the data first by name then by date (descending)

This will leave you with the data organized by name. So all the Steve
Poster records will be in a contiguous block. Also the first record in the
Steve Poster block will have the most recent date.

2. Create a simple VLOOKUP() table to pull the data. If we VLOOKUP Steve
Poster we will get the first matching recored, which will also be the most
recent data.

A tiny trick, but it should work.


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
Selecting the latest record for transactions ahmedzia Excel Discussion (Misc queries) 4 September 2nd 09 02:36 PM
which record is deleted when I use the "remove duplicates" functi. amcellhinney Excel Worksheet Functions 1 November 10th 08 01:03 AM
Record keeping of points, etc. [email protected] Excel Discussion (Misc queries) 3 May 20th 08 01:11 AM
Keeping record of clients and job numbers per bill? Chhaya Excel Discussion (Misc queries) 1 September 18th 06 12:55 PM
How do I set up a record keeping on Water Meters Arvin New Users to Excel 1 December 21st 05 01:48 PM


All times are GMT +1. The time now is 07:33 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"