View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Sheeloo[_2_] Sheeloo[_2_] is offline
external usenet poster
 
Posts: 364
Default Selecting Last Record

As I understand that your data is sorted by receipt number by date by time
stamp (all in ascending order) meaning that first record is oldest and last
record is the latest for a given receipt number and you want to identify the
last record for a receipt number...
Assuming receipt numbers are in Col A upto row 40000 enter this in any
column and first row
=SUMPRODUCT(--(A1:$A$40000=A1))
and copy down till row 40000

Cells with value 1 will indicate the last row for the corresponding receipt
number. Basically you will get the no of rows for a given receipt number in
descending order agains that receipt number...

"NWO" wrote:

Hello

I have a list of 40,000 records.

The records are grouped by a receipt number, a receipt date, and time stamp.
So, for example, there can be 10 records with the same receipt number, 4
different dates, with each record having a time stamp. Now the list is
sorted in the following order - Receipt Number, Date, Time Stamp. What I am
attempting to accomplish is to identify the last record in each record set
based on the most recent date,and ifmore than one date then the latest time
stamp. How would I accomplish this using Excel?

Thank you.

Mark :)