# Google Sheets VLOOKUP Function: Syntax, Examples & Tips

- URL: https://betteranalyst.com/google-sheets/vlookup-function
- Author: Better Analyst

Formula Bot is now Better Analyst—same account, more powerful analysis.Formula Bot is now Better Analyst—same account and workflows, with more powerful analysis, dashboards, and automation.

[Learn what changed](https://betteranalyst.com/formula-bot-is-now-better-analyst)

The VLOOKUP function searches for a value in the first column of a range and returns a corresponding value from a specified column.

```
VLOOKUP(search_key, range, index, [is_sorted])
```

Generate FormulaExplain Formula

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Describe the VLOOKUP you need in plain EnglishGenerate Formula

## Parameters

**`search_key`**:\
The value that you want to search for within the first column of the specified `range`. This can be a number, text, or a cell reference.

**`range`**:\
The range of cells that contains the data you want to search through. The first column of this range is where the `search_key` will be looked up.

**`index`**:\
The column number in the `range` from which to return the value. The first column in the `range` is 1, the second column is 2, and so on.

**`is_sorted`**:\
An optional parameter that indicates whether the first column of the `range` is sorted. If TRUE or omitted, an approximate match is returned; if FALSE, an exact match is required.

## What is a VLOOKUP?

The *VLOOKUP* function in Google Sheets is a widely used tool that allows users to search for a specific value in the first column of a range and return a corresponding value from a specified column in the same row. It is particularly useful for looking up data in large tables and retrieving related information quickly.

In simpler terms, VLOOKUP helps you find specific data in a table and retrieve associated information from that table efficiently.

## A Practical Example

Imagine you are managing a product inventory and sales records stored in a Google Sheets spreadsheet:

### Products Table:

| ProductID | ProductName | Price |
| - | - | - |
| 101 | Widget A | 25.00 |
| 102 | Widget B | 30.00 |
| 103 | Widget C | 15.00 |

### Sales Table:

| SaleID | ProductID | Quantity |
| - | - | - |
| 1 | 101 | 3 |
| 2 | 103 | 5 |

You want to find the price of each product sold in the sales table. If a product has not been sold, you still want to display its price.

## VLOOKUP Formula

To achieve this, you would use the VLOOKUP function as follows:

```
=VLOOKUP(B2, Products!A:C, 3, FALSE)
```

In this formula:

- `B2` is the cell containing the ProductID from the Sales Table.
- `Products!A:C` is the range where the function will look for the ProductID in the Products Table.
- `3` indicates that the function should return the value from the third column of the specified range (Price).
- `FALSE` specifies that you want an exact match for the ProductID.

## Result of the Formula

When you apply the VLOOKUP formula to the Sales Table, the output would look like this:

| SaleID | ProductID | Quantity | Price |
| - | - | - | - |
| 1 | 101 | 3 | 25.00 |
| 2 | 103 | 5 | 15.00 |

If you were to add a row for a product that hasn't been sold, such as Widget B, the result would still show its price as follows:

| SaleID | ProductID | Quantity | Price |
| - | - | - | - |
| 1 | 101 | 3 | 25.00 |
| 2 | 103 | 5 | 15.00 |
| 3 | 102 | 0 | 30.00 |

In this case, if you input ProductID 102 in the Sales Table, the VLOOKUP would return "30.00" for Widget B.

## Why Use VLOOKUP?

VLOOKUP is beneficial because it simplifies the process of looking up data in Google Sheets. It allows users to quickly retrieve related information without having to manually search through tables. However, it is important to note that VLOOKUP can only search for values in the first column of the specified range and can only return values from columns to the right.

## Key Takeaways:

- **VLOOKUP**: A fundamental Google Sheets function that searches for a value and returns a corresponding value from another column.
- **Limitations**: Can only search vertically and requires the lookup value to be in the first column of the range.
- **Common Use Cases**: Ideal for inventory management, sales tracking, and any scenario where data retrieval from related tables is necessary.

VLOOKUP is an essential function for anyone working with data in Google Sheets, providing a straightforward way to enhance data analysis and reporting capabilities.

Happy spreadsheeting!

## Example use case

You have a sales report where Column A lists product IDs and Column B contains their prices. Use VLOOKUP to input a product ID and instantly find its price, streamlining inventory management and sales tracking without manual searching.

## Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

[Create Free Account](https://betteranalyst.com/signup)[Try Formula Generator](https://betteranalyst.com/excel-ai)

## Google Sheets how-to guides

- [How To Strikethrough In Google Sheets](https://betteranalyst.com/google-sheets/how-to-strikethrough-in-google-sheets)
- [How To Subtract In Google Sheets](https://betteranalyst.com/google-sheets/how-to-subtract-in-google-sheets)
- [How To Transpose Data In Google Sheets](https://betteranalyst.com/google-sheets/how-to-transpose-data-in-google-sheets)
- [How To Unhide Columns In Google Sheets](https://betteranalyst.com/google-sheets/how-to-unhide-all-columns-in-google-sheets)
- [How To Unhide Rows In Google Sheets](https://betteranalyst.com/google-sheets/how-to-unhide-all-rows-in-google-sheets)
- [How To Unprotect Google Sheets](https://betteranalyst.com/google-sheets/how-to-unprotect-google-sheets)
- [How To Wrap Text In Google Sheets](https://betteranalyst.com/google-sheets/how-to-wrap-text-in-google-sheets)
- [Google Sheets Conditional Formatting](https://betteranalyst.com/google-sheets/google-sheets-conditional-formatting)

## Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

## Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

1. [01ChatGPTOpen a balanced comparison prompt in ChatGPT.](https://chatgpt.com/?prompt=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
2. [02ClaudeOpen the same research prompt in Claude.](https://claude.ai/new?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
3. [03PerplexityResearch the comparison with linked web sources.](https://www.perplexity.ai/search?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.
