Dynamic worksheet references

  • Thread starter Thread starter David Boothe
  • Start date Start date
D

David Boothe

I want to do something like this...

1st worksheet name "targetTab"
2nd worksheet name "sourceTabA"
3rd worksheet name "sourceTabB"



In cell A1 of the sourceTabA worksheet is "APPLES"
In cell A1 of the sourceTabB worksheet is "BANANAS"

I want a formula to put in cell A1 of the targetTab worksheet so that
when I enter "sourceTabA" in cell A2 of the worksheet the formula
returns "APPLES" then when I enter "sourceTabB" in cell A2 the formula
returns "BANANAS".

Can someone help me with this please?


Thanks!
 
Sometimes references to worksheets require that the worksheet name be surrounded
by apostrophes:

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

If they're not needed, they won't hurt.
 

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

Back
Top