Cell reference - for the sheet name, can I use a variable?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

For example, I know I can refer to another worksheet in a cell formula as such:
=Data!C6

However, Is there a way to refer to the name of the sheet based on the name
of the sheet being a variable (ie. the contents of another cell?)

THanks

Matt Lawson
 
Thanks again for the help Frank!

I get a "formula you typed contains an error".. I did replace A1 with the
correct cell. I looked up the reference in help, and I'm not sure how you are
using the INDIRECT function.

Thanks

Matt Lawson
 
Matt,

It should be

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

not the single quotes as well as the doubles.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Hi Bob
thanks for the correction :-)


Bob Phillips said:
Matt,

It should be

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

not the single quotes as well as the doubles.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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