Solved

Excel sheet name from a cell value

Posted on 2013-12-03
4
629 Views
Last Modified: 2013-12-03
I have a workbook that includes several worksheets that are each named with a unique identifier.

One of the sheets is my summary page that references values form each of the sheets. Because it is a pain to write out the name of the sheet each time I copy a formula I would like to grap the name of the worksheet from a value.

for example something like this is in cell B3

  ='B2'!B3

so if B2 on my current sheet is 'cjs123' then the formula should go to the sheet called cjs123 and retrieve the value in cell B3.

How can I create this functionality?
0
Comment
Question by:lvmllc
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
nutsch earned 200 total points
Comment Utility
Use the indirect formula, as in:
=INDIRECT(B2 & "!B3)

or, if you have spaces in your tab names, put single quotes surrounded by double quotes.
=INDIRECT("'" & B2 & "'!B3)
0
 
LVL 43

Assisted Solution

by:Saqib Husain, Syed
Saqib Husain, Syed earned 100 total points
Comment Utility
=indirect("'"&b2&"'!b3")
0
 
LVL 39

Expert Comment

by:nutsch
Comment Utility
If you want to have the B3 dynamic depending on where you place the cell, you can use the address() function, as in:

=indirect("'"&b2&"'!" & address(row(),column()))

Thomas
0
 

Author Comment

by:lvmllc
Comment Utility
Thomas, I think your first response second example was missing a " behind b3. otherwise both yours and ssaqibh got me on the right track.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now