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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

arthurbr

Well-known Member
Joined
Dec 8, 2006
Messages
2,532
Office Version
  1. 365
  2. 2010
Perhaps
Excel Formula:
=MAXIFS(C2:C7,A2:A7,MAXIFS(A2:A7,B2:B7,"lee"))
 
Upvote 0

pLethora

New Member
Joined
Sep 15, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
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

pLethora

New Member
Joined
Sep 15, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
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,187,026
Messages
5,961,170
Members
438,521
Latest member
Ailana

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
Top