Forum

Notifications
Clear all

LastStatus: Return value for most recent (3 criteria)

3 Posts
2 Users
0 Reactions
143 Views
(@dombrosygmail-com)
Posts: 11
Eminent Member
Topic starter
 

Date | Name  | Exercise  | Status  | LastTimeStatus

-----------------------------------------------------------------------------

From my above columns in my spreadsheet, I am trying to automatically populate LastTimeStatus with data from the Status column.

I wish to match the Name and Exercise, then find the most recent date from the matches (excluding today)

See attached spreadsheet. The final column in the table shows where the status should have come from.

Should I be using MAX, V/XLOOKUP, MATCH or AND?

 

[excuse the multiple files, there was no delete files option - the last one is the correct file]

 
Posted : 17/01/2024 10:32 pm
Anders Sehlstedt
(@sehlsan)
Posts: 970
Prominent Member
 

Hello,

I assume you have Excel 365 and thus MAXIFS function.
Try with following formula: =MAXIFS([Status],[Exercise],"*"&[@Exercise]&"*",[Name],[@Name],[Date],"<"&[@Date])

See attached file for reference.

Br,
Anders

 
Posted : 19/01/2024 2:31 am
(@dombrosygmail-com)
Posts: 11
Eminent Member
Topic starter
 

Great. That works well Anders.

Thanks heaps 🙂

 
Posted : 20/01/2024 6:30 pm
Share: