+ Reply to Thread
Results 1 to 2 of 2

Using cell text to reference worksheet

  1. #1
    Registered User
    Join Date
    04-04-2009
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    1

    Using cell text to reference worksheet

    I can't seem to find this anywhere. I've dumbed down this example.

    A1 New York
    B1 Boston
    C1 Kansas City


    Each of those cities are a cell on my main worksheet but they are also the name of a worksheet. I want the data from each worksheet's E4 cell to be displayed in the 2nd column of the main worksheet.

    I could manually go in and type or mouse through to get =Boston!E4 which is what I've been doing but I would have to do this potentially thousands of times (plus, I would like to avoid making mistakes).

    Is there a way to make a formula that uses the text from the first column and creates a formula that would load each city's worksheet's E4 without manually doing it every time?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Using cell text to reference worksheet

    Try this:

    =INDIRECT("'"&A1&"'!E4")
    ..and copy across.

    Unless you misstated the cells as A1, B1, C1 and meant A1, A2, A3. In that case, put that formula in B1 and copy DOWN.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1