How to Use VLOOKUP in Excel: 7 Simple Steps That Find Answers Fast Without Costly Mistakes

Learning how to use VLOOKUP in Excel takes about ten minutes, and it saves hours of manual searching later. You type one formula, Excel finds a value in a table, and it returns the matching detail from the same row. For example, you type a product code, and Excel returns its price at once. The function has four parts, and each part has one clear job, so there is nothing to memorize blindly. This guide walks you through all seven steps with a price list, a live demo, and the mistakes that cause most VLOOKUP errors.

Most people open Excel, stare at a list, and start scrolling to find one answer by eye. That works for ten rows, and it fails badly for five hundred rows. Eyes get tired, rows get skipped, and the wrong price lands in a report. VLOOKUP fixes that problem, because Excel does the searching for you, and it does it the same way every single time. You will also find links to the related guides in this unit, such as VLOOKUP vs XLOOKUP when you want to know which lookup function fits your file.

[SNIPPET TARGET] To use VLOOKUP in Excel, type =VLOOKUP(lookup_value, table_array, col_index_num, FALSE) in the cell where the answer should appear. The lookup value is the item you want to find, the table array is the range that holds your data, the column number picks the detail to return, and FALSE asks for an exact match.

ANSWER BOX 1

To use VLOOKUP in Excel, click the cell where the answer should go and type =VLOOKUP(lookup_value, table_array, col_index_num, FALSE). The lookup value is the item you want to find, such as a product code. The table array is the range that holds your data, the column number picks which detail comes back, and FALSE asks Excel for an exact match only.

ANSWER BOX 2

VLOOKUP searches the first column of your table for the lookup value, then returns a value from the same row in the column you named. It looks to the right, never to the left, and it returns the first match it finds. If the value is missing, Excel shows #N/A, which means no match was found in the table.

Try VLOOKUP Right Here: Live Demo

This demo works like Excel. The table holds three products. Type a product code, pick a column, and press the button. The demo returns the matching value from that row.

Product codeProductPrice
P-101Notebook12
P-102Pen Set25
P-103Desk Lamp40

Result: Press the button to see the answer.

Worked example: look up P-102 and ask for column 3. The demo returns 25, which is the price of the Pen Set. Try P-101 with column 2 to get Notebook, or type P-999 to see the not found message.

KEY TAKEAWAYS

  • How to use VLOOKUP in Excel starts with =VLOOKUP(lookup_value, table_array, col_index_num, FALSE) for an exact match.
  • VLOOKUP searches the first column of a table and returns a value from the same row, to the right only.
  • FALSE means exact match, and TRUE means approximate match on sorted data.
  • Lock the table range with dollar signs so the formula still works when you copy it down.
  • A #N/A error usually means a missing value, a space, or a number stored as text.

Contents

What Is VLOOKUP in Excel?

VLOOKUP is defined as a lookup function that searches the first column of a table for a value and returns a related value from the same row. The V in its name stands for vertical, because your data runs down in columns. You give Excel four pieces of information, and it gives you one answer back, such as a price, a name, or a grade.

The function is older than most people guess, and it has been part of Excel from the start. VLOOKUP was included in Excel 1 for Macintosh, released in 1985 (Microsoft, 2019). That long history is a strength and a weakness at once. It is a strength because every version of Excel supports it, so your formulas work on almost any computer. It is a weakness because newer functions fix its limits, and Microsoft itself now points many users toward XLOOKUP instead. Microsoft announced XLOOKUP, the successor to VLOOKUP, on August 28, 2019 (Microsoft, 2019). It reached all Microsoft 365 subscribers in the Monthly Channel on March 31, 2020 (Microsoft, 2020).

ArgumentWhat it meansExample in this guide
lookup_valueThe value you want to findP-102, the product code
table_arrayThe range that holds your dataA2:C5, the product table
col_index_numThe column number to return, counted from the left of the range3, the price column
range_lookupFALSE for exact match, TRUE for approximate matchFALSE for an exact match

