Use worksheet name in one cell as part of reference in other cells

S

Steamer

I want to specify a worksheet name in one cell then use that name as part of
the reference address in a number of other cells.

Or, to put it another way, I want a number of cells to refer to various
cells in another worksheet, where I specify the name of that worksheet by
typing it into a single cell.

Is this possible in Excel?
 
N

NBVC

Yes, using INDIRECT function..

e.g.

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

This will extract the value in B1 on the sheet shown by name in cell
A1.
 
J

Jacob Skaria

Use INDIRECT()

A1 = Sheet1
B1 = "Test"
In C1
=INDIRECT("'"&A1&"'!B1)
will refer Sheet1!B1

If this post helps click Yes
 
T

T. Valko

What are the odds that of the 2 replies so far both use the *exact* same
*incorrect* formula!

Try this:

A1 = some sheet name like Sheet2

To refer to cell A1 on Sheet2:

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

NBVC

T. Valko;398180 said:
What are the odds that of the 2 replies so far both use the *exact*
same
*incorrect* formula!

Try this:

A1 = some sheet name like Sheet2

To refer to cell A1 on Sheet2:

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

Yes, thanks for pointing that out Biff... I did forget the last closing
double-quote...
 
J

Jacob Skaria

Oops; missed out the quotes

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

If this post helps click Yes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top