Function Problems

How to Fix WPS Spreadsheet MATCH Returning Different Results for Identical Values

Jason MillerJason Miller Nov 13, 2026 870 views

Question details

The user needs MATCH to return consistent positions when lookup and array values appear identical but contain hidden floating-point differences.

How to Fix WPS Spreadsheet MATCH Returning Different Results for Identical Values
Product
WPS Spreadsheet
Device & OS
not provided
Scenario
The user is comparing calculated decimal values with MATCH and expects values that display identically to be treated as equal.
Observed behavior
MATCH returns different or incorrect positions even though the cells show the same displayed number.
Before you start

Check whether the lookup value or any cell in the lookup range is the result of a formula, and decide how many decimal places are meaningful for the comparison.

Solution 1Recommended

Round Both the Lookup Value and Lookup Array Before Using MATCH

Use this when values look the same on screen but MATCH treats them as different because of hidden binary floating-point differences.

When WPS Spreadsheet calculates decimal values, small binary floating-point differences can remain beyond the displayed decimal places. Formatting only changes the display; it does not change the underlying value that MATCH compares. Wrapping both sides of the comparison in ROUND forces MATCH to compare values at the required precision.

1
Select the lookup value cell

Click the cell that contains the lookup value you are searching for, such as D2, and note the cell reference.

2
Open the MATCH formula

Select the cell with the MATCH result and click the formula bar or press F2 to edit the formula.

3
Wrap both arguments in ROUND

Change the formula to round the lookup value and lookup array to the same precision, for example =MATCH(ROUND(D2,2),ROUND(B2:B20,2),0). Replace B2:B20 with your actual lookup range.

4
Press Enter and verify

Press Enter and confirm that MATCH returns the position that matches the displayed value. If your version prompts for an array formula, confirm the entry as required.

Round Both the Lookup Value and Lookup Array Before Using MATCH
Values now match at the selected precision: The ROUND function removes the hidden decimal difference, so MATCH compares the same values you see after rounding.
WPS Spreadsheet fix

Match Identical-Looking Values Reliably in WPS Spreadsheet

Use ROUND in WPS Spreadsheet to compare MATCH lookup values at the same decimal precision, eliminating hidden binary floating-point mismatches while staying compatible with Excel workbooks.

  1. 1. Open the workbook: Launch WPS Office, open the affected .xlsx workbook, and select the worksheet that contains the MATCH formula.
  2. 2. Edit the MATCH cell: Click the cell that returns the unexpected MATCH result, then click the formula bar to edit it.
  3. 3. Apply ROUND to both arguments: Replace the formula with =MATCH(ROUND(D2,2),ROUND(B2:B20,2),0), using your own lookup value and lookup range.
  4. 4. Adjust precision if necessary: Change the number 2 in both ROUND functions to the decimal precision your data requires.
  5. 5. Save and share: Press Enter, verify the result, and save the file in WPS Spreadsheet or export it as an Excel .xlsx file.
Eliminates hidden decimal mismatches in MATCH and other lookup formulasUses familiar Excel-compatible formulas such as ROUND and MATCHSupports .xlsx and .xls files for smooth sharing with Microsoft ExcelFree WPS Office suite with a lightweight spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does MATCH say two identical-looking numbers are different?

Because many decimal calculations create tiny binary floating-point differences that are hidden by number formatting. MATCH compares stored values, not the displayed text.

Do I need to round only the lookup value?

No. The lookup array may also contain calculated values with hidden differences. Wrap both the lookup value and the lookup array in ROUND at the same decimal precision.

Can changing the Number Format or using Increase Decimal fix this?

No. Number formatting only changes how a value is displayed. Use ROUND to change the underlying stored value before MATCH.

What formula should I use for values that should match to two decimal places?

Use a formula like =MATCH(ROUND(D2,2),ROUND($B$2:$B$20,2),0). Adjust the cell references and the 2 to your required precision.

Does this floating-point issue affect other WPS lookup functions?

Yes, VLOOKUP, XLOOKUP and other lookups can be affected the same way. Round calculated lookup values and lookup ranges before using those functions.