Function Problems

WPS Spreadsheet: Find the Minimum Temperature by Date with INDEX and MATCH

Natalie TaylorNatalie Taylor Nov 12, 2026 869 views

Question details

Find the lowest temperature recorded across three stations for a selected date and optionally return the station with that minimum temperature.

Find the Minimum Temperature by Date with INDEX and MATCH in WPS Spreadsheet
Product
WPS Spreadsheet
Device & OS
not provided
Scenario
Temperature data is arranged by date in rows and station names in columns. A selected date must be matched to its row, including cases where some dates are missing.
Observed behavior
The required result is the minimum temperature for the matched date, with an optional station name identifying where that minimum occurred. If the date is absent, the formula should return a blank instead of an error.
Before you start

Confirm that the date column, station temperature range, and station header row are aligned. Place the date to search in H4 and verify that the lookup dates use the same date format as the source data.

Solution 1Recommended

Use INDEX, MATCH, and MIN to return the minimum temperature

Use this formula when you need the lowest temperature across all station columns for the date selected in H4.

MATCH locates the selected date in the date column, while INDEX returns the corresponding row of station temperatures. MIN then evaluates that row and returns the lowest value.

Wrap the formula with IFERROR when a missing date should produce a blank result.

1
Select the result cell

In WPS Spreadsheet, click the cell where you want the minimum temperature to appear.

2
Enter the minimum formula

Enter =IFERROR(MIN(INDEX($C$4:$E$9,MATCH(H4,$B$4:$B$9,0),)),"") and press Enter. The formula matches the date in H4 and evaluates the temperatures in the corresponding row.

3
Test another date

Change the date in H4 to confirm that the result updates. If H4 does not exist in $B$4:$B$9, the IFERROR wrapper returns a blank.

Return the station name too: To identify the station associated with the minimum temperature, use =IFERROR(INDEX($C$3:$E$3,MATCH(MIN(INDEX($C$4:$E$9,MATCH(H4,$B$4:$B$9,0),)),INDEX($C$4:$E$9,MATCH(H4,$B$4:$B$9,0),),0)),""). The station headers must be in C3:E3.

Analyze date-based temperature data in WPS Spreadsheet

WPS Spreadsheet lets you combine INDEX, MATCH, and MIN to retrieve a minimum value from the row matched to a selected date, then identify the station associated with that result. The same workbook can handle missing-date checks with IFERROR.

  1. 1. Open the workbook: Launch WPS Office, choose Spreadsheet, and open the workbook containing the date and station temperature data.
  2. 2. Set the lookup date: Enter or select the date to search in H4, ensuring it matches the source date format.
  3. 3. Calculate the minimum: In an empty result cell, enter =IFERROR(MIN(INDEX($C$4:$E$9,MATCH(H4,$B$4:$B$9,0),)),"") and press Enter.
  4. 4. Return the station: In another result cell, enter the station lookup formula using INDEX and MATCH against the minimum row value.
Find the minimum temperature across multiple station columns for a selected date.Return the station header associated with the lowest value.Use IFERROR to keep missing-date results blank.Open and save Microsoft Excel XLSX workbooks with compatible formulas.
microsoft office alternative - wps office

Frequently Asked Questions

What formula returns the minimum temperature for the date in H4?

Use =MIN(INDEX($C$4:$E$9,MATCH(H4,$B$4:$B$9,0),)). To show a blank when the date is missing, use =IFERROR(MIN(INDEX($C$4:$E$9,MATCH(H4,$B$4:$B$9,0),)),"").

How can I return the station with the minimum temperature?

Use =INDEX($C$3:$E$3,MATCH(MIN(INDEX($C$4:$E$9,MATCH(H4,$B$4:$B$9,0),)),INDEX($C$4:$E$9,MATCH(H4,$B$4:$B$9,0),),0)). This matches the minimum value to the station header row.

What happens if the selected date is not in the data?

Without error handling, MATCH returns an error because it cannot find the date. Wrap the complete formula in IFERROR, such as =IFERROR(formula,""), to display a blank.

Which ranges should contain the dates, temperatures, and station names?

In the example, dates are in B4:B9, station temperatures are in C4:E9, and station names are in C3:E3. Adjust these absolute references to match your worksheet layout.

Can this formula handle missing temperature values for one station?

Yes, MIN evaluates the available numeric values in the matched row. Ensure missing values are blank or nonnumeric; if an error value is present in the row, address that error before calculating the minimum.