Function Problems

Return the Latest Employee Training Date with Excel MAXIFS

Jason MillerJason Miller Nov 18, 2026 868 views

Question details

Find the latest training date for each employee and training topic.

Return the Latest Employee Training Date with Excel MAXIFS
Product
Microsoft Excel
Device & OS
not provided
Scenario
Employee names and topics are listed on the Data sheet, while employee names and topic-specific training dates are stored on the Table sheet.
Observed behavior
Each row on the Data sheet should display the most recent date for its employee and topic combination.
Before you start

Check that Data!A2 contains an employee name and Data!B2 contains a topic matching a header in Table!B1:F1. Employee names should be in Table column A, and training dates should be stored as Excel dates in columns B through F.

Solution 1Recommended

Use MAXIFS with INDEX and MATCH to find the latest date

Use this formula when each training topic has its own date column on the Table sheet.

MATCH finds the topic column, INDEX returns that column, and MAXIFS selects the latest date for the matching employee.

1
Enter the formula

On the Data sheet, select cell C2 and enter =MAXIFS(INDEX(Table!$B:$F,0,MATCH(B2,Table!$B$1:$F$1,0)),Table!$A:$A,A2).

2
Fill down

Select C2 and drag its fill handle down the result column to calculate the latest date for each employee and topic.

3
Format the results

Select the results in column C, then use Home > Number Format > Short Date to display the returned values as dates.

Use MAXIFS with INDEX and MATCH to find the latest date
Check missing results: If the topic header is not found, MATCH returns #N/A. If MAXIFS finds no matching employee or no positive date, it may return 0; check the source data before interpreting that value as a date.
Work with training records in WPS

Find the Latest Training Date in WPS Spreadsheets

Open your workbook in WPS Spreadsheets and use MAXIFS with INDEX and MATCH to return the most recent date for each employee and topic.

  1. 1. Open the workbook: In WPS Office, open the Excel workbook containing the Data and Table sheets.
  2. 2. Enter the formula: On the Data sheet, select C2 and enter =MAXIFS(INDEX(Table!$B:$F,0,MATCH(B2,Table!$B$1:$F$1,0)),Table!$A:$A,A2).
  3. 3. Copy and format: Drag the fill handle from C2 down the results column, then select the results and choose a date format from the Home tab.
  4. 4. Save the workbook: Choose File > Save As and select an Excel workbook format such as XLSX.
Find the latest date across topic-specific training columnsOpen and edit Microsoft Excel XLSX workbooksUse a familiar spreadsheet interface with free, lightweight office tools
QA img-9

Frequently Asked Questions

Why does the formula return #N/A?

MATCH returns #N/A when the topic in Data!B2 cannot be found in Table!B1:F1. Check the topic spelling and remove any unintended spaces.

Why do I see a number instead of a date?

Excel stores dates as serial numbers. Select the result cells and choose Home > Number Format > Short Date.

What does a zero result mean?

MAXIFS can return 0 when no employee matches or when there is no positive date in the selected topic column. Check the employee name and source dates on the Table sheet.

Which Excel versions support MAXIFS?

MAXIFS is available in Excel 2019 and later and Microsoft 365. In older versions, the function may not be recognized.