Catalog

How to Use the “VLOOKUP” Function in Google Sheets? (With Examples)

November 30, 2023 1.1K views

Google Sheets is a remarkable product by Google that centers on empowering users with versatile spreadsheet capabilities. In the expansive landscape of data management, Google Sheets stands out as a reliable ally, offering a myriad of features designed to streamline your spreadsheet tasks. Among its standout features, the Google Spreadsheet VLOOKUP function takes center stage in 2023.

How to Use the “VLOOKUP” Function in Google Sheets


 

What is the “VLOOKUP” function?

In Google Sheets, VLOOKUP is a function that allows you to search for a specific value in the leftmost column of a range and retrieve a corresponding value in the same row from a specified column. It stands for "Vertical Lookup" and is particularly useful for looking up information in large datasets.

Let's take a closer look at the Google Spreadsheet VLOOKUP formula to gain a comprehensive understanding of how to use this function effectively:

Syntax:

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

  • search_key: The value you want to look up in the first column of your data.

  • range: The table or range of cells that contains your data.

  • index: The column index from which to retrieve the value (1 for the first column, 2 for the second, and so on).

  • [is_sorted]: An optional parameter indicating whether the first column in the range is sorted. Use TRUE for sorted and FALSE for unsorted. If omitted, it defaults to TRUE.

How to use VLOOKUP in Google Sheets ( with examples)

Basic Vlookup

Example 1: Vlookup on different search keys

Consider a database containing the age and driving license status of 10 individuals. Let's use the VLOOKUP function in Google Sheets to extract the age of a person:

Google Sheets example database


 

Step 1: Click on an empty cell to initiate the VLOOKUP function.

Step 2: Start the function with an equal sign, enter “VLOOKUP” and select "VLOOKUP" from the suggestions. Press "Tab" to accept.

Google Sheets select VLOOKUP function


 

Step 3: Choose the cell (e.g., F3) where you will input the names for which you want to retrieve records.

Google Sheets VLOOKUP search key


 

Step 4: Select the table as the range for the next argument.

Google Sheets VLOOKUP range


 

Step 5: Specify the "Column Index"; since the Age column is the 2nd index column, insert "2" in the function.

Google Sheets VLOOKUP index


 

Step 6: For the last argument, enter "False" to ensure accurate value retrieval.

Google Sheets VLOOKUP accurate values


 

Step 7: Press “Enter”; an error may appear if the cell F4 is empty.

Step 8: Enter a record name in cell F3, like "Eli," and the age will be displayed in the VLOOKUP function.

Google Sheets VLOOKUP example


 

Step 9: Repeat for other records; VLOOKUP will return the age based on the entered record name.

Google Sheets Vlookup on different search keys


 

Example 2: Vlookup on different column indexes

To further evaluate the Google Sheets VLOOKUP function, let's use it for different column indexes. In the same example, let's check if a particular record, "Simpson," has an active driving license:

Step 1: Start with an equal sign, type "VLOOKUP," and press "Tab" on the suggestion to accept.

Google Sheets Vlookup sample database for driving license


 

Step 2: For the search key argument, select cell F4, where we'll enter the record name for driving license retrieval.

Google Sheets Vlookup function search key


 

Step 3: Choose the entire table for the range, press "F4" to make it an absolute reference.

Google Sheets Vlookup function range


 

Step 4: In the column index, insert "3" as the driving license is the 3rd column.

Google Sheets Vlookup function column index number


 

Step 5: Insert "False" for accurate results.

Google Sheets Vlookup function accurate values


 

Step 6: Press "Enter"; Simpson's driving license record will appear.

Google Sheets Vlookup function example


 

Step 7: To search for different records, replace the record name in F4 without entering the VLOOKUP function again.

Google Sheets Vlookup different column indexes


 

Other Vlookup

Example 3: Vlookup from a Different Sheet

In Google Sheets, we can use the VLOOKUP function in a more advanced manner, such as looking up values from a different sheet within the same workbook. Consider an airflight database: one sheet contains comprehensive flight details.

Google Sheets Flight Database Sheet


 

And the next sheet holds Passenger Information, including booking details, seat, and flight number.

Google Sheets Passenger Information sheet


 

When using VLOOKUP, a unique identifier column is essential in both sheets. In our example, the "Flight Number" column serves as the unique identifier. Let's use the VLOOKUP function to retrieve and display the Ticket Price for each passenger.

Step 1: Navigate to the "Passenger Information" sheet and enter the "VLOOKUP" function in the Ticket Price column, commencing with an equal sign.

Google Sheets VLOOKUP from a different sheet example


 

Step 2: For the first argument, use the Flight number cell (D7).

Google Sheets VLOOKUP from different sheet search key


 

Step 3: Select the entire table in the "Flight Database" sheet, ensuring an absolute reference by pressing the "F4" key on your keyboard.

Google Sheets VLOOKUP from different sheet select table


 

Step 4: Since the Ticket price is in the 4th column, insert "4" as the column index.

Step 5: Insert "False" for the last argument to ensure accurate values.

Google Sheets VLOOKUP from different sheet final arguments


 

Step 6: Press "Enter", and Google Sheets's VLOOKUP function will retrieve the Ticket Price for the specific flight number. Use the "Autofill" handle to populate the remaining cells.

Google Sheets VLOOKUP from different sheet results


 

