Formula to Pull Data from Another Sheet: Step-by-Step
In this article
The formula to pull data from another sheet is a direct cell reference: type =, click the other sheet's tab, click the cell you want, and press Enter. You get something like =Sheet2!A1 or ='Q1 Sales'!B4. That single reference updates automatically whenever the source cell changes, so it is the simplest and most reliable way to mirror data across sheets in Excel and Google Sheets. For anything more dynamic, you combine that reference with lookup functions such as VLOOKUP, INDEX/MATCH or XLOOKUP so the formula finds the right row or column instead of pointing at one fixed cell.
What You'll Need
- A spreadsheet open in Excel (desktop or web) or Google Sheets.
- At least two sheets in the same workbook or file: one holding the source data, one where you want the pulled values to appear.
- Consistent headers in the source sheet, because lookups depend on matching column headings or a unique ID.
- Basic familiarity with cell references (A1, B2) and the idea of a sheet name followed by an exclamation mark.
Step-by-Step
- Identify the source cell or range. Open the sheet that holds the data and note the exact cell address you need, for example
B2for a single value orA2:D50for a table. If the sheet name contains spaces, punctuation or starts with a number, you must wrap it in single quotes later, so note the exact tab name as well. - Go to the destination sheet and select the cell where the pulled value should appear. This is where the formula lives.
- Type an equals sign to start the formula.
- Click the source sheet tab at the bottom of the window, then click the cell you want to pull. The spreadsheet writes the reference for you, including the sheet name and exclamation mark. Press Enter. You now have a live link such as
=Sheet2!B2. - For a whole column of values, write the reference once in the top cell and drag the fill handle down, or copy the cell and paste it where needed. Relative references adjust row by row, so
=Sheet2!B2becomes=Sheet2!B3on the next row. - To pull a value by matching a key, use a lookup instead of a fixed reference. In Excel or Google Sheets, the classic pattern is
=VLOOKUP(A2, Sheet2!$A$2:$D$50, 3, FALSE). Here A2 is the key on the destination sheet, the range is the source table, 3 is the column number to return, and FALSE forces an exact match. Lock the range with dollar signs so it does not shift when you copy the formula down. - Prefer INDEX/MATCH or XLOOKUP for more control.
=INDEX(Sheet2!$D$2:$D$50, MATCH(A2, Sheet2!$A$2:$A$50, 0))returns the same result and works even when the lookup column is not the first column of the range. In Excel 365 and Google Sheets,=XLOOKUP(A2, Sheet2!$A$2:$A$50, Sheet2!$D$2:$D$50, "Not found")is shorter and lets you set a fallback value. - Handle sheet names with spaces. Write
='Q1 Sales'!B4with single quotes around the name. Without quotes, the formula breaks with a #NAME? or parse error. - Check the result and copy down. Confirm the first pulled value matches the source, then fill the formula down the column. If you see a #REF! error after copying, the source range probably moved or the sheet was renamed; fix the reference or use Find & Replace to update the sheet name.
Menu labels and formula behaviour can differ slightly by version, device and region, but the reference syntax above is the same across current Excel and Google Sheets.
Common Mistakes
- Forgetting the exclamation mark. A sheet reference always looks like
SheetName!Cell. WritingSheet2.A1orSheet2 A1fails. - Leaving out quotes around sheet names with spaces.
=Q1 Sales!B4is invalid;='Q1 Sales'!B4is correct. - Using approximate match in VLOOKUP. Omitting the final FALSE (or 0) lets the function guess and return the wrong row. Always set exact match unless you deliberately want a banded lookup.
- Not locking the lookup range. Copying
Sheet2!A2:D50down shifts it toA3:D51and beyond, so later rows read the wrong data. Use$A$2:$D$50. - Pulling from a closed workbook. Some formulas work with closed files, but lookups and dynamic references often return errors or stale values. Open the source file while you build and test the formula.
- Assuming a copied value stays linked. Pasting with Paste Special > Values breaks the link and keeps only the number. That is fine for archiving, but it will no longer update.
Tips
- Name your source ranges (Formulas > Define Name in Excel, Data > Named ranges in Google Sheets) so formulas read
=VLOOKUP(A2, SalesData, 3, FALSE)instead of a long cell range. - Keep one header row and one data type per column in the source sheet. Mixed text and numbers in a lookup column is the most common cause of missed matches.
- Use
IFERRORaround the formula, for example=IFERROR(VLOOKUP(...), ""), to hide #N/A errors when a key is missing. - For a dashboard, pull a whole table with a single dynamic array formula in Excel 365 or an ARRAYFORMULA in Google Sheets rather than copying hundreds of rows.
- Build the first formula by clicking rather than typing the sheet reference; it avoids typos in long tab names.
Troubleshooting
- #REF! error: the referenced sheet or cell was deleted or renamed. Undo the deletion, or edit the formula and re-point it at the current sheet name.
- #NAME? error: usually a missing quote around a sheet name with spaces, or a misspelled function. Check the spelling and the quotes first.
- #N/A from a lookup: the key does not exist in the source, or the two columns have different data types (one is text, one is a number). Convert them to the same type, or trim stray spaces with TRIM.
- Wrong value returned: confirm the column index number in VLOOKUP counts from the first column of the range, not from column A of the sheet.
- Formula shows as text: the cell is formatted as text. Change the format to General, then re-enter the formula.
- Values do not refresh: check that automatic calculation is on (Formulas > Calculation Options > Automatic in Excel). In Google Sheets, a linked sheet may need a manual refresh from the source file.
Frequently Asked Questions
Can I pull data from another sheet without a formula?
Yes. Copy the cells and use Paste Special > Paste Link in Excel, or copy and use Edit > Paste > Paste link in Google Sheets. That creates a reference formula for you, which is handy when you do not want to type sheet names.
What is the difference between a direct reference and VLOOKUP?
A direct reference such as =Sheet2!B2 always points at that exact cell. VLOOKUP searches for a key and returns the matching row, so it keeps working when rows are inserted or reordered in the source sheet.
Why does my formula show the sheet name in quotes?
Quotes are required when the sheet name contains a space, punctuation or begins with a number. The spreadsheet adds them automatically when you click the tab, and they are not an error.
Can I pull data from a different spreadsheet file?
Yes. In Google Sheets use =IMPORTRANGE("spreadsheet URL", "Sheet1!A1:D50") and grant access the first time. In Excel, reference the other workbook with =[Book2.xlsx]Sheet1!A1, keeping the file open or using the full path.
How do I stop pulled values from changing?
Copy the cells and paste them as values. The numbers stay fixed, but the link to the source sheet is removed, so later edits in the source will not appear.
Does this work in Excel on the web and Google Sheets?
Yes. The sheet reference syntax and the lookup functions described here work in both, though a few newer functions such as XLOOKUP may not be available in older desktop versions of Excel.