Referencing data from another sheet by formulating the sheet name by joining data from multiple cells

QuestionBaker

Board Regular
Joined
Apr 12, 2019
Messages
106
Office Version
  1. 365
Platform
  1. Windows
I have multiple sheets where my target data is computed, let the sheet names be as follows
Sheet1, Sheet2, Sheet3, Sheet4 and so on...
I want the data in Sheet0
I can figure out which sheet I should be looking checking 3 cells
1st cell gives the first 3 letters, next cell gives next 2 letters and last cell gives me the number data
To get data from another sheet the following formula comes up in the formula bar
='Sheet1'!C1
Is it possible to construct first part of the formula, and just drag the formula, something like this
=TEXTJOIN("", , "='"A1, A2, A3, "'!", "C", "1")
The above formula just prints the following in the cell
='Sheet1'!C1
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Yes, INDIRECT function is what you are looking for. Let say in A1 = "She", B1 = "et", C1 = "0", D1 = "E1", E1 = "Your formula works"
Try this formula in any cell F1:
Excel Formula:
=INDIRECT("'"&A1&B1&C1&"'!"&D1)

Remember that INDIRECT function is not advisable because it is a nonvolatile function which means, if you write an address in strings such as INDIRECT("'Sheet0'!C1") it won't increment row numbers such as 1,2,3, etc. when you drag which may cause inconsistency in formulas.
 
Upvote 0
Solution
Yes, INDIRECT function is what you are looking for. Let say in A1 = "She", B1 = "et", C1 = "0", D1 = "E1", E1 = "Your formula works"
Try this formula in any cell F1:
Excel Formula:
=INDIRECT("'"&A1&B1&C1&"'!"&D1)

Remember that INDIRECT function is not advisable because it is a nonvolatile function which means, if you write an address in strings such as INDIRECT("'Sheet0'!C1") it won't increment row numbers such as 1,2,3, etc. when you drag which may cause inconsistency in formulas.
It works, only had to make the following changes
Excel Formula:
=INDIRECT("'"&A1&B1&C1&"'!"&D$1&"1")
I ended up storing the letter D in a different cell and 1 as a constant, and carefully using $, I was able to drag the formula
If the cell is always constant, following formula can be used
Excel Formula:
=INDIRECT("'"&A1&B1&C1&"'!"&"D1")
My final formula looks like this
Excel Formula:
=INDIRECT("'"&$A6&" "&$B$2&" "&$B6&"'!"&H$1&"1")
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,416
Members
448,960
Latest member
AKSMITH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top