by Allen Wyatt
(last updated August 11, 2017)
Titi asked if there is a way to use a negative index number with the VLOOKUP function so that info can be accessed to the left of the lookup column. If a negative index number is used with VLOOKUP, then Excel returns an error value (#VALUE) instead of looking up the information you want.
Obviously, since VLOOKUP can only use positive index values, one solution is to reorganize your data so that it all appears to the right of your index column. Such an approach may not be feasible for many people, however. (The layout of the worksheet may be "cast in stone" by your company, for instance.)
There are a couple of ways you can approach this problem—ways that do not involve the use of VLOOKUP at all. The first is to simply use the LOOKUP function. Assuming that the value you want to look up is in cell A1, the range in which you want to find it is in the range G12:G145, and the "to the left stuff" is in F12:F145, you could use this formula:
This approach works just fine, provided that you are working with data in the lookup range (G12:G145) that is sorted. If your data is not sorted, then you should skip this approach and instead use the section approach, involving a combination of INDEX and MATCH. Assuming your data is in the exact same ranges, you could use this:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (7001) applies to Microsoft Excel 97, 2000, 2002, and 2003.
Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!
The data validation capabilities of Excel are really handy when you want to limit what is put into a cell. However, you ...Discover More
Sometimes you need to look backward, through the information above your formula, to find the data you need. This can be ...Discover More
VLOOKUP is an oft-used worksheet function to lookup values in a data table. If the function cannot return a value, it ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.