The 7 Simple Steps to Use VLOOKUP in Excel

  1. Build a clean table. Put the lookup values in the first column, one value per row, with no blank rows inside the table. Add a header row at the top, such as Product code, Product, and Price.
  2. Pick the lookup value. Click a cell and type the value you want to find, such as P-102. Using a cell keeps the formula easy to change later.
  3. Click the answer cell. Click the empty cell where the result should appear, because the formula lives in that cell.
  4. Type the formula. Type =VLOOKUP(, then click the lookup value cell, type a comma, select the table range, type a comma, type the column number, type a comma, and type FALSE). Press Enter to finish.
  5. Lock the table range. Edit the formula and add dollar signs to the range, such as $A$2:$C$5, so the range does not move when you copy the formula down.
  6. Copy the formula down. Drag the fill handle down the column to run the same lookup for every row. Each row picks up its own lookup value.
  7. Check the first three answers by hand. Read the first three results against the table with your own eyes. If they match, the formula is safe to trust.

The formula for the price of P-102 looks like this: =VLOOKUP(F2,$A$2:$C$5,3,FALSE). Cell F2 holds P-102, the range $A$2:$C$5 holds the product table, 3 points at the price column, and FALSE asks for an exact match. Excel searches column A for P-102, finds it in the third data row, and returns 25 from column C. That is the whole trick, and every other VLOOKUP you ever write follows the same shape. Honestly, most guides skip the hand check in step seven, but that check catches the silent errors that look fine on screen.

Hands typing a VLOOKUP formula to learn how to use VLOOKUP in Excel

Exact Match Versus Approximate Match

Exact match and approximate match are the two modes of VLOOKUP, and picking the wrong one is the most common cause of wrong answers. Exact match means Excel must find the lookup value exactly, or it returns #N/A. Approximate match means Excel finds the closest value below your lookup value, and it only works when the first column is sorted in ascending order. For product codes, names, and IDs, you almost always want exact match, so type FALSE as the fourth argument.

Approximate match has a real use, and it is worth knowing. It fits sorted bands such as tax rates, grade bands, discount levels, and commission tiers. For example, a score of 82 falls in the 80 to 89 band, so an approximate lookup returns the grade for that band. The first column must be sorted from smallest to largest, or the answer will be wrong, and Excel will not warn you. That silent wrong answer is why beginners should treat TRUE with care and use FALSE as the default. If you leave the fourth argument blank, Excel uses approximate match, which surprises many new users.

Here is a simple rule to remember. If the lookup value is a code, a name, or an ID, use FALSE. If it is a number inside a sorted band, use TRUE, and sort the first column first. Our cluster guide on VLOOKUP not working shows the six fixes for the errors that follow from the wrong match mode.

Match modeFourth argumentWhen to use itRisk if misused
Exact matchFALSE or 0Codes, names, IDs, any unique key#N/A when the value is missing
Approximate matchTRUE, 1, or blankSorted bands like grades and tax ratesA wrong answer with no warning
Exact matchFALSE or 0Price lists and staff listsNone, if the data is clean
Approximate matchTRUE or 1Discount tiers on sorted amountsWrong band when data is unsorted

How to Use VLOOKUP in Excel With Real Examples

A formula only clicks when you see it work on real data, so here are two examples you can build in two minutes. The first example is a price list, and the second is a staff list. Both use the same seven steps, and both use FALSE for an exact match. Type the tables exactly as shown, then build the formulas, and check the answers by hand.

For the price list, type Product code in A1, Product in B1, and Price in C1. Then type P-101, Notebook, 12 in row 2, P-102, Pen Set, 25 in row 3, and P-103, Desk Lamp, 40 in row 4. Type P-102 in F2, then type =VLOOKUP(F2,$A$2:$C$4,3,FALSE) in G2. Excel returns 25, which is the price of the Pen Set. Change F2 to P-103, and the answer changes to 40 at once.

