Using Cell Contents as a worksheet reference

Hollywoood

Board Regular
Joined
Aug 11, 2011
Messages
53
Hi all,

I know that if I want to reference another worksheet I use syntax such as... ='Sheet1'!J7

What Id like to do is simply reference a cell to obtain the worksheet name, in this case "Sheet1".

Lets assume I have the alternate worksheet (same workbook) name, same as the example, "Sheet1", in cell A1, I cant simply use "='A1'!J7 to get the same result as ='Sheet1'!J7

Is there anyway to achieve this result?

Thanks in Advance!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
You want to use the Indirect function for that.
In the cell you want to return the value of J7, (from whatever sheet is named in cell A1) you can use this:
Code:
=INDIRECT("'"&A1&"'!J7")

Hope it helps.
 
Upvote 0
You can use INDIRECT but a lot of these will slow down your workbook.

For example, if cell A2 had a value of: Sheet1

=INDIRECT("'"&A2&"'!A4")

would be the same effect as ='Sheet1'!A4
 
Upvote 0
Thanks guys, that works. i'll have to debate whether any reduction in performance warrants the extra bit of ease.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

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