Function Problems

Fix VLOOKUP Failing with MROUND Decimal Results in Excel

Jason MillerJason Miller Nov 10, 2026 868 views

Question details

The VLOOKUP formula fails to find decimal numbers generated by the MROUND function, returning an #N/A error despite the values appearing to match.

How to Fix VLOOKUP Failing with MROUND Decimal Results
Product
Microsoft Excel
Device & OS
not provided
Scenario
Using the VLOOKUP function to search an array for a dynamically calculated decimal value returned by the MROUND function.
Observed behavior
VLOOKUP returns an #N/A error because the internal floating-point precision of the MROUND result does not exactly match the lookup array's underlying decimal value.
Before you start

Verify that your lookup table values are formatted correctly as numbers and determine the exact number of decimal places required for an exact match.

Solution 1Recommended

Wrap the MROUND Result in a ROUND Function

Resolve floating-point precision discrepancies by explicitly rounding the MROUND result before passing it to the VLOOKUP function.

Spreadsheet software stores numbers in a binary floating-point format. This can create microscopic decimal discrepancies (for example, internally storing a calculation as 1.20000000000001 instead of exactly 1.2) when using functions like MROUND. Wrapping your formula in the ROUND function forces the internal value to precisely match your target value.

1
Locate the formula cell

Select the cell containing your broken VLOOKUP formula to edit it in the formula bar.

2
Round the MROUND calculation

Modify your MROUND calculation by nesting it inside a ROUND function. Set the decimal precision to match your lookup table. For example: =ROUND(MROUND(A1, 1.2), 1).

3
Update the VLOOKUP function

Place this newly rounded value as the first argument in your VLOOKUP. The updated syntax should look like: =VLOOKUP(ROUND(MROUND(A1, 1.2), 1), lookup_range, column_index, FALSE).

4
Apply the calculation

Press Enter to apply the updated formula and confirm that the #N/A error is resolved.

Wrap the MROUND Result in a ROUND Function
Match Decimal Places: Ensure that the number of decimal places specified in the ROUND function perfectly aligns with the maximum decimal precision of the source numbers in your lookup table.
Advanced Spreadsheet Calculations

Solve Formula Precision Errors with WPS Spreadsheet

WPS Spreadsheet provides a fully compatible, robust calculation engine that supports all standard formulas, including VLOOKUP, ROUND, and MROUND, ensuring your data analysis is highly precise and error-free.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing the VLOOKUP errors.
  2. 2. Edit the formula: Double-click the cell returning the #N/A error to access the formula bar.
  3. 3. Nest the functions: Modify your formula by combining ROUND and MROUND: =VLOOKUP(ROUND(MROUND(value, multiple), decimal_places), table_array, col_index, FALSE).
  4. 4. Calculate exact match: Press Enter. WPS Spreadsheet will calculate the precise match instantly without floating-point discrepancies.
100% compatibility with Microsoft Excel formulas like VLOOKUP and MROUNDSeamless handling of complex floating-point calculationsFree, lightweight, and fast spreadsheet application for daily use
microsoft office alternative - wps office

Frequently Asked Questions

What causes floating-point errors in spreadsheet formulas?

Spreadsheet applications use the IEEE 754 standard for storing decimal numbers, meaning some fractional values cannot be represented perfectly in binary. This leads to minuscule discrepancies deep in the decimal tail, preventing exact-match functions from finding a target value.

Why does my VLOOKUP return #N/A when the numbers look identical?

When using VLOOKUP with an exact match (FALSE), the function compares the underlying stored value, not the visually displayed value. If a cell displays '1.2' but is internally stored as '1.200000000000001', VLOOKUP will not recognize them as a match.

Can I use ROUNDUP or ROUNDDOWN instead of ROUND with VLOOKUP?

Yes. Depending on your calculation logic, you can use ROUNDUP or ROUNDDOWN to control the output. Just ensure that the resulting decimal perfectly aligns with the exact target values stored in your lookup array.