Skip to main content

How to use VLOOKUP in Excel

The VLOOKUP function is a very popular function when dealing with large Excel directories or databases. It allows the user to quickly find targeted information about a specific entry without needing to look through the entire spreadsheet.

Difficulty

Moderate

Duration

20 minutes

What You Need

  • Excel

Don’t worry, though — this function isn’t nearly as intimidating as it looks, and it can save a lot of time and allow for more freestyle analysis. Here's how to use VLOOKUP in Excel.

Understanding the VLOOKUP pathing

The VLOOKUP function is divided into four different “arguments,” or values input into your function. These define exactly where VLOOKUP will pull information from, so while you start the function with the basic =VLOOKUP(), the four arguments that you put in those parentheses will be doing all the work.

In brief, you’ll be telling VLOOKUP the value you want to look up, the range where the value is located, the column where the return value is, and if the return needs to be exact or approximate. If you don’t have a lot of experience with Excel functions, that may not make much sense. Let’s make it easier by breaking each argument down into how it performs. Remember, think of an example like an employee directory or a class grading sheet to see how this can work in real life.

Step 1: Select the first argument.

This is your lookup value, or the identifying information that you will use to pull data about one specific line in a database or directory. This is the space where you will be inputting information such as employee or class IDs, specific names, and so on. You can choose where this lookup value goes, but ideally, it will be close to the VLOOKUP for easy analysis and clearly labeled so you will always know what to input.

Insert VLOOKUP Argument one.
Image used with permission by copyright holder

Step 2: Select the second argument.

This is the range where your first argument, the lookup value, is located in the range. For example, if you are looking up a specific employee ID number, then this argument should contain the entire database. It’s simplest to manually click the very first entry and then drag your cursor all the way down to the final bottom-right entry at the end so it encompasses all values in the database. For very large databases, manually input the first entry (A2, for example), a colon, and the last entry (B5, in this case), like: A2:B5.

Note that the second argument should always start with the first (leftmost) column in the database or range. This is also why VLOOKUP won’t work well with horizontally oriented lists, but that’s rare in spreadsheets.

VLOOKUP choose second argument.
Image used with permission by copyright holder

Step 3: Select the third argument.

VLOOKUP now knows the full range of the database or table where it’s looking for information, but it needs a little more help. Now you need to select the column where the return value is located – aka the specific entry that you want when typing in your lookup value.

The third argument needs to be a number, not a column letter. Start counting from the first entry column on the list and count over to the right until you reach the column with the data that you’re interested in (like employee bonuses or student grades). Input this number into the function so that VLOOKUP knows what to return.

Choose VLOOKUP third argument.
Image used with permission by copyright holder

Step 4: Select the fourth argument.

The fourth argument is a bit different: You can type FALSE or TRUE here to specify if you want to return either an exact match or an approximate match. You don’t have to do this step if you want to end the function here, but it does have its uses. A FALSE argument will return an error if it cannot find your input value – if, for example, the employee ID you enter doesn’t exist. A TRUE input will round to the closest possible result and return the desired value for that entry, which can simplify certain kinds of analysis.

With your VLOOKUP function complete, you can now start entering values in your lookup space and see the results that VLOOKUP returns.

Important notes to remember

  • VLOOKUP always paths to the right. It will not path left. Keep this in mind when arranging your lookup data.

  • VLOOKUP doesn’t understand duplicates. For example, if two employees have the same last name, VLOOKUP will simply stop at the first one on the list, regardless if it’s the name you wanted or not. That’s why the function is often used with full names or ID numbers instead.

  • VLOOKUP is case sensitive, so it can tell the difference between looking up a capitalized word and one that isn’t.

  • Like other Excel functions, it’s easy to expand VLOOKUP into a full table to return multiple values at once, depending on your project. Once you’re comfortable with the process, you can start using it in more complex ways!

Editors' Recommendations

Tyler Lacoma
Former Digital Trends Contributor
If it can be streamed, voice-activated, made better with an app, or beaten by mashing buttons, Tyler's into it. When he's not…
Best refurbished laptop deals: How to find cheap used computers
microsoft surface laptop go 2020 on desk

If you're shopping for laptops on a budget, then you probably don't want to aim for the best laptops on the market, since they often cost thousands of dollars and usually give you diminishing returns the more expensive they get. On the other hand, refurbished laptops are a great way to save money while also helping the environment and reducing e-waste. Not only that, but most refurbished laptops tend to be refurbished by the brand and are backed by warranties and return windows, so even if something is not right with your refurbished laptop, you can get a replacement or your money back.

To that end, there are really great refurbished laptop sales that you can check out as part of Best Buy laptop deals, Dell laptop deals, HP laptop deals and Lenovo laptop deals. Alternatively, if you're in the Apple ecosystem, take a look at these refurbished MacBook deals, or if you still want to go for something new, you could consider checking out these laptop deals instead.
Best Buy refurbished laptops -- starting at $113
Best Buy's refurbished laptops are -- you guessed it -- Geek Squad Certified and while they may not be free and clear of absolutely all cosmetic scuffs they are still exceptionally clean and always in working order. Some of them even come with additional software like virus tools, streaming access, like Apple TV+, and much more. Of course, the best part is that you can get a premium and fully upgraded model for less, often with more storage, more power, and more features than you would when buying a base model brand new. You've got some great options from Lenovo, Acer, HP, Dell, Gateway, and even Apple to choose from. The cheapest models start around $120 and increase from there. The best way to know what's available is to head over and browse for yourself.

Read more
Microsoft says 75% of office workers already use AI at work
Copilot on a laptop on a desk.

In its Annual Work Trend Index, Microsoft has, unsurprisingly, published some fresh data around AI in the workplace. The big stat is that according to its survey, 75% of "knowledge workers" are already using generative AI at work, with that number doubling in the last six months alone.

The survey defines "knowledge workers" as "those who typically work at a desk (whether in an office or at home)," which is a pretty broad demographic.

Read more
How to keep your Microsoft Teams status active
Man uses Microsoft Teams on a laptop in order to video chat.

Keeping your Microsoft Teams status as "Active" can be a stressful experience if your boss is constantly looking over your shoulder. It might not be the most common Teams problem, but it's one we've all experienced at some point. While you might be getting on with something productive, if the person in charge doesn't know that and doesn't take kindle to "Busy" statuses, you may want to try some tricks to keep your Teams status active.

Fortunately there are a number of ways you can do that, from the honest and transparent, to the slightly sneaky. No judgement here. You do what you need to do. We're just here to teach you how to do it.

Read more