How to Improve Spreadsheet Integrity with VLOOKUP

Building complex spreadsheets without lookup formulas, such as VLOOKUP, is akin to putting a screw in the wall with a hammer. It’s possible, but the results aren’t pretty, and most probably won’t maintain integrity. The same can be said for spreadsheets where you manually reference individual cells over and over again, instead of letting Excel do the work for you.
 
Let’s say that you want to be able to look up addresses from a list based on a name. Users that are unaware of VLOOKUP often resort to manually copying and pasting the information, or creating simple formulas that point to the information. In the context of an invoice or other form, these “manual” lookups can become tedious. Instead, we can give Excel’s VLOOKUP function four pieces of information:
  • Lookup value
  • Table array
  • Column index number
  • Range lookup
I’ll explain each component individually:
  • In this case the lookup value will be the name that we’ve typed in a given cell, such as cell A1 in Figure 1.
  • The table array is the coordinates of our name/address list. One limitation of VLOOKUP is that our lookup value must appear within the first column of the table array.
  • Column index number will typically be 2 or greater, and signifies the column position within our table array from which we want to return a piece of information. In this case my table array spans columns C through E. I’ll use the number 2 to signify that I want to return the street address from the second column of my table array.
  • The range lookup argument can have significant impact on how our VLOOKUP works. I generally put the word FALSE in this position, which signifies that I want an exact match. If I were to use the word TRUE, then VLOOKUP would return data based on an approximate match. Situations, such as looking up an address, almost always require exact matches.
With this background in mind, let’s use VLOOKUP to return Ted’s street address. As shown in Figure 1, enter a name from your list in cell A1, such as Ted Smith, and then this formula in cell A2:
 
=VLOOKUP(A1,C1:E6,2,FALSE)
 
Figure 1: VLOOKUP can return data from a list based on criteria that you specify.
 
Using VLOOKUP’s vernacular, A1 is the lookup value, C1:E6 is the table array, 2 is the column index number, and FALSE signifies that we want an exact match. Once the formula is in place, type Jane Seyz in cell A1, and you should see the address change automatically.
 
The formula to return the City/State/Zip will be almost the same as the street address, meaning we’ll specify a column index number of 3 instead of 2. However, I’ll also demonstrate another of my VLOOKUP tricks, which is to use a zero in place of the word FALSE to signify an exact match:
 
=VLOOKUP(A1,C1:E6,3,0)
 
Figure 2: You can use the number zero in place of the word FALSE to signify an 
exact match.
 
If you type a name that isn’t on the list, such as Vera Floyd, VLOOKUP will return #N/A. This signifies that the item you entered does not appear in column A of the list.
 
This article only scratches the surface of what’s possible with VLOOKUP. To learn many more ways to leverage lookup formulas, don’t miss the free High Impact Excel: VLOOKUP Edition webinar. Attendees of the live event can get one hour of free CPE credit. A recording will be made available afterwards for anyone that can’t attend the live webinar. 

You may like these other stories...

Accountants who specialize in forensic and valuation services point to electronic data analysis, or big data, as the most pressing issue they’ll face in the coming months, according to results of a new survey released...
As complex as federal tax can get, at least you're only dealing with one agency: the IRS. But when you get into state and local sales tax, you're coordinating hundreds of jurisdictions that are constantly changing....
All that was needed on Tuesday was a voice vote for the House of Representatives to pass a bill that would prevent state and local governments from taxing access to the Internet.Now the ball is in the Senate’s court....

Upcoming CPE Webinars

Jul 23
We can’t deny a great divide exists between the expectations and workplace needs of Baby Boomers and Millennials. To create thriving organizational performance, we need to shift the way in which we groom future leaders.
Jul 24
In this presentation Excel expert David Ringstrom, CPA revisits the Excel feature you should be using, but probably aren't. The Table feature offers the ability to both boost the integrity of your spreadsheets, but reduce maintenance as well.
Jul 31
In this session Excel expert David Ringstrom helps beginners get up to speed in Microsoft Excel. However, even experienced Excel users will learn some new tricks, particularly when David discusses under-utilized aspects of Excel.
Aug 5
This webcast will focus on accounting and disclosure policies for various types of consolidations and business combinations.