How to Fix WPS Spreadsheet MATCH Returning Different Results for Identical Values
Question details
The user needs MATCH to return consistent positions when lookup and array values appear identical but contain hidden floating-point differences.

- 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.
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.
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.
Click the cell that contains the lookup value you are searching for, such as D2, and note the cell reference.
Select the cell with the MATCH result and click the formula bar or press F2 to edit the formula.
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.
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 the Source Calculations That Create the Lookup Values
Use this when you can edit the original formulas that produce calculated values, so MATCH works with already-rounded values.
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. Open the workbook: Launch WPS Office, open the affected .xlsx workbook, and select the worksheet that contains the MATCH formula.
- 2. Edit the MATCH cell: Click the cell that returns the unexpected MATCH result, then click the formula bar to edit it.
- 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. Adjust precision if necessary: Change the number 2 in both ROUND functions to the decimal precision your data requires.
- 5. Save and share: Press Enter, verify the result, and save the file in WPS Spreadsheet or export it as an Excel .xlsx file.

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.




