VLOOKUP (Vertical Lookup) is a function in Google Sheets that allows you to search for a value in one column and return a value from another. For example, you can use the VLOOKUP function to search for a product by its product ID and return the product name.
This guide shows you how to use the VLOOKUP in Google Sheets.
VLOOKUP Syntax
=VLOOKUP(search_key, range, index, [is_sorted])
Arguments
- search_key: value you want to search for in the first column of the selected range
- range: range of cells you want to search for. The search key must be in the first column of the search range.
- index: column’s index from which you want to return a value. The index must be a positive integer. The return column must be to the right of the search key column.
- is_sorted (optional): Specifies how the search key should match the values in the search range. The default match type is FALSE, meaning the search key must be an exact match. It is optional.
Examples of Using VLOOKUP in Google Sheets
Example 1
In this scenario, we have a list of Product Names and their corresponding Product ID. We can quickly pull the Product Name from the list using the unique Product ID.
For example, we want to extract the corresponding Product Name of the Product ID (P-5).

Follow the below steps:
- Type the following formula followed by an opening parentheses in the cell where you want the output:
=VLOOKUP(
Type “=Vlookup(” to initiate the function. - Select the cell containing the value you want to search for, followed by a comma. In our example, we will select cell C11.
Insert the lookup value in the formula. - Select the range of cells where you want the function to search the value. In our example, we will select the cell range A3 to C8. Next, enter a comma.
Insert the search range in the formula. - Enter the column’s index that you want to return a value. In our example, we want the Product Name, which has an index of 2.
Insert the column index in the formula. Close the parentheses and hit Enter. You’ll find the Product Name corresponding to the Product ID.
VLOOKUP returns the corresponding value of the search key from the search range.
Example 2
In this scenario, we will use the “Product Info” from the previous example in one sheet and a “Customer Info” table in a new sheet.


In our example, we want to extract the Product Name corresponding to the Product ID from the Product Info sheet and display them in the Customer Info sheet. Follow the below steps:
-
- Select the cell where you want to return the lookup value.
Select your cell for the output. - Type the following formula followed by opening parentheses:
=VLOOKUP(
- Select the cell containing the value you want to search for, followed by a comma. In our example, we will select D5, which corresponds to Product ID P-3.
Specify the search value. - Open the Product ID sheet. Then, select the range of cells where you want the function to search the value. In our example, we will select the cell range B5 to C9. Next, enter a comma in your formula.
Specify the search range. - Press F4 to lock the selected cell range. It will ensure that the reference does not change when copying the formulas.
Press F4 to freeze references. - Enter the column’s index that you want to return a value. In our example, we want the Product Name, which has an index of 2.
Insert the column index. - Press Enter. You will notice the Product Name corresponding to the Product ID.
Vlookup returned the searched value. - Select the cell with the formula and hover the cursor over the bottom of the cell. Then, click and drag the fill handle downwards to fill the rest of the cells.
Drag the fill handle to copy the formula.
- Select the cell where you want to return the lookup value.