Using cell as worksheet name to return data on that sheet

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

Guest

I have a column that contains the names of all the worksheets in the
workbook. I would like to fill the next column with values from each of
those worksheets. Is there a good way OR is there a way I can put a formula
in column B that uses column A as the worksheet name?
 
Try this:

A1 = Sheet 2

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

That will return the value from Sheet 2 cell A1.

Biff
 
Look in Help for the INDIRECT() function

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

|I have a column that contains the names of all the worksheets in the
| workbook. I would like to fill the next column with values from each of
| those worksheets. Is there a good way OR is there a way I can put a formula
| in column B that uses column A as the worksheet name?
 
This worked perfect and saved me a ton of time, thank you so much for your
time and efforts, and your creativity.
 
You're welcome. Thanks for the feedback!

Biff

Rookie_User said:
This worked perfect and saved me a ton of time, thank you so much for your
time and efforts, and your creativity.
 

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