+ Reply to Thread
Results 1 to 3 of 3

dynamically referencing to another worksheet

Hybrid View

  1. #1
    D23
    Guest

    dynamically referencing to another worksheet

    Hi all,

    I'm relatively new to Excel but I'm working on a spreadsheet for work.
    Let's say I have a workbook with a separate tab (worksheet) called
    "exam1". On the first worksheet I can reference to a cell (let's say
    A2) in the other by using "=exam1!A2".

    Here's what I need to do though. On the first worksheet in column A, I
    will have a list of all the tabs that will eventually be included in
    the spreadsheet (e.x. A1 = exam1, A2 = exam2, A3 = exam3, etc.). Is
    there a way I can modify the code from the first worksheet above
    (=exam1!A2) to be dynamic? Something like "=A1!A2" is what I had in
    mind, but that syntax doesn't work. Anyone have any ideas?

    Thanks in advance.


  2. #2
    Don Guillett
    Guest

    Re: dynamically referencing to another worksheet

    Have a look in the help index for INDIRECT

    --
    Don Guillett
    SalesAid Software
    dguillett1@austin.rr.com
    "D23" <Destroyer23@gmail.com> wrote in message
    news:1151068220.955903.208590@r2g2000cwb.googlegroups.com...
    > Hi all,
    >
    > I'm relatively new to Excel but I'm working on a spreadsheet for work.
    > Let's say I have a workbook with a separate tab (worksheet) called
    > "exam1". On the first worksheet I can reference to a cell (let's say
    > A2) in the other by using "=exam1!A2".
    >
    > Here's what I need to do though. On the first worksheet in column A, I
    > will have a list of all the tabs that will eventually be included in
    > the spreadsheet (e.x. A1 = exam1, A2 = exam2, A3 = exam3, etc.). Is
    > there a way I can modify the code from the first worksheet above
    > (=exam1!A2) to be dynamic? Something like "=A1!A2" is what I had in
    > mind, but that syntax doesn't work. Anyone have any ideas?
    >
    > Thanks in advance.
    >




  3. #3
    RagDyeR
    Guest

    Re: dynamically referencing to another worksheet

    Try this:

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

    and copy down as needed.
    --

    HTH,

    RD
    =====================================================
    Please keep all correspondence within the Group, so all may benefit!
    =====================================================

    "D23" <Destroyer23@gmail.com> wrote in message
    news:1151068220.955903.208590@r2g2000cwb.googlegroups.com...
    Hi all,

    I'm relatively new to Excel but I'm working on a spreadsheet for work.
    Let's say I have a workbook with a separate tab (worksheet) called
    "exam1". On the first worksheet I can reference to a cell (let's say
    A2) in the other by using "=exam1!A2".

    Here's what I need to do though. On the first worksheet in column A, I
    will have a list of all the tabs that will eventually be included in
    the spreadsheet (e.x. A1 = exam1, A2 = exam2, A3 = exam3, etc.). Is
    there a way I can modify the code from the first worksheet above
    (=exam1!A2) to be dynamic? Something like "=A1!A2" is what I had in
    mind, but that syntax doesn't work. Anyone have any ideas?

    Thanks in advance.



+ 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