I have a table of athlete names, training sessions and dates they completed the sessions. From this table i want to extract the most recent date (excluding the current date) that a specific athlete completed a specific session. So far my formula is as follows:
=IF(MATCH($AC27&$AD27, 'Threshold Efforts Data Entry'!$A$2:$A$2000&'Threshold Efforts Data Entry'!$BS$2:$BS$2000, 0), MAX(('Threshold Efforts Data Entry'!$B$2:$B$2000 <$AE$1)*'Threshold Efforts Data Entry'!$B$2:$B$2000),)
AC27 - specific athlete name AD27 - specific athlete session, A2:A2000 - lookup array for athlete names, BS2:BS2000 - look up array for sessions, B2:B2000 - look up array for dates, AE1 - the current date
The formula works, however it returns the most recent date, rather than the most recent date matched for the athlete name and session. Where have I gone wrong ?