ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Referencing another worksheet via a cell (https://www.excelbanter.com/excel-worksheet-functions/116918-referencing-another-worksheet-via-cell.html)

[email protected]

Referencing another worksheet via a cell
 
I have the following simple formula

=Sheet1!B15

which of course prints the contents of "Sheet1" cell B15.

However what I want is to get which worksheet to grab from, from a
cell. Ie

1
A Sheet1

And then the formula would be something like

A1!B15


Is this possible? I tried a few combinations and couldnt get it
working.

Thanks!!!


Ron de Bruin

Referencing another worksheet via a cell
 
Look in help for the Indirect function

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


--
Regards Ron de Bruin
http://www.rondebruin.nl



wrote in message oups.com...
I have the following simple formula

=Sheet1!B15

which of course prints the contents of "Sheet1" cell B15.

However what I want is to get which worksheet to grab from, from a
cell. Ie

1
A Sheet1

And then the formula would be something like

A1!B15


Is this possible? I tried a few combinations and couldnt get it
working.

Thanks!!!




[email protected]

Referencing another worksheet via a cell
 
Perfect - Thanks alot Ron.

Ironically my searching of the newsgroup had me about to lookup help on
INDIRECT anwyay, just as your post came in! :)



All times are GMT +1. The time now is 04:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com