Want to use Excel to reference cells in another sheet based on a cell value? In this tutorial, I will explain the whole process step by step. I will basically show two ways of doing so. But before going into the discussion, I want to review your memory with the Excel INDIRECT function.
Download Excel Workbook
First, download the working Excel file that I have used to write this article.
Excel INDIRECT Function
Excel INDIRECT function returns the reference specified by a text string.
The syntax of the INDIRECT function:
- ref_text (required): This argument can take any of the following inputs:
- A cell reference of A1-style. For example, INDIRECT(A1), INDIRECT(B2), INDIRECT(D100), etc.
- An R1C1-style reference. For example, INDIRECT(R9C7), INDIRECT(R2C3), etc.
Notes: To use this reference, you have to activate the R1C1 reference from the File > Options > Excel Options > Formulas > Working with Formulas > Check R1C1 reference style
Use defined names as references. For example, =INDIRECT(“old_value”), =INDIRECT(“new_value”) where old_value = A5 and new_value=B5.
A reference to a cell as a text string. For example, INDIRECT(“A1”), INDIRECT(“D15”)
- a1 (optional):
- If a1 is omitted, or 1, the cell reference is of type A1.
- If it is false, it refers to cell reference R1C1.
In the following image, you can see some uses of the Excel INDIRECT function.
Now let’s discuss how to use Excel to reference a cell in another worksheet based on cell value.
2 Examples for Reference Cell in Another Excel Sheet Based on Cell Value
I will demonstrate how to reference a cell in another Excel sheet using the INDIRECT function with the data validation list for the first method. Then, for the last method, I will use the INDIRECT function with the cell references. For both of these methods, I will also implement the ampersand operator in the formula.
Example 1: Select a Single Cell and Refer to a Whole Range of Cells
I have two Excel worksheets with the names AAPL and MSFT. You can have many. Both worksheets have similar kinds of data. Profit (PCO), EPS, and Growth of two companies for the last 5 years.
What I want is: in the Main worksheet, I will input the company name from a drop-down and all those values (Year, PCO, EPS, and Growth) will be shown in the Main worksheet.
This method can be helpful if you’re maintaining the same kind of data across hundreds of worksheets. It is toilsome to search for every relevant worksheet and then view the data. For simplicity, I am using just two worksheets. I shall use a formula like this:
- For column_reference, I have taken the help of this cell range: C11:G11. This range holds values from A to E. You can extend it as per your necessities. For row_reference, I have taken the help of this cell range: B12:B16. This range holds values from 5 to 13. Extend it as per your necessities.
- This is the real formula that I have used in cell B5 of worksheet Main:
- Now, apply this formula to other cells in the range (B5:E9).
- This is the result you will get:
- This part of the formula (“‘”&$H$6&”‘!”) returns the worksheet name “MSFT!'” (for the above image).
- This part &D$11 refers to cell reference D11 and returns the text value &”B”.
- And this part, &$B12 refers to cell reference B12 and returns the numeric value &5.
- So, this is the overall return from the 3 parts of the formula: “‘MSFT!'”&”B”&5 = “‘MSFT!’B5”
Notes: When a text value and a numeric value are concatenated in Excel, the return is a text value.
- And here is the ultimate return of the formula: INDIRECT(“MSFT!’B5”)
- When I apply the formula to other cells in the range, it works because we have used mixed cell references like D$11 and $B12. When the formula is applied to the cells on the right, only the column references change, for reference D$11. When the formula is applied to the cells on the bottom, only row references change for reference $B12.
Notes: To see how the different parts of an Excel formula work, select that part and press the F9 key. You will see the value of that part of the formula.
- How to Link Excel Sheets to Another Sheet (5 Ways)
- Link Files in Excel (5 Different Approaches)
- How to Link Cell to Another Sheet in Excel (7 Methods)
- Link Sheets in Excel with a Formula (4 Methods)
Example 2: Reference Individual Cell of Another Worksheet
In this example, I am pulling a row from another worksheet based on some cell values (references).
- Firstly, I have created the following dataset.
- Secondly, I have typed this formula in cell C10.
- Thirdly, type another formula in cell C11.
- Then, AutoFill the formula for the cell range C11:C14.
- After that, it will look like this.
I am showing this method as somebody might find it useful in his job. If you want to go to another company for another year, you have to change 5 values. Check out this image now.
I will not explain how this formula works, as these formulas are the same as the above one.
I have shown you how to use Excel to reference cells in another sheet based on a cell value. I hope this helps you out when you want to show data from a lot of worksheets in the main worksheet. Do you use any better methods? Let me know in the comment box.
- How to Link Data from One Spreadsheet to Another in Excel
- Reference from Another Excel Workbook without Opening (5 Examples)
- How to Link Sheets to a Master Sheet in Excel (5 Ways)
- Transfer Specific Data from One Worksheet to Another for Reports
- How to Link Two Sheets in Excel (3 Ways)
- Reference Worksheet Name in Formula in Excel (3 Easy Ways)