The information in this article applies to:
SUMMARYThe Microsoft Excel lookup functions VLOOKUP(), HLOOKUP(), and LOOKUP() may return incorrect results if the lookup vector is the result of a formula. CAUSE
The incorrect result in cell A18 of the example below is caused by a
rounding error due to the use of the IEEE 754 floating-point standard. The
IEEE 754 standard is a method of storing floating-point numbers in a
compact way that is easy to manipulate. This standard is used by Intel
coprocessors and most PC-based programs that implement floating-point math.
WORKAROUNDSTo work around this problem, do either of the following:
MORE INFORMATIONSteps to Reproduce ProblemOn a new worksheet, type the following:
With the formula in A18, you would expect an exact match to be found in A3,
which would return the value 3 in B3; however, VLOOKUP() returns the value
2 in B2.
For more information regarding the IEEE 754 floating point standard and rounding errors, query in this knowledge base on the following keywords: floating-point and standard and rounding and IEEE 754 Additional query words: 4.00a
Keywords : |
Last Reviewed: August 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |