Add text of one cell to formula in another cell

ford.cunningham

New Member
Joined
Jul 10, 2012
Messages
1
I have look at a lot of different post and can not find one that addresses this issue.
I have a column that each cell in the column is a text value that matches the name of a sheet in the work book.
So A1 has a text value of Sheet1, A2 has a text value of Sheet2, A3 has a text value of Sheet3 and so on. In cell A6 of that sheet i want to put a formula like ='Sheet1'!H11 to reference cell H11 on the sheet in the formula. My issue is i do not want to explicitly have to type in the sheet name for each one. I was hoping to find a way to reference the text value of cell A? in the formula something like =T(A1)!H11. Obviously this creates an error but i hope this explains what i am trying to accomplish.

Any ideas would be appreciated.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I have look at a lot of different post and can not find one that addresses this issue.
I have a column that each cell in the column is a text value that matches the name of a sheet in the work book.
So A1 has a text value of Sheet1, A2 has a text value of Sheet2, A3 has a text value of Sheet3 and so on. In cell A6 of that sheet i want to put a formula like ='Sheet1'!H11 to reference cell H11 on the sheet in the formula. My issue is i do not want to explicitly have to type in the sheet name for each one. I was hoping to find a way to reference the text value of cell A? in the formula something like =T(A1)!H11. Obviously this creates an error but i hope this explains what i am trying to accomplish.

Any ideas would be appreciated.
Like this...

A1 = Sheet1

=INDIRECT("'"&A1&"'!H11")

Which resolves to: ='Sheet1'!H11
 
Upvote 0
I have look at a lot of different post and can not find one that addresses this issue.
I have a column that each cell in the column is a text value that matches the name of a sheet in the work book.
So A1 has a text value of Sheet1, A2 has a text value of Sheet2, A3 has a text value of Sheet3 and so on. In cell A6 of that sheet i want to put a formula like ='Sheet1'!H11 to reference cell H11 on the sheet in the formula. My issue is i do not want to explicitly have to type in the sheet name for each one. I was hoping to find a way to reference the text value of cell A? in the formula something like =T(A1)!H11. Obviously this creates an error but i hope this explains what i am trying to accomplish.

Use the top example, mine was incorrect.
 
Upvote 0
Look into the indirect() function.

Something like:
=indirect("'"&a1&"'!h11")

You might have to play with it a little for your desired result.
 
Upvote 0
Like this...

A1 = Sheet1

=INDIRECT("'"&A1&"'!H11")

Which resolves to: ='Sheet1'!H11

I registered just to say thank you very much! I am not an expert in Excel and was having a problem.
Finally the desired output: =COUNTA(INDIRECT("'"&$B2&"'!A$1:A$100")) :)
 
Upvote 0

Forum statistics

Threads
1,216,494
Messages
6,130,977
Members
449,611
Latest member
Bushra

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