How to Use VLOOKUP in Google Sheets: A Step-by-Step Guide

Ayan Ahmad Fareedi

Published By

Published On

Reading Time

5 min read

Learn how to use VLOOKUP in Google Sheets with this step-by-step guide, including useful tips, examples, and error-handling techniques.

VLOOKUP is one of the most widely used functions in Google Sheets, especially for handling large datasets. It allows you to search for specific data in one column and retrieve corresponding information from another column.

Whether you're managing financial reports, inventory data, or sales records, VLOOKUP simplifies the process of data lookup.

In this blog post, we will cover everything you need to know about using VLOOKUP in Google Sheets, including a step-by-step guide, useful tips, and key insights to get the most out of this powerful function.


What is VLOOKUP?

VLOOKUP (Vertical Lookup) is a function in Google Sheets that searches for a value in the first column of a range (called the "lookup table") and returns a value in the same row from another column of the range.

The formula looks like this:

scss
Copy code
=VLOOKUP(search_key, range, index, [is_sorted])

scss


Steps to Use VLOOKUP in Google Sheets

Step 1: Organize Your Data

Before using VLOOKUP, ensure that your data is organized. The column you are searching through (the lookup column) must be the first column in your range.

Example:

Product CodeProduct NamePrice
101Apple$1
102Banana$0.5
103Orange$0.8

Here, we can use VLOOKUP to search by the Product Code and return the Product Name or Price.

Step 2: Select the Cell Where You Want to Enter the Formula

Click on the cell where you want the VLOOKUP result to appear.

Step 3: Enter the VLOOKUP Formula

Use the following format for the VLOOKUP formula:

php
Copy code
=VLOOKUP(101, A2:C4, 2, FALSE)

php

Press Enter, and the function will return the value "Apple."

Step 4: Adjust for Different Columns

You can change the column index (third argument) to retrieve data from a different column. For example, if you want to return the Price instead of the Product Name:

php
Copy code
=VLOOKUP(101, A2:C4, 3, FALSE)

php

In this case, it would return "$1" because the Price is in the third column of the range.

Step 5: Handle Errors with IFERROR

Sometimes, VLOOKUP may not find a match and return an error. To avoid this, you can wrap the VLOOKUP function in an IFERROR function:

less
Copy code
=IFERROR(VLOOKUP(101, A2:C4, 2, FALSE), "Not Found")

less

If VLOOKUP can't find the value, it will display "Not Found" instead of an error.


Key Tips for Using VLOOKUP

scss
Copy code
=VLOOKUP(101, ProductData, 2, FALSE)

scss

php
Copy code
=VLOOKUP(101, A:C, 2, FALSE)

php


Common VLOOKUP Errors and How to Fix Them


When to Use VLOOKUP vs. Other Functions


Conclusion

VLOOKUP in Google Sheets is an invaluable tool for quickly finding and returning data from large datasets. By following the steps above and keeping the tips in mind, you can effectively use VLOOKUP for a variety of purposes, from generating reports to managing inventories. Remember to always use exact match mode, ensure your data is well-formatted, and handle potential errors with IFERROR to make your spreadsheets more reliable and user-friendly.

About the author

Ayan Ahmad Fareedi profile photo
Ayan Ahmad Fareediβ€” Senior Writer & Spreadsheet Specialist

Ayan Ahmad is our Senior Writer specializing in Google Sheets tutorials and productivity guides. With over two years of experience at companies like Amazon and Okaya, he has mastered data analysis and spreadsheet automation. He creates comprehensive guides that help users unlock the full potential of Google Sheets for business and personal use.