logo
search
Formula Errors

How to Fix Excel INDEX MATCH #N/A Errors Caused by Decimal Precision

Maira MehtabMaira Mehtab Sep 20, 2026 871 views

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.
Before you start

Verify the underlying value of your cells by temporarily increasing the displayed decimal places in your number formatting settings to reveal any hidden fractions.

Solution 1Recommended

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.

1
Locate your lookup value reference

Identify the cell reference for the calculated lookup value in your existing MATCH function (for example, AI10).

2
Wrap the value with the ROUND function

Apply the ROUND function to the lookup cell reference, specifying the desired number of decimal places. For instance, change AI10 to ROUND(AI10, 1).

3
Update the complete formula

Your complete formula should now look similar to: =INDEX(Sheet3!G1:G71, MATCH(ROUND(AI10,1), Sheet3!F1:F71, 0)). Press Enter to evaluate.

Avoid Text Functions for Numbers: Functions like TRIM, CLEAN, and MID are designed for modifying text strings and will not resolve floating-point arithmetic errors in numerical values.

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. 1. Open your workbook in WPS Spreadsheet: Launch WPS Office and open the file containing your problematic INDEX MATCH formulas.
  2. 2. Inspect the formula: Select the cell returning the #N/A error and view the formula in the formula bar at the top.
  3. 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. 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.
Fully compatible with Microsoft Excel formulas, including INDEX, MATCH, and ROUND.Intuitive interface for quickly debugging and evaluating complex #N/A errors.Lightweight software design providing lightning-fast data calculation speeds.Free to use with comprehensive built-in formula help and guidance.
microsoft office alternative - wps office

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.