VLOOKUP in Google Sheets: A Beginner-Friendly Guide (Plus XLOOKUP)

·

6 minutes
person using black and gray laptop

Cover Photo: RDNE Stock project on Pexels.com

You have two lists: one with order numbers and customer IDs, another with customer IDs and email addresses. You need the emails next to the orders. Copying them over by hand would take an afternoon and invite mistakes. In Google Sheets, a single lookup formula can do it in seconds.

This guide explains VLOOKUP from scratch, shows the mistakes that trip people up, and introduces XLOOKUP, the more flexible option now available in Google Sheets.

Key takeaways

  • VLOOKUP finds a value in the first column of a range and returns a value from another column in the same row.
  • Always use FALSE as the last argument for exact matches, unless you deliberately want an approximate match on sorted data.
  • Lock your lookup range with $ signs before copying the formula down.
  • Wrap formulas in IFERROR to show a clean message instead of #N/A.
  • XLOOKUP can look left, defaults to exact match and is easier to read: use it for new sheets.

What VLOOKUP actually does

VLOOKUP stands for vertical lookup. You give it something to search for, a table to search in, and the column you want back. It scans down the first column of your table until it finds a match, then returns the value from the column you asked for in that same row.

The syntax is:

=VLOOKUP(search_key, range, index, [is_sorted])
PartWhat it meansExample
search_keyThe value you are looking forA2 (a customer ID)
rangeThe table to search; the first column must contain the search keyCustomers!A:C
indexWhich column of the range to return (1 = first column)3 (the email column)
is_sortedFALSE for exact match; TRUE for approximate match on sorted dataFALSE

A step-by-step example

Imagine two tabs. Orders has Order ID in column A and Customer ID in column B. Customers has Customer ID in column A, Name in column B and Email in column C.

  1. Click cell C2 in the Orders tab, where the first email should appear.
  2. Type =VLOOKUP(B2, Customers!A:C, 3, FALSE) and press Enter.
  3. Google Sheets looks for the customer ID from B2 in column A of Customers, and returns the email from the third column.
  4. Drag the small square at the bottom-right of C2 down to fill the formula for every order.

To return the customer’s name instead, change the index from 3 to 2.

a person with a laptop
Photo by Mikhail Nilov on Pexels.com

The 5 most common VLOOKUP mistakes

1. Forgetting FALSE

If you leave out the last argument, Google Sheets treats it as TRUE and assumes the data is sorted. On unsorted data that can return the wrong value without any error. For most everyday lookups, always add FALSE.

2. The lookup column is not first

VLOOKUP can only search the first column of the range and return columns to its right. If your IDs are in column C and you want a value from column A, VLOOKUP cannot do it directly. Use XLOOKUP or INDEX/MATCH instead.

3. Ranges that move when you copy the formula

If you use a range like A2:C100 and copy the formula down, the range shifts to A3:C101 and you start missing rows. Lock it with dollar signs: $A$2:$C$100, or use whole columns such as A:C.

4. Hidden spaces and mismatched formats

“C-104” and “C-104 ” (with a trailing space) are different to a formula, and so are the number 104 and the text “104”. Clean data with TRIM, or make both columns the same format.

5. Counting columns wrongly

The index counts from the start of your range, not from column A of the sheet. If your range starts at column D, column D is 1.

Handle missing values gracefully

When a value is not found, VLOOKUP shows #N/A. For a cleaner report, wrap it:

=IFERROR(VLOOKUP(B2, Customers!A:C, 3, FALSE), "Not found")

Be careful: IFERROR hides every error, including real mistakes in your formula. Check the formula works first, then add IFERROR.

Meet XLOOKUP: the easier modern option

Google Sheets also supports XLOOKUP, which solves VLOOKUP’s biggest limits. The same example becomes:

=XLOOKUP(B2, Customers!A:A, Customers!C:C, "Not found")
FeatureVLOOKUPXLOOKUP
Can return a column to the leftNoYes
Default match typeApproximate unless you add FALSEExact
Breaks when columns are insertedCan, because the index is a numberNo, you point at the return column directly
Built-in “not found” messageNeeds IFERRORYes, optional argument
Works in older spreadsheets and other appsVery widelyNewer; check compatibility if sharing files

For new sheets, XLOOKUP is usually the better choice. VLOOKUP is still worth knowing because it appears in countless existing spreadsheets and templates.

silver laptop on the table
Photo by Leeloo The First on Pexels.com

Practical uses at work and at home

  • Sales and orders: pull customer emails, regions or price lists into an order sheet.
  • HR and teams: match employee IDs to departments or managers.
  • Budgets: look up category names or monthly limits for each expense.
  • Inventory: fetch the current stock level for each product code.
  • Events: match RSVP lists to meal choices or seat numbers.

Try this today

  1. Create two small tabs with a shared ID column.
  2. Write one VLOOKUP with FALSE and copy it down.
  3. Break it on purpose (remove FALSE, add a space) to see what goes wrong.
  4. Rewrite it as XLOOKUP and compare.
  5. Use it on one real task this week.

Want more ways to work smarter? See our guide to choosing the right productivity tools.

Lookup formulas turn an afternoon of copy-paste into a ten-second job.

FAQ

Why does my VLOOKUP return #N/A?

Usually because the value is not in the first column of the range, there are extra spaces, or the formats differ (number vs text). Check those three first.

Can VLOOKUP look to the left?

No. It can only return values from columns to the right of the search column. Use XLOOKUP or INDEX and MATCH to look left.

What is the difference between TRUE and FALSE in VLOOKUP?

FALSE finds an exact match. TRUE finds the closest match and needs the first column sorted in ascending order; it is useful for things like tax bands or grade boundaries.

Is XLOOKUP available in Google Sheets?

Yes, Google Sheets supports XLOOKUP. If you share files with people using older spreadsheet software, check that it works for them too.

Can VLOOKUP search across different files?

Yes, combined with IMPORTRANGE, which pulls data from another Google Sheet after you grant access. For large data, importing once into a tab is usually faster.

Productivity Hub

Written by

The Productivity Hub team

We publish in-depth, original guides on AI tools, tech, productivity and better living, researched and written to help you get more of the right work done. About us · Our content policy

Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.