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 ArticleThis article discusses how to reference data from another sheet in Google Sheets.
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:
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.
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.
You also can reference data from a different spreadsheet file with the IMPORTRANGE formula.
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.
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.
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.