Nesting a sheet name reference within a cell reference???

G

Guest

I'm referencing a cell in another worksheet in my workbook, but I want to be
able to define which sheet is referenced in the formula by choosing the sheet
name from another cell. Let's say cell A1 in Sheet1 of the workbook has the
value "Sheet 2" and I want cell A2 in Sheet 1 to reference cell B15 in Sheet
2. Instead of my formula being ='Sheet 2'!B15, I would like the sheet name
to be a separate reference. In other words, I want the formula to be:
='[reference Sheet 1 cell A1 to get the tab name]'!B15.

This way I can create a list with a dropdown box, and change the sheet name
to bring up numbers from different, identically formatted, sheets.

Anyone know how to do this?
 
G

Guest

Many thanks!
B

bj said:
try
=indirect("'"&A1&"'!B15")

Broyston said:
I'm referencing a cell in another worksheet in my workbook, but I want to be
able to define which sheet is referenced in the formula by choosing the sheet
name from another cell. Let's say cell A1 in Sheet1 of the workbook has the
value "Sheet 2" and I want cell A2 in Sheet 1 to reference cell B15 in Sheet
2. Instead of my formula being ='Sheet 2'!B15, I would like the sheet name
to be a separate reference. In other words, I want the formula to be:
='[reference Sheet 1 cell A1 to get the tab name]'!B15.

This way I can create a list with a dropdown box, and change the sheet name
to bring up numbers from different, identically formatted, sheets.

Anyone know how to do this?
 
R

RagDyer

One way:

=INDIRECT("'"&$A$1&"'!B"&ROW(A15))

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================
 
L

LeeKru

This is the exact issue I am trying to resolve but the examples you provided
are only returning a #REF! result for me. What am I missing? I must admit I
don't understand the details of your example. I understand fundimentally
what "INDIRECT" is doing but I believe the first portion of your example is
properly returning the value of the cell on Sheet 1 that I am referencing (in
the example above, the formula seems to properly return "Sheet 2"). However,
it does not seem to understand the cell reference from 'Sheet 2' to return
the value I have in B15. For this example let's just say the value of 'Sheet
2'B15! is "Dog". Can you help? Thank you!!
 
L

LeeKru

Please disregard my last note.... I had the wrong value in my reference
cell... rookie mistake. Thanks anyway.
 
I

InventablesPhil

I have a simular problem that I can not resolve. I want to reference a cell
in another workbook. So if cell A1 contains the name of a worksheet in
another workbook. So I would like it reference ,,say cell B2 in "sheet2" of
another workbook.

e.g.

If Workbook 1/Sheet 1/Cell A1 contained "Sheet 2" and
Workbook 2/Sheet 2/Cell B2 contained "Find Me"

How can I from Workbook 2/Sheet 1 Cell C2 "find" the text "Find Me"?

I have tried =INDRECT("[Workbook 1.xls]'A1'!B2") and several other
variations without success.
 

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