How to Fix Excel INDEX MATCH #N/A Errors Caused by Decimal Precision
Question details
The user encounters an #N/A error when using INDEX MATCH to look up calculated decimal values, even though the numbers appear identical to the values in the lookup array.
- Product
- Excel
- Device & OS
- not provided
- Scenario
- Looking up calculated decimals (such as 27.7) using INDEX and MATCH functions with the exact match parameter.
- Observed behavior
- The formula returns an #N/A error because hidden floating-point precision causes the exact match condition to fail.
Verify the underlying value of your cells by temporarily increasing the displayed decimal places in your number formatting settings to reveal any hidden fractions.
Use the ROUND Function to Standardize Precision
Wrapping your calculated lookup value in the ROUND function ensures that hidden floating-point discrepancies do not prevent an exact match.
Calculated decimals in spreadsheets often store hidden fractions (like 27.7000000000001) due to binary floating-point precision. Since an exact match (the 0 in the MATCH function) requires identical underlying values, it fails against a cleanly typed '27.7'. Using ROUND neutralizes this discrepancy.
Identify the cell reference for the calculated lookup value in your existing MATCH function (for example, AI10).
Apply the ROUND function to the lookup cell reference, specifying the desired number of decimal places. For instance, change AI10 to ROUND(AI10, 1).
Your complete formula should now look similar to: =INDEX(Sheet3!G1:G71, MATCH(ROUND(AI10,1), Sheet3!F1:F71, 0)). Press Enter to evaluate.
Resolve Advanced Formula Errors Seamlessly in WPS Spreadsheet
WPS Office Spreadsheet provides highly compatible formula processing and intuitive calculation features to help you identify and resolve floating-point discrepancies instantly.
- 1. Open your workbook in WPS Spreadsheet: Launch WPS Office and open the file containing your problematic INDEX MATCH formulas.
- 2. Inspect the formula: Select the cell returning the #N/A error and view the formula in the formula bar at the top.
- 3. Insert the ROUND function: Edit the MATCH lookup argument by wrapping it in the ROUND function, matching the decimal places of your array.
- 4. Apply and drag down: Press Enter to apply the fix, then use the fill handle to drag the corrected formula down to the rest of your column.

Frequently Asked Questions
Why do exact matches fail on numbers that look visually identical?
Spreadsheet applications use binary floating-point arithmetic to process numbers. Calculations can result in microscopic hidden decimals (e.g., 27.7000000000001) that do not appear on screen but cause functions requiring strict equality, like exact MATCH, to fail.
Can I use 'Set precision as displayed' instead of the ROUND function?
Yes, enabling 'Set precision as displayed' forces calculations to match the visible decimals. However, use this with caution: it permanently deletes hidden decimals across the entire workbook, which might negatively affect other complex mathematical calculations.
Will TRIM or CLEAN fix decimal and floating-point errors?
No. TRIM and CLEAN are used exclusively to remove extra spaces and non-printable characters from text strings. They are not effective for rounding or adjusting true numerical values.
Do I need to round the lookup array range as well?
Usually, rounding the lookup value is sufficient if the lookup array contains manually entered exact numbers. If the array numbers are also generated by complex calculations, you may need to evaluate the formula as an array formula to round both the value and the lookup range.




