VLOOKUP, XLOOKUP, INDEX/MATCH Issue Finding Exact Match Among Calculated Values

Dave H 20 Reputation points
2025-07-31T16:50:32.3166667+00:00
 My coworker came across an issue with Exact Match when using VLOOKUP, and I found the same thing happens for XLOOKUP and INDEX/MATCH.

 VLOOKUP will not match the result of a formula correctly.  If you open up a new Excel sheet, here is how to replicate it:
  1. In cell A1, type 20.2.
  2. In cell B1, type =A1/101. The result should be 0.2 exactly.
  3. In cell C1, type =VLOOKUP(0.2, B1, 1, 0). The formula cannot find 0.2.

Why is this the case? It will find 0.3 if you adjust the numbers:

  1. In cell A2, type 30.3.
  2. In cell B2, type =A2/101. The result should be 0.3 exactly.
  3. In cell C2, type =VLOOKUP(0.3, B2, 1, 0). The formula WILL find 0.3.

{333D6A6B-D394-4B5E-8C26-A63B9C0D8880}

This is also the case for XLOOKUP using =XLOOKUP(0.2, B1, B1, , 0).

This is also the case for INDEX/MATCH using =INDEX(B1, MATCH(0.2, B1, 0)).

Everything is formatted as a number. Formatting isn't the issue. Neither is sorting numerically (especially since my example above is only one value).

I attached a PDF (I couldn't attach an Excel file) of a larger example showing that these formulas consistently work sometimes. I can enter in the data values manually as a Plan B (as I show on the right side of the example spreadsheet), but that doesn't answer why these look-ups don't always work as intended with my Plan A. Any ideas?

VLOOKUP, XLOOKUP, INDEX-MATCH Issue.pdf

Thanks!

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

Answer accepted by question author
HansV 462.7K Reputation points MVP Volunteer Moderator
2025-07-31T16:57:25.3466667+00:00

Ah yes, the wonders of floating point calculations. This is due to rounding errors so small that Excel cannot display them but they still cause the formula to return #N/A.

Workaround: round the result of the formula. If you change the formula in B1 to

=ROUND(A1/101, 1)

or even

=ROUND(A1/101, 10)

then the formula will return 0.2.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.