Specifiying the worksheet name in a cell

  • Thread starter Thread starter adiss
  • Start date Start date
A

adiss

I have several different xls with multiple worksheets in each I have
written the report that generates the data but I must manually go into
each field and change the worksheet reference each time the sheet
changes.

Could I have an additional colum which specifies which sheet to pull
data from? Then in each function sepecifiying how to create the value
needed the worksheet referance updates too.

Let me know if I need to clarify.
 
You can use

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

which pulls the value in H10 from the sheet specified in A1.

--
HTH

Bob Phillips

(remove nothere from 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