Return a Completion Date with a Multi-Criteria Excel Formula
Question details
Return a person's completion date using multiple lookup criteria instead of displaying an X.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet checks a person and requirement against records on the Physicals sheet and needs to display the matching completion date.
- Observed behavior
- The existing formula displays an X or may return an incorrect value because of its conditional logic, lookup range, or return-column index.
Confirm that Physicals column W contains the person criterion, column M contains the requirement criterion, and column AB contains completion dates. Check that B9 and J6 contain the intended criteria and that the data ranges cover all relevant rows.
Return the matching date with INDEX and MATCH
Use this formula to return the date from column AB for the first row matching both criteria.
The return range M:AB includes 16 columns, so column index 16 points to AB. The two MATCH criteria must use ranges with the same start and end rows.
Select the result cell and enter =IFERROR(INDEX(Physicals!$M$2:$AB$4000,MATCH(1,(Physicals!$W$2:$W$4000=$B9)*(Physicals!$M$2:$M$4000=J$6),0),16),""). Adjust the sheet, criteria cells, and row limits if your workbook differs.
Press Enter in Microsoft 365 or another Excel version that supports dynamic arrays. In older Excel versions, confirm the formula with Ctrl+Shift+Enter.
Select the result cell, then choose Home > Number Format > Short Date or another date format.
Compare the result with the first row on Physicals where column W matches B9 and column M matches J6. If the result is blank, check those criteria and the source ranges; IFERROR also hides formula errors.

Return Completion Dates in WPS Spreadsheet
Use the same INDEX and MATCH formula in WPS Spreadsheet to find a completion date using a person and requirement as criteria.
- 1. Open the workbook: Open WPS Spreadsheet and use Open to select the workbook containing the Physicals sheet.
- 2. Enter the lookup formula: Select the result cell and enter =IFERROR(INDEX(Physicals!$M$2:$AB$4000,MATCH(1,(Physicals!$W$2:$W$4000=$B9)*(Physicals!$M$2:$M$4000=J$6),0),16),"").
- 3. Confirm the formula: Press Enter, or use Ctrl+Shift+Enter if your WPS Spreadsheet version requires it for array formulas.
- 4. Format and check the date: Select the result cell and use Home > Number Format to choose a date format, then compare it with the matching value in Physicals column AB.

Frequently Asked Questions
Why does the original formula display X instead of a date?
Its IF condition explicitly returns "X" when the status begins with "ACTIVE " and J8 equals "PERIODIC PHYSICAL FOR HEALTH". Use the date-returning formula without that branch if you always want the completion date.
Why is the return-column index 16?
Within the range M:AB, column M is the first column and AB is the 16th. If you change the INDEX range, recalculate the column number relative to its first column.
Why does the result appear as a number instead of a date?
Excel stores dates as serial numbers. Select the result cell and choose Home > Number Format > Short Date to display it as a date.
What happens if more than one row matches?
MATCH returns the first matching row in the specified range. Check the order of records on the Physicals sheet if multiple rows match the same person and requirement.
Why is the result blank?
IFERROR returns an empty string when the lookup produces an error, including when no row matches. Check B9 and J6 against columns W and M, verify the row ranges, and temporarily remove IFERROR if you need to see the underlying error.




