Identifying Duplicates and then finding most recent

TaulPaul

New Member
Joined
Nov 4, 2005
Messages
2
I need a little help.

I have a long list of serial numbers, and then a date associated with an activity for each serial number.

I am trying to identify duplicate entries for each serial number (i.e. I have performed some activity on some unique serial number multiple times), and then for those entries with duplicates find the most RECENT date of activity.

Here's the basic structure:
S/N Date
001 1/1/05
002 1/5/05
002 3/2/05
003 1/3/05
004 4/7/05
004 2/1/05

The desired output would be a list of ALL unique serial numbers, with the corresponding date of the most recent activity for each serial number, such as the following:

S/N Date
001 1/1/05
002 3/2/05
003 1/3/05
004 4/7/05

Thanks!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
"[M]ost recent" is not necessarily unambiguous, hence:
Book2
ABCDEF
1S/NDateS/NDate(1)Date(2)
20011/1/20050011/1/20051/1/2005
30021/5/20050023/2/20053/2/2005
40023/2/20050031/3/20051/3/2005
50031/3/20050044/7/20052/1/2005
60044/7/2005
70042/1/2005
8
Sheet1


E2:

=MAX(IF($A$2:$A$7=D2,$B$2:$B$7))

which is confirmed with control+shift+enter (not just with enter) then copied down.

F2, copied down:

=LOOKUP(2,1/($A$2:$A$7=D2),$B$2:$B$7)
 
Upvote 0

Forum statistics

Threads
1,203,203
Messages
6,054,099
Members
444,702
Latest member
patrickmg17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top