Function Problems

Fix Approximate MATCH Failing with Cyclic Ascending and Descending Data in WPS Spreadsheets

Khadija KhanKhadija Khan Nov 13, 2026 869 views

Question details

The user needs to understand why approximate MATCH fails when lookup data rises and falls cyclically and how to perform a reliable lookup in WPS Spreadsheets.

Fix Approximate MATCH Failing with Cyclic Ascending and Descending Data in WPS Spreadsheets
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
You are using MATCH with approximate match types 1 or -1 on a lookup column whose values rise and fall in cycles instead of staying globally sorted.
Observed behavior
The approximate MATCH formula returns the wrong position, #N/A, or an unexpected nearest match because the lookup range is cyclic rather than sorted in one direction.
Before you start

Open the workbook in WPS Spreadsheets and verify whether the lookup column is globally ascending, globally descending, or cyclic. If the data is cyclic, isolate the continuous sorted segment or prepare a helper column before editing the MATCH formula.

Solution 1Recommended

Restrict Approximate MATCH to the Sorted Ascending or Descending Segment

Use this when your cyclic data contains a continuous segment that is locally sorted in the direction needed by MATCH.

Approximate MATCH only checks sort direction, not the entire data shape. By limiting lookup_array to a continuous sorted segment, you give MATCH the valid order it expects.

1
Select the sorted segment

Click and drag to select only the continuous ascending or descending part of the lookup column that contains the lookup value.

2
Open the formula cell

Click the cell where you want the result, then type =MATCH( in the formula bar to start the function.

3
Enter the restricted MATCH formula

Complete the formula as =MATCH(lookup_value, selected_sorted_segment, 1) for ascending data or =MATCH(lookup_value, selected_sorted_segment, -1) for descending data, and press Enter.

4
Adjust the result position if needed

Remember that the returned position is relative to the selected segment, not the whole column. Add the segment's starting row offset when referencing the larger dataset.

Restrict Approximate MATCH to the Sorted Ascending or Descending Segment
Expected result restored: Restricting the range to a sorted segment lets approximate MATCH return the expected nearest-match position without changing your source data.
WPS Spreadsheets lookup fix

Solve Approximate MATCH Cyclic Data Lookups in WPS Spreadsheets

Create reliable lookups in WPS Spreadsheets by restricting approximate MATCH to sorted segments, adding a helper column, or switching to exact match. WPS handles cyclic data preparation in a free, familiar spreadsheet environment while remaining compatible with Excel .xlsx workbooks.

  1. 1. Open the workbook in WPS Spreadsheets: Launch WPS Office, click Spreadsheets, and open the workbook that contains the cyclic data.
  2. 2. Inspect the lookup column order: Click the lookup column header and review whether the values are globally sorted or split into ascending and descending cycles.
  3. 3. Apply the sorted-segment MATCH formula: In the target cell, type =MATCH(lookup_value, sorted_segment, 1) for ascending data or =MATCH(lookup_value, sorted_segment, -1) for descending data, then press Enter.
  4. 4. Test the formula result: Check the returned position against the selected segment. If you need to search the whole cyclic range, add a helper column or use match_type 0 for exact values.
Prevents incorrect MATCH positions when lookup data rises and falls cyclicallyOpens and saves Microsoft Excel .xlsx files without formula conversionFree spreadsheet tools for sorting, helper columns, and MATCH functionsFamiliar ribbon interface makes it easy to switch from Microsoft Excel
microsoft office alternative - wps office

Frequently Asked Questions

Why does approximate MATCH fail when my data goes up and down?

Approximate MATCH with match_type 1 requires an ascending lookup range, and match_type -1 requires a descending range. Cyclic data that rises and falls is not globally sorted, so WPS Spreadsheets cannot perform a reliable nearest match on the full range.

Can I use approximate MATCH on only part of my data?

Yes. Select the continuous ascending or descending segment that contains the lookup value and use that segment as the lookup_array. The returned position is relative to that segment, so add an offset if necessary.

How do I make MATCH work on unsorted cyclic data when I only need exact values?

Set match_type to 0. The formula =MATCH(lookup_value, lookup_range, 0) finds an exact match without requiring any sort order and returns #N/A if no exact match exists.

What is the fastest way to use a nearest match if my data cannot be sorted?

Add a helper column whose values increase or decrease consistently in the order you want to search, and point approximate MATCH to that helper column instead of the original cyclic data.

Does WPS Spreadsheets support the same MATCH behavior as Excel?

Yes. WPS Spreadsheets follows the standard MATCH match_type rules: 1 for ascending, -1 for descending, and 0 for exact match, and it opens and saves .xlsx files without changing the formula.