For the staff list, type Staff ID in A1, Name in B1, and Department in C1. Then type S-201, Ana, Sales in row 2, S-202, Ben, Support in row 3, and S-203, Cara, Finance in row 4. Type S-202 in F2, then type =VLOOKUP(F2,$A$2:$C$4,2,FALSE) in G2. Excel returns Ben, because column 2 holds the name. Change the column number to 3, and the same formula returns Support instead. If your lookup needs two keys at once, read our guide on VLOOKUP with multiple criteria for the four proven methods.

Desk workspace with a printed price list and Excel table for how to use VLOOKUP in Excel

Common VLOOKUP Mistakes to Avoid

These mistakes cause most VLOOKUP errors, and each one has a simple fix. Read the list before you build a lookup for real work, because one mistake can fill a whole column with wrong answers.

First, leaving out FALSE is the classic mistake, because Excel then uses approximate match by default. The formula returns a value that looks plausible, but it may come from the wrong row. Always type FALSE for codes, names, and IDs, and save TRUE only for sorted bands. Second, forgetting the dollar signs lets the table range slide down as you copy the formula. The first row works, the next rows drift, and the errors multiply. Press F4 on the range to lock it, or type the dollar signs by hand.

Third, extra spaces break matches that look perfect on screen. A code typed as "P-102 " with a trailing space does not match "P-102" in the table, and Excel returns #N/A. Use TRIM to clean the data, or retype the values by hand. Fourth, numbers stored as text cause the same silent failure. An ID that looks like 10023 may be text in one column and a real number in the other, and Excel treats them as different values. Convert the column with Text to Columns, or use VALUE to turn text into numbers. Fifth, asking for a column to the left cannot work, because VLOOKUP only looks to the right. Rearrange the table, or switch to INDEX and MATCH. If your data lives on other tabs, our guide on how to use VLOOKUP across sheets shows three easy ways to pull it without breaking a link.

How to Use VLOOKUP in Excel on Big Lists

Big lists need a few extra habits, because small problems grow with the row count. Start by turning your data into an Excel Table with Ctrl+T, which gives the range a name and grows with new rows. A table reference such as Products[Price] is easier to read than $C$2:$C$500, and it never misses new rows at the bottom.

Next, keep the lookup values unique when you use exact match. VLOOKUP returns the first match it finds, so duplicate codes give you the first row every time. Clean duplicates before you build the formula, or add a second key to make each row unique. Our multiple criteria guide shows how to join two keys into one unique key with a helper column.

Speed matters too, because a full column reference such as A:A makes Excel scan over a million rows. Use a tight range such as $A$2:$C$5000 instead, and your workbook will stay fast. When you work with a long sheet, it also helps to freeze the header row, and our live guide on how to freeze rows in Google Sheets shows the same habit for sheets, which keeps headers in view while you scroll.

The 30 Second VLOOKUP Readiness Check

This is the section other guides skip, because it is a habit, not a formula. Before you trust a VLOOKUP column, run this thirty second check, and you will catch almost every silent error. The check has five questions, and you should answer yes to all five before you send the file to anyone. It takes half a minute, and it saves the kind of mistake that shows up in a meeting.

First, is the lookup value in the first column, with no blank rows inside the table. Second, does the formula end with FALSE, unless you truly need a sorted band. Third, is the table range locked with dollar signs. Fourth, are there extra spaces or numbers stored as text in either column. Fifth, do the first three answers match the table by hand. If any answer is no, fix that one thing first, and run the check again.

How to Use VLOOKUP in Excel FAQ

What is VLOOKUP in Excel?

VLOOKUP is a lookup function that searches the first column of a table for a value and returns a related value from the same row. You give it a lookup value, a table range, a column number, and a match type. It is used for price lists, staff lists, grade sheets, and any table where one key unlocks a detail.

How do I write my first VLOOKUP formula?

