Index min value from one column based on multiple matches in another column

freeb1893

Board Regular
Joined
Jul 30, 2012
Messages
234
Office Version
  1. 365
Platform
  1. Windows
I have an array with multiple records with the same name on them, but with different dates in another column.

I'd like to search that array, matching on the name, and index the farthest in the past date associated to the name

Here is some same data:

10/5/22 8:27 AM​
Smith, John
9/26/22 3:31 PM​
Doe, Jane
7/29/22 9:39 AM​
Gathering Requirements
7/29/22 9:39 AM​
Smith, John
11/8/22 2:15 PM​
Rickman, Alan
7/18/22 4:52 PM​
Ready for Code Review
7/29/22 9:11 AM​
Ready for Code Review

The resulting formula, if I looked up "Smith, John", I'd return 7/29/22 9:39 AM since it's the farthest in the past date associated to a record under his name

Anyone know how to put this into a formula? Thanks in advance
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
idk this formula can help u or not, but i recomended this formula to help ur problem

u can see at picture below

=IFERROR(INDEX($L$4:$L$13,AGGREGATE(15,6,(ROW($L$4:$L$13)-MIN(ROW($L$4:$L$13))+1)/($M$4:$M$13=$P$4),ROW(A1))),"")

1692932020839.png
 
Upvote 0

Forum statistics

Threads
1,223,883
Messages
6,175,168
Members
452,615
Latest member
bogeys2birdies

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