+ Reply to Thread
Results 1 to 4 of 4

referencing worksheet by text in cell

  1. #1
    Registered User
    Join Date
    03-08-2005
    Posts
    19

    referencing worksheet by text in cell

    I am trying to find a simple way to reference a worksheet by text entered into a cell. In this example I have multiple worksheets named after different stocks supporting a presentation sheet, which will occasionally reference cells e.g. =MSFT!B2. I would like to make the formula change with text entry into a cell in the presentation sheet e.g. if A306 contains text MSFT, formula will look on worksheet MSFT, but if text changes to CSCO, formula will reference worksheet CSCO. Any help would be greatly appreciated.
    Chas

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try...

    =INDIRECT("'"&A306&"'!B2")

    Hope this helps!

  3. #3
    Registered User
    Join Date
    03-08-2005
    Posts
    19
    That works perfectly

    Now is there an easy way to modify the formula so that when you drag it down it reads:

    INDIRECT("'"&A306&"'!B2")
    INDIRECT("'"&A306&"'!B3")

    Thanks
    Chas

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try...

    =INDIRECT("'"&$A$306&"'!"&CELL("address",B2))

    Hope this helps!

+ 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