VLOOKUP()/HLOOKUP() Return Incorrect Value with TFE or AEE (87442)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Excel for Windows 95
- Microsoft Excel for Windows 5.0
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q87442 SYMPTOMS
In Microsoft Excel, when you use the VLOOKUP and HLOOKUP functions, the
incorrect value or #VALUE error message is returned if Transition Formula
Evaluation (TFE) (Excel version 5.0 or later) or Alternate Expression
Evaluation (AEE) is selected (Excel version 4.0).
CAUSE
VLOOKUP and HLOOKUP return the index in the lookup array instead of the
value at that index if TFE or AEE is selected and the col_index_num
(row_index_num for HLOOKUP()) argument is set to 1.
WORKAROUND
To return the correct value when you use the VLOOKUP or HLOOKUP function,
disable TFE or AEE by using one of the following methods.
Microsoft Excel Versions 5.0 and Later
To disable Transition Formula Evaluation, follow these steps:
- On the Tools menu, click Options (or Preferences). Click the Transition
tab.
- Under Sheet Options, clear the Transition Formula Evaluation check box,
and click OK.
Microsoft Excel Version 4.0
To disable Alternate Expression Evaluation, follow these steps:
- On the Options menu, click Calculation.
- Under Sheet Options, clear the Alternate Expression Evaluation check
box and click OK.
REFERENCES
"Microsoft Excel User's Guide 1," version 4.0, page 57
"Switching to Microsoft Excel from Lotus 1-2-3," version 4.0, pages
10-11
"Microsoft Excel Function Reference," version 4.0, pages 221-222, 450-
451
Modification Type: | Minor | Last Reviewed: | 8/15/2005 |
---|
Keywords: | kb3rdparty kbprb KB87442 |
---|
|