How to filter/lookup rows of data based on the latest date in a cell

Monty85

Board Regular
Joined
May 6, 2019
Messages
62
Office Version
  1. 365
Platform
  1. Windows
I have a large set of a data that has multiple entries for the same users based on start dates. I'm trying to find a way to either filter or extract the data to a new sheet where it will show the latest row only for each user.

I think I can extract a single cell based on the criteria, but is there a quick way to show just the entre row with the latest date for each user?

All the latest dates are different as well.

Example:

USER_IDNAMEDOBSTART_DATEEND_DATE
123456Tiger Woods30/12/197501/12/201931/12/2019
123456Tiger Woods30/12/197501/07/201930/06/2020
456456Adam Scott16/07/198001/07/202130/06/2022
456456Adam Scott16/07/198001/07/2022
987654John Daly28/04/196601/07/202030/06/2021
987654John Daly28/04/196601/07/202131/12/2021
987654John Daly28/04/196601/01/2022

And the result would be:
USER_IDNAMEDOBSTART_DATEEND_DATE
123456Tiger Woods30/12/197501/07/201930/06/2020
456456Adam Scott16/07/198001/07/2022
987654John Daly28/04/196601/01/2022

Thanks,
Monty
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

latest date for each user
Latest date using which column?
 
Upvote 0
Thanks. (y)


In that case, why is Tiger Woods expected result start date 01/07/2019 when another of his rows has the later start date of 01/12/2019?

Ah, because im a bonehead and can't type my own examples properly.

Sorry about that - I dont think i can edit my post, but yes it should just be latest row for him which would be the first one - start = 01/12/2019.
 
Upvote 0
See how this goes then

Monty85.xlsm
ABCDE
1USER_IDNAMEDOBSTART_DATEEND_DATE
2123456Tiger Woods30/12/19751/12/201931/12/2019
3123456Tiger Woods30/12/19751/07/201930/06/2020
4456456Adam Scott16/07/19801/07/202130/06/2022
5456456Adam Scott16/07/19801/07/2022
6987654John Daly28/04/19661/07/202030/06/2021
7987654John Daly28/04/19661/07/202131/12/2021
8987654John Daly28/04/19661/01/2022
Sheet1


Monty85.xlsm
ABCDE
1USER_IDNAMEDOBSTART_DATEEND_DATE
2123456Tiger Woods30/12/19751/12/201931/12/2019
3456456Adam Scott16/07/19801/07/2022
4987654John Daly28/04/19661/01/2022
5
Sheet2
Cell Formulas
RangeFormula
A2:E4A2=LET(f,FILTER(Sheet1!A2:E8,Sheet1!D2:D8=MAXIFS(Sheet1!D2:D8,Sheet1!A2:A8,Sheet1!A2:A8)),IF(ISNUMBER(f),f,f&""))
Dynamic array formulas.
 
Upvote 0
You're welcome.
Let us know (with small sample again) if any issues arise.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,154
Members
453,021
Latest member
Justyna P

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