Translating Lotus VLOOKUP to Excel VLOOKUPLast reviewed: November 2, 1994Article ID: Q32509 |
The information in this article applies to:
Summary: If you translate a Lotus 1-2-3 macro that uses the VLOOKUP function, the macro does not work in Excel for Windows or Excel for OS/2. More Information: There are inherent differences in the operation of the Lotus VLOOKUP and the Excel VLOOKUP that can cause translation problems. The syntax for both functions is very similar, as in the following example:
Lotus: @VLOOKUP(lookup_value,table_array,col_index) Excel: =VLOOKUP(lookup_value,table_array,col_index)In both Lotus and Excel, the lookup_value specifies a value to look for in the range specified by table_array. However, the col_index is treated differently in each product. In Excel, the col_index is any value from 1 to the number of columns in the table_array. Any value not within this range results in an error. The table_array values in that column must be sorted in an ascending order. In Lotus, the col_index may be any positive or negative integer that does not exceed the the width of the spreadsheet. The corresponding table_array values may or may not be sorted. This difference can result in errors when translating Lotus 1-2-3 macros to Excel macros.
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |