VLOOKUP
The VLOOKUP
function in Google Sheets is a powerful tool for performing vertical lookups. It allows you to search for a key in the first column of a range and retrieve the value of a specified cell in the same row. Whether you're looking up customer information, product prices, or employee data, the VLOOKUP
function simplifies the process. Read on to learn how to use this function effectively.
Function Syntax and Parameters
Syntax: VLOOKUP(search_key, range, index, [is_sorted])
Parameters:
search_key
: The value to search for in the left-most column of the range.range
: The range of cells to perform the search on, including the left-most column where the search should be conducted.index
: The column number within the range from which the value should be retrieved.is_sorted
[Optional]: A boolean value indicating whether the range is sorted in ascending order. Default value istrue
.
Step-by-Step Tutorial
-
Using
VLOOKUP
with an exact match:- Example:
=VLOOKUP("apple", A1:B5, 2, false)
- Result: Returns the value in the second column of the row where "apple" is found in column A.
- Example:
-
Using
VLOOKUP
with approximate match and sorted range:- Example:
=VLOOKUP(80, A1:B5, 2, true)
- Result: Returns the value in the second column of the row with the closest match to 80 in the sorted range of column A.
- Example:
-
Using
VLOOKUP
with wildcard characters:- Example:
=VLOOKUP("ap*", A1:B5, 2, false)
- Result: Returns the value in the second column of the row where the value in column A starts with "ap".
- Example:
Use Cases and Scenarios
- Customer Database: Retrieve customer information based on their unique identifier.
- Pricing Lookup: Find the price of a product based on its SKU.
- Employee Directory: Get an employee's contact information by searching for their name.
Related Functions
HLOOKUP
: Perform a horizontal lookup in Google Sheets.INDEX
: Retrieve a value from a specified position in a range.