Using VLOOKUP to Access Information to the Left

Written by Allen Wyatt (last updated March 21, 2020)
This tip applies to Excel 97, 2000, 2002, and 2003


1

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:

=LOOKUP(A1,G12:G145,F12:F145)

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:

=INDEX(F12:F145,MATCH(A1,G12:G145,0))

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (7001) applies to Microsoft Excel 97, 2000, 2002, and 2003.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Footnotes within Footnotes

Need to add footnotes to your footnotes? It's actually allowed by some style guides, but Word doesn't make it so easy.

Discover More

Choosing SUBSTITUTE or REPLACE

If you need to modify information in a text string, two common functions you can use are SUBSTITUTE and REPLACE. This tip ...

Discover More

Summing Only Visible Values

When you use SUM to determine the total of a range of values, Excel doesn't really pay attention to whether the values ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (menu)

Making VLOOKUP Trigger a Macro

VLOOKUP is an oft-used worksheet function to lookup values in a data table. If the function cannot return a value, it ...

Discover More

Returning Blanks or Asterisks from a Lookup

Want to return more than a value when doing a lookup? Here's one way to do it by adding an IF clause to your formula.

Discover More

Using the COLUMN Function

Need to know the column number for use in a formula? The worksheet function you want is the COLUMN function, described in ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 2 + 8?

2021-12-03 01:37:15

Joe

Brilliant! Loved this...almost easier than a vlookup!


This Site

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.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.