Function Problems

WPS Spreadsheets INDEX MATCH Formula to Return Time Values

John WilsonJohn Wilson Nov 12, 2026 869 views

Question details

The user needs to return a time value from a table when date, number, status, and location criteria all match.

WPS Spreadsheets INDEX MATCH Formula to Return Time Values
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
A table contains dates, numbers, statuses, locations, and time values. Criteria are entered in separate cells and should identify the matching time.
Observed behavior
The goal is to return the matching time value and display a blank when no combination is found.
Before you start

Confirm that the source columns use consistent date, number, status, and location formats, and verify that the result range contains valid time values. Check the criteria cells H5, I5, J5, and K4 before entering the formula.

Solution 1Recommended

Use INDEX and MATCH for a four-criteria time lookup

Use this solution when one row should be returned for the matching date, number, status, and location combination.

The formula creates four TRUE/FALSE tests, multiplies them so only a row meeting every criterion produces 1, and uses INDEX to return the corresponding time from column E. IFERROR displays a blank when no match exists.

1
Select the result cell

In WPS Spreadsheets, click the cell where the matching time should appear, such as the cell at the intersection of the criteria row and date header.

2
Enter the multi-criteria formula

Enter =IFERROR(INDEX($E$3:$E$18,MATCH(1,($B$3:$B$18=$H5)*($D$3:$D$18=$I5)*($C$3:$C$18=$J5)*($A$3:$A$18=K$4),0)),"") and press Enter.

3
Confirm an array formula when required

If your WPS Spreadsheets version does not calculate the array automatically, press Ctrl+Shift+Enter instead of Enter to confirm the formula.

4
Fill the formula

Drag the fill handle across or down the result area. The mixed references keep the source ranges fixed while the criteria references adjust for each row or column.

Check for duplicate combinations: This formula returns the first matching time. If multiple rows share the same status, direction, location, and date combination, review the source data or summarize it with a PivotTable.

Return matching time values with WPS Spreadsheets

WPS Spreadsheets lets you build the same multi-criteria INDEX and MATCH lookup, fill it across a table, and keep the result blank when no matching record exists.

  1. 1. Open your workbook: Launch WPS Office, choose Spreadsheets, and open the workbook containing the source table.
  2. 2. Prepare the criteria cells: Verify the date, number, status, and location criteria in the cells referenced by the formula.
  3. 3. Enter the lookup formula: Select the output cell and enter the INDEX and MATCH formula with the source ranges and criteria references.
  4. 4. Confirm and fill the formula: Press Enter, or Ctrl+Shift+Enter when array confirmation is required, then drag the fill handle through the output range.
Supports multi-criteria INDEX and MATCH lookups for returning time valuesProvides a familiar spreadsheet interface for entering and filling formulasCan open and edit Microsoft Excel XLS and XLSX filesHelps preserve formula-based lookup workflows during migration from Excel
microsoft office alternative - wps office

Frequently Asked Questions

Which cells does the formula use for the lookup criteria?

The formula compares column B with H5, column D with I5, column C with J5, and column A with K4. Adjust these references if your criteria are stored elsewhere.

Why does the formula return a blank instead of an error?

IFERROR surrounds the INDEX and MATCH calculation. When no row satisfies all four conditions, IFERROR returns an empty string instead of an error message.

Do I need to press Ctrl+Shift+Enter in WPS Spreadsheets?

Use Ctrl+Shift+Enter if your WPS Spreadsheets version requires traditional array-formula confirmation. Newer versions may calculate the multiplied criteria array after you press Enter.

What happens if two rows meet all four criteria?

MATCH with 0 returns the first matching row, so INDEX returns the time from that row. Remove duplicates or use a PivotTable when each criteria combination should have only one time value.