Excel Insert Value from Another Tab Table Guide
In this article
To insert a value from another tab in Excel, you can use a direct cell reference (typing = and clicking the target cell) for single values, or a lookup function like XLOOKUP or VLOOKUP for pulling specific data from a table based on a unique identifier. This process allows you to maintain a centralized database on one sheet while displaying specific results on a summary or dashboard sheet, ensuring that when the source data changes, the destination value updates automatically.
What You'll Need
- An Excel workbook with at least two separate worksheets (tabs).
- A source table on one tab containing the data you want to retrieve.
- A unique identifier (like an ID number, email, or product SKU) if you are using lookup functions to ensure the correct row is targeted.
- Basic familiarity with the Excel formula bar.
Step-by-Step
Depending on whether you need a single specific cell or a value that changes based on a search term, choose one of the following three methods. Note that menu labels and ribbon layouts may differ slightly depending on your version of Excel (Microsoft 365, Excel 2021, or Excel for Web).
Method 1: Simple Cell Reference (The "Point and Click" Method)
Use this method when you know exactly which cell holds the value you need and that value will always be in that specific spot.
- Select the cell in your current tab where you want the value to appear.
- Type the equals sign (=) into the cell. This tells Excel you are starting a formula.
- Click on the tab name at the bottom of the screen that contains the source data.
- Click on the specific cell that contains the value you want to insert.
- Press Enter. Excel will automatically jump back to your original tab and display the value. The formula will look something like
='Sheet2'!A1.
Method 2: Using XLOOKUP (The Modern Standard)
Use this method if you have a table of data and want to find a value based on a matching ID. XLOOKUP is available in Microsoft 365 and newer versions.
- Click the cell where you want the result to be displayed.
- Type
=XLOOKUP(. - Click the cell in your current tab that contains the search value (e.g., an Employee ID).
- Type a comma (,).
- Click the tab containing your source table. Highlight the column that contains the IDs you are searching through (e.g., Column A).
- Type another comma (,).
- While still on the source tab, highlight the column that contains the data you actually want to return (e.g., Column C for "Salary").
- Close the parenthesis
)and press Enter.
Method 3: Using VLOOKUP (For Older Excel Versions)
Use this if XLOOKUP is unavailable. VLOOKUP requires the search column to be the leftmost column of your selected range.
- Click the cell for the result.
- Type
=VLOOKUP(. - Select the lookup value in your current tab, then type a comma (,).
- Click the source tab and highlight the entire table range, starting from the ID column and extending to the column containing the desired value.
- Type a comma (,), then type the column index number. For example, if your table range is A:C and you want data from column C, the index number is 3.
- Type another comma (,) and then type
FALSEto ensure an exact match. - Close the parenthesis
)and press Enter.
Common Mistakes
One of the most frequent errors is forgetting to use absolute references when dragging formulas down. If you highlight a range like A2:B10 and drag the formula down, Excel changes it to A3:B11, A4:B12, and so on, causing the formula to "miss" the data. To fix this, use dollar signs (e.g., $A$2:$B$10) or convert your source data into an official Excel Table (Ctrl+T) so you can use named ranges.
Another common mistake is a mismatch in data types. If your lookup ID in the first tab is formatted as "Text" but the ID in the source table is formatted as a "Number," Excel will return a #N/A error even if the digits look identical. Both columns must share the same data format.
Users also often forget that VLOOKUP only looks to the right. If your unique identifier is in Column B and the value you want to retrieve is in Column A, VLOOKUP will fail. In these cases, you must either move the columns or use XLOOKUP or a combination of INDEX and MATCH.
Tips
To make your formulas easier to read and maintain, convert your source data into a Table. Select your data and press Ctrl+T. Give the table a name in the "Table Design" tab (e.g., "EmployeeData"). Now, instead of referencing 'Sheet2'!A2:C100, your formula will look like =XLOOKUP(A2, EmployeeData[ID], EmployeeData[Salary]). This is much more intuitive and automatically expands if you add new rows to the table.
If you are pulling data from a different workbook entirely (not just a different tab), keep both files open while creating the formula. If you close the source workbook, Excel will change the reference to a full file path. If you then move that file to a different folder on your computer, the link will break, resulting in a #REF! error.
Use the IFERROR function to clean up your spreadsheet. Instead of seeing #N/A when a value isn't found, wrap your formula like this: =IFERROR(XLOOKUP(...), "Not Found"). This keeps your professional reports looking clean.
Troubleshooting
If your formula is not working, start with these checks in order:
- Check for #N/A: This usually means the value you are looking for does not exist in the source tab. Double-check for leading or trailing spaces in your cells. A cell that says "ID123 " (with a space) will not match "ID123". Use the
=TRIM()function to remove extra spaces. - Check for #REF!: This happens if the source tab or the cells you referenced were deleted. You will need to re-select the source range.
- Check for #VALUE!: This often occurs if the formula is expecting a number but finds text, or if the column index number in a VLOOKUP is larger than the number of columns selected.
- Verify Data Types: Select the ID columns in both tabs, go to the "Home" tab, and ensure the dropdown menu for number formatting is the same (e.g., both set to "General" or both to "Number").
- Check Calculation Settings: If the value doesn't update when you change the source data, go to the "Formulas" tab > "Calculation Options" and ensure "Automatic" is selected.
Frequently Asked Questions
Can I pull data from a different Excel file entirely?
Yes. The process is the same as pulling from another tab. While writing the formula, simply switch to the other open workbook and select the cell or range. Excel will include the filename in the formula.
What is the difference between VLOOKUP and XLOOKUP?
XLOOKUP is more flexible; it can look both left and right, defaults to an exact match, and doesn't require you to count column numbers. VLOOKUP only looks to the right and requires a column index number.
How do I stop the formula from showing 0 when the source cell is empty?
You can add an IF statement to the start of your formula: =IF('Sheet2'!A1="", "", 'Sheet2'!A1). This tells Excel to leave the cell blank if the source is blank.
Will these formulas work in Google Sheets?
Yes, cell references and VLOOKUP work identically in Google Sheets. XLOOKUP is also supported in modern Google Sheets versions.
Can I pull multiple columns at once?
Yes, with XLOOKUP, if you select multiple columns for the "return array" (the third part of the formula), Excel will "spill" the results into adjacent cells automatically.
Why does my formula change when I sort my data?
If you used a simple cell reference (like =Sheet2!A1), the formula points to the location, not the data. If the data moves during a sort, the reference stays at A1. Use XLOOKUP or VLOOKUP to link to the data itself regardless of its position.