Return Value from Lookup with Multiple Criteria, one being the largest date.

pLethora

New Member
Joined
Sep 15, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Thanks in advance.

I am trying to return the value in the "Due Date" column while using the criteria of Name and then only return the most recent data of the "Date" Column.
Example: Looking up "Lee" in Name Column and the latest data for "Lee" being 02/04/2022 in the "Date" Column which would return the "Due Date" 13/06/2022.
Returning Blank value's is perfectly fine. This is due to a need to keep pasting in data which may have duplicates as well as updated data in the "Due Date" Column which must only return the latest date results.

Could not find anything that would solve my issue.

DateNameDue Date
01/04/2022Lee
01/04/2022John
01/04/2022Adam
02/04/2022John
02/04/2022Lee13/06/2022
02/04/2022Adam17/06/2022
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Perhaps
Excel Formula:
=MAXIFS(C2:C7,A2:A7,MAXIFS(A2:A7,B2:B7,"lee"))
 
Upvote 0
Perhaps
Excel Formula:
=MAXIFS(C2:C7,A2:A7,MAXIFS(A2:A7,B2:B7,"lee"))
Thanks, that didnt quite work the way i needed it to but it kicked started my brain to use:
=MAXIFS(C:C,A:A,MAXIFS(A:A,B:B,G2),B:B,G2) which did what i needed. Thank you.
 
Upvote 0
Solution
Thanks, that didnt quite work the way i needed it to but it kicked started my brain to use:
=MAXIFS(C:C,A:A,MAXIFS(A:A,B:B,G2),B:B,G2) which did what i needed. Thank you.
G2 being the Name.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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