Click the answer cell and type =VLOOKUP(lookup_value, table_array, col_index_num, FALSE). Click the cell that holds the lookup value, select the table range, type the column number, and type FALSE for an exact match. Press Enter, and Excel shows the answer. Check the first three answers by hand before you copy the formula down.

Why does VLOOKUP return #N/A?

VLOOKUP returns #N/A when it cannot find the lookup value in the first column of the table. The value may be missing, spelled differently, or carrying an extra space. Numbers stored as text cause the same error, because Excel treats text and numbers as different values. Check the spelling, clean the spaces, and confirm both sides use the same data type.

What does FALSE mean in VLOOKUP?

FALSE means exact match, so Excel returns an answer only when it finds the lookup value exactly. It is the safe choice for codes, names, and IDs. TRUE means approximate match, which needs the first column sorted in ascending order. If you leave the fourth argument blank, Excel uses approximate match by default.

Can VLOOKUP look to the left?

No, VLOOKUP cannot look to the left, because it only searches the first column of the range and only returns columns to the right. To return a value from a column on the left, rearrange the table so the lookup column comes first. You can also use INDEX and MATCH, or XLOOKUP, which have no left lookup limit.

How do I use VLOOKUP with two sheets?

Type the sheet name, an exclamation mark, and the range, such as Prices!A2:C100, inside the VLOOKUP formula. If the sheet name has a space, wrap it in single quotes, such as 'Price List'!A2:C100. Excel adds the quotes for you when you click the range on the other sheet.

What is the difference between VLOOKUP and XLOOKUP?

VLOOKUP searches the first column of a table and returns one column to the right, with approximate match as the default. XLOOKUP searches any column, returns from any direction, uses exact match by default, and has a built-in message for missing values. Microsoft announced XLOOKUP on August 28, 2019 (Microsoft, 2019). VLOOKUP still wins on compatibility, because it works in every Excel version.

Why is my VLOOKUP returning the wrong value?

Your VLOOKUP returns the wrong value when the fourth argument is TRUE or blank on unsorted data, because approximate match then picks the closest value below your lookup value. It also returns the wrong row when the lookup value appears more than once, because VLOOKUP always returns the first match.

How do I stop VLOOKUP from breaking when I insert a column?

VLOOKUP breaks when you insert a column inside the table, because the column number you typed now points at a different column. To stop this, turn the data into an Excel Table with Ctrl+T, or switch to XLOOKUP, which points at the return range directly. You can also use INDEX and MATCH, which survive column inserts in the same way.

Can VLOOKUP return more than one column?

No, one VLOOKUP formula returns one value from one column only. To return three columns, write three formulas, one for each column number. XLOOKUP can return several columns in one formula, because its results spill into the cells next to it. For most price lists, three small VLOOKUP formulas are simple and easy to check.

Does VLOOKUP work in Google Sheets?

Yes, VLOOKUP works in Google Sheets with the same syntax, so =VLOOKUP(F2,A2:C5,3,FALSE) works in both Excel and Sheets. The steps are the same, and the errors mean the same things. Google Sheets also has XLOOKUP, so the comparison guide applies there too. The main difference is the menu layout, not the formula itself.

How do I hide the #N/A error in VLOOKUP?

Wrap the formula in IFNA, such as =IFNA(VLOOKUP(F2,A2:C5,3,FALSE),"Not found"). Excel then shows your own text instead of #N/A when the value is missing. Fix the real cause first when you can, because hiding the error does not fix a missing value. Use IFNA only after you know why the value is missing.

Final Word

Learning how to use VLOOKUP in Excel is a small skill with a large payoff, because it turns long searches into one formula. Start with the seven steps in this guide, practice on the price list example, and try the live demo at the top before you open Excel. Lock your ranges, use FALSE for exact matches, and check your first three answers by hand every time.

Read more about VLOOKUP on Wikipedia: https://en.wikipedia.org/wiki/VLOOKUP

Leave a Reply