How to Use Google Sheets to Reference Data From Another Sheet

Ryan Dube is a freelance contributor to Lifewire and former Managing Editor of MakeUseOf, senior IT Analyst, and an automation engineer.

Updated on July 12, 2023 In This Article In This Article

What to Know

This article discusses how to reference data from another sheet in Google Sheets.

How to Pull Cell Data From Another Sheet

The most common reason people want to pull data from another sheet in Google Sheets is when those other tables are lookup tables.

For example, one sheet might hold all the products you sell along with their UPC codes and unit prices, while another sheet might contain a log of your sales. To calculate the total sale, you'll need to pull pricing data from the product sheet. Here's how:

Placing cursor in destination cell

  1. In the original sheet where you want to pull data into, place your cursor in the cell where you'd like the data to go.

Selecting sheet where data comes from

Type = (the equal sign) into the cell. Select the second sheet and, then, the cell that contains the data you want to bring into the original sheet.

Data transferred to original sheet

Press Enter finish. This will bring the cell data you selected into the first spreadsheet.

The final formula in this case is =Sheet2!C2. 'Sheet2' is the name of the sheet where the data comes from. This method is good for referencing individual cell data from a different spreadsheet into an original one.

Pull Cell Data From a Different Spreadsheet File

You also can reference data from a different spreadsheet file with the IMPORTRANGE formula.

Copying spreadsheet link in Google Sheets

  1. Before you can use the IMPORTRANGE formula, you'll need the URL link to the Google Sheets file where you want to reference data. Highlight and copy the URL link to the end of the long code before the last forward slash (/) in the URL.

Entering spreadsheet_url into IMPORTRANGE function

In the original sheet where you want to pull data to, place the cursor in the destination cell and type: =IMPORTRANGE("URL" Be sure to replace URL in this formula with the URL you want to reference.

Entering cell data in IMPORTRANGE function

Follow the quotes after the URL with a comma (,), then type the name of the sheet and the cell you want to get data from. In this example you'd enter: =IMPORTRANGE("URL","Sheet1!C2"). Again, URL would be a full URL. We're just keeping it short for example purposes.

Imported data into a Google Sheets spreadsheet

Press Enter. You'll see that the data from the other Sheets spreadsheet file is pulled into this spreadsheet.

How do I lock a cell in Google Sheets?

To lock cells in Google Sheets, select and right-click the cells, select Protect Range, and assign a name. Click Set permissions and choose to show a warning or restrict editing.

How do I make an absolute reference in Google Sheets?

Add a dollar sign ($) before the row and/or column in the reference to make it absolute. That way, the formula will always refer to the same cell, even when copied and pasted.