VLOOKUP in Google Sheets: Example & How to Use

How-to basics · Updated November 23, 2026

The simplest way to use VLOOKUP in Google Sheets is =VLOOKUP(search_key, range, index, [is_sorted]), where the search key is the value you look for, the range is the table to search, and the index is the column number to return. For example, =VLOOKUP("A-100", A2:C10, 2, FALSE) finds “A-100” in column A and returns the matching value from column B.

What VLOOKUP Does

VLOOKUP (vertical lookup) searches for a value in the first column of a range and returns a value from another column in the same row. It works only when the lookup column is the leftmost column of the range. It is one of the most used functions in Google Sheets for pulling data from a table, such as looking up a product price by its ID or finding an employee’s department by their name.

Unlike Excel, Google Sheets VLOOKUP is case-insensitive by default, meaning "apple" and "APPLE" are treated the same. Also, Google Sheets has an extra feature: you can use an array as the search key to return multiple matches at once, which Excel does not support in the same way.

VLOOKUP Syntax and Arguments

The full syntax is:

  • search_key – the value to search for (text, number, or cell reference).
  • range – the table to search, with the lookup column as the first column.
  • index – the column number in the range from which to return a value (1 for the first column, 2 for the second, etc.).
  • is_sorted – optional; use FALSE for an exact match (most common) or TRUE for an approximate match (requires the first column sorted). Default is TRUE if omitted, but you should almost always use FALSE.

For example, with a product list in A2:C10 (A=Product ID, B=Name, C=Price), to get the price for product ID “P-345”, use:

=VLOOKUP("P-345", A2:C10, 3, FALSE)

This returns the price from column C because C is the 3rd column in the range.

Real-World Example: Employee Directory

Suppose you have an employee table in columns A to D: A=Employee ID, B=Last Name, C=First Name, D=Email. You want to find the email for employee ID “E-102”.

In cell F2, type the ID, and in G2, use:

=VLOOKUP(F2, A2:D100, 4, FALSE)

This looks up the value in F2 in column A, and returns the email from column D (the 4th column). The result will be the email address, e.g., jane.doe@company.com.

If the ID is not found, VLOOKUP returns #N/A. To show a friendly message, wrap it with IFERROR:

=IFERROR(VLOOKUP(F2, A2:D100, 4, FALSE), "Not found")

How to Choose Between VLOOKUP, INDEX/MATCH, and XLOOKUP

VLOOKUP is simple but has limitations: it can only look to the right, and it cannot handle lookup columns that are not the first column of the range. If you need to look to the left, or if your table may have columns inserted, use INDEX and MATCH together.

For example, to find the name of an employee when you know their email (email is in column D, name in column B), use:

=INDEX(B2:B100, MATCH("jane@example.com", D2:D100, 0))

In Google Sheets, there is also XLOOKUP (available since 2022) which is more flexible: it can search left or right, return multiple values, and handle missing values. For new sheets, XLOOKUP is often a better choice:

=XLOOKUP("P-345", A2:A10, C2:C10)

Common Problems and How to Fix Them

  • #N/A error – The search key is not found. Check for extra spaces, number vs. text formatting, or use TRIM and TEXT to clean data.
  • Wrong result with TRUE – If you use TRUE without sorting the first column, you get unpredictable results. Use FALSE for exact matches.
  • Index out of range – The index is larger than the number of columns in the range. Count columns carefully.
  • Lookup column not first – VLOOKUP cannot search to the left. Rearrange columns or use INDEX/MATCH.
  • Case sensitivity – VLOOKUP in Google Sheets is case-insensitive. If you need case-sensitive lookup, use FIND with ARRAYFORMULA or a script.

VLOOKUP vs. Other Lookup Functions in Google Sheets

Here is a quick comparison:

  • VLOOKUP – Easy, but only looks right and requires the lookup column first.
  • HLOOKUP – Works like VLOOKUP but searches horizontally across rows. Use when your table is transposed.
  • INDEX/MATCH – More flexible, can look left, and is often faster in large sheets.
  • XLOOKUP – Newer, more powerful, with built-in error handling and support for arrays.
  • QUERY – For complex lookups or merging data, you can use QUERY with SQL-like syntax.

For most simple lookups, VLOOKUP is fine. For anything complex, consider XLOOKUP or INDEX/MATCH.

Tips for Using VLOOKUP Effectively

  • Always use FALSE for exact matches unless you truly need an approximate match (e.g., tax brackets).
  • Lock the range with dollar signs ($A$2:$C$100) if you plan to copy the formula.
  • Use IFERROR to handle missing values gracefully.
  • Use named ranges for readability, e.g., =VLOOKUP(F2, EmployeeData, 4, FALSE).
  • For partial matches, you can use wildcards: "*"&A2&"*" to find any cell containing the value.

Frequently Asked Questions

Why is my VLOOKUP returning #N/A even though the value exists?

This usually happens because the search key is a number but the lookup column contains text (or vice versa), or there are extra spaces. Use =TRIM(A2) to remove spaces, or convert numbers to text with TEXT(A2, "0"). Also check that the range’s first column is exactly the column with your lookup values.

Can VLOOKUP look to the left?

No. VLOOKUP only looks to the right of the first column in the range. To look left, use INDEX and MATCH, or restructure your table so the lookup column is first.

How do I use VLOOKUP with two criteria?

VLOOKUP cannot handle two criteria directly. You can concatenate the criteria into a helper column, or use FILTER or QUERY. For example, create a column that combines first and last name, then VLOOKUP on that combined column.

Is VLOOKUP case-sensitive in Google Sheets?

No, it is not case-sensitive. If you need case-sensitive matching, use ARRAYFORMULA with EXACT or use a script.

What is the difference between VLOOKUP and XLOOKUP in Google Sheets?

XLOOKUP is more flexible: it can search in any direction, return multiple values, and has built-in error handling. VLOOKUP is simpler but limited to rightward lookups. For new spreadsheets, XLOOKUP is often recommended, but VLOOKUP is still widely used and supported.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.