Example 4: Vlookup From Different Workbooks

VLOOKUP can also be employed to search values from a different workbook. However, an additional function is required. In the same example, both "Passenger Information" and "Flight Database" are on different Google workbooks. This time, let's find the Destination of each flight using the Flight number as the lookup key.

Step 1: In the "Passenger Information" sheet, under the Destination column, enter the VLOOKUP function.

Step 2: For the first argument, use the unique identifier, Flight number (D7).

Google Sheets VLOOKUP from different Workbook search key


 

Step 3: For the range argument, employ the "IMPORTDATA" function, with the single argument being the URL of the other workbook.

Google Sheets IMPORTDATA Function


 

Step 4: Visit the Flight Database workbook, and copy the URL, using the keyboard shortcut “CTRL + C”.

Google Sheets copy URL


 

Step 5: Press “CTRL + P” to paste the URL inside the IMPORTDATA function. Ensure the URL is enclosed in inverted commas and close the parenthesis to continue with the VLOOKUP function.

Google Sheets IMPORTDATA paste URL


 

Step 6: Insert the column index number, “2”, as the 3rd argument in the VLOOKUP function.

Google Sheets VLOOKUP from different Workbook column index

 

Step 7: Insert "False" for accurate results and press "Enter".

Step 8: To populate the remaining cells, use the "Autofill" handle, and all Destinations will appear on the Passenger Information sheet.

Google Sheets VLOOKUP from different Workbook result

Google Sheets VLOOKUP from different Workbook result

 

This process might initially be challenging for some Excel users, but with some learning, it becomes more intuitive over time.

Best Excellent Alternative to Google Sheets - WPS Spreadsheet

WPS Spreadsheet has made a significant impact since its debut, swiftly rising to become the top competitor to Microsoft Office Excel. This success can be attributed to its advanced features, user-friendly interface, and seamless functionality. The tool excels in providing a smooth user experience, addressing concerns about accessibility and compatibility with Excel formulas. Users can seamlessly access and utilize Excel formulas, ensuring a familiar and efficient workflow.

WPS Spreadsheet

WPS Spreadsheet

 

Beyond its compatibility, WPS Spreadsheet offers an array of features that enhance productivity. Its commitment to being a free-to-download and free-to-use application makes it accessible to a wide range of users. The incorporation of free PDF editing tools and a rich collection of office templates in the built-in WPS Template Library adds versatility to its offerings.

Moreover, WPS Spreadsheet goes beyond the traditional spreadsheet tool, serving as a comprehensive office suite. With its intuitive design and continuous innovation, WPS Spreadsheet stands as an excellent choice for users seeking a robust and user-friendly alternative to traditional spreadsheet applications.

Steps to download WPS Spreadsheet:

Step 1: To get started, visit the WPS Spreadsheet website on your computer.

WPS Office Homepage

WPS Office Homepage

 

Step 2: To download WPS Spreadsheet, click the large "Free Download" button on the homepage.

WPS Office Download

WPS Office Download

 

Step 3: Once you've downloaded WPS Spreadsheet, open your downloads folder and double-click the "wps_wid.exe" file to start the installation process.

WPS Office installation file

WPS Office installation file

 

Step 4: To begin the installation, check the box next to the terms and conditions and then click the large "Install Now" button.

WPS Office Install now

WPS Office Install now

 

Step 5: Upon successful installation, WPS Office automatically launches, granting you immediate access to its comprehensive suite of productivity tools.

WPS Office interface

WPS Office interface

 

Trustpilotstars4.8
WPS Office- Free All-in-One Office Suite
  • Use Word, Excel, and PPT for FREE, No Ads.

  • Edit PDF files with the powerful PDF toolkit.

  • Microsoft-like interface. Easy to learn. 100% Compatibility.

  • Boost your productivity with WPS's abundant free Word, Excel, PPT, and CV templates.

5,820,008 User
avator
Algirdas Jasaitis
logo

FAQS:

Q1. What is the difference between VLOOKUP and lookup in Google Sheets?

The LOOKUP function is like a search tool. It helps you find data in a row or column and obtains related information from another row or column. On the other hand, the VLOOKUP function does something comparable, but it only searches vertically in a row and provides data in a left-to-right manner. So, both are handy, but they have specific ways of retrieving data based on your needs.

Q2. Why does VLOOKUP not work in Google Sheets?

In VLOOKUP, it's crucial that your search value resides in the first (leftmost) column of the specified range. The function may not operate as expected if the value is positioned in a column to the right of the data you intend to retrieve. To ensure the seamless functionality of VLOOKUP, confirm that your lookup value is in the first column of the designated range.

VLOOKUP Mastery: Unlocking Efficient Data Retrieval in Google Sheets

The Google Spreadsheet VLOOKUP function, much like various other functions provided by spreadsheet tools, offers immense convenience, significantly easing the task of handling and presenting data. Performing such functionalities manually can be tedious, making the availability of this function in Google Sheets a fortunate solution.

WPS Office, however, takes user convenience to the next level with its exceptional ease of use and advanced features. If you're looking to enhance your spreadsheet experience, WPS Office is your go-to solution. Download WPS Office now to explore a seamless and efficient way to work with your data.


15 years of office industry experience, tech lover and copywriter. Follow me for product reviews, comparisons, and recommendations for new apps and software.