+ Reply to Thread
Results 1 to 3 of 3

variable sheet reference

  1. #1
    Registered User
    Join Date
    05-17-2010
    Location
    NJ
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    2

    variable sheet reference

    Have a file with several worksheets. Let's say the sheet names are AAA, BBB, CCC, DDD. I have another sheet (let's say Sheet1) that I want to add charts from data on one of these sheets, depending upon a drop down choice of the sheet name. So I would have a drop down choice of AAA, BBB, CCC, DDD. When I choose one of these, I would like the chart to reference the data on that particular sheet.

    Knowing that the reference to cell W67 on sheet BBB would be = BBB!W67, is there any way to make the BBB reference in that formula variable? So if I had cell A1 in Sheet1 as my drop down selection and BBB was selected now as the value in cell A1, is there a certain syntax to the formula to that BBB!W7 can be referenced to the sheet selected in A1?

    Make sense? Possible? How?

    Many thanks.
    Last edited by aosnatca; 05-19-2010 at 03:13 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: variable sheet reference

    Try

    =INDIRECT("'"&A1&"'!W7")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-17-2010
    Location
    NJ
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    2

    Re: variable sheet reference

    Thanks. That did the trick!

+ 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