+ Reply to Thread
Results 1 to 6 of 6

Controlling formula ranges with DropDown Menu

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    34

    Question Controlling formula ranges with DropDown Menu

    Hey guys,

    I've got lots data on different tabs. For complicated reasons, I have to have one week of data on each tab. Each tab has identical structure, columns, rows etc. The tabs are W1, W2, W3, etc.

    I've got a ComboBox controlling a cell and outputting a number. E.g. 1 for Week 1.

    Example:
    Please Login or Register  to view this content.
    What I want is a master Week Tab (same structure) which looks at the ComboBox output and if it's 1, It gets ='W1'!A9, if it's 2 it gets, ='W2'!A9, if it's 3 it gets ='W3'!A9 etc.

    What formula do I need to put to dynamically change the tab reference?

    Let me know if you need more information.

    Cheers!

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Controlling formula ranges with DropDown Menu

    Try something like this :
    (assuming the cell to get the sheet # from is A1)
    =INDIRECT("'W"&A1&"'!A9")

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Controlling formula ranges with DropDown Menu

    Awesome Dred. It worked.

    The next step, however, is if I drag that formula down one cell, I want it to bring in A10 from W1 tab. If I drag it across one cell, I want it to bring in B9 from W1 tab. Is this possible?

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Controlling formula ranges with DropDown Menu

    Okay, thats a little more complicated, and need to know if you want to use the same dropdown,but as I expected that may be the next question , I did think about it..
    (This assumes you are starting the table transfer in A2, if your starting it somewhere else, change the $A$2 and A2 references in the rows() & columns() functions to the starting cell):
    Revised (3 times!!.... )
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope this helps

    EDIT-
    Missed a ')'
    Edit2-
    Missed the column reference as being column 1, see revised again
    AND MISSED the Absolute referencing.($)....grr...
    Last edited by dredwolf; 03-19-2013 at 09:55 PM.

  5. #5
    Registered User
    Join Date
    10-25-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Controlling formula ranges with DropDown Menu

    Nailed IT! Thanks dred

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Controlling formula ranges with DropDown Menu

    You are welcome

    Please remember to mark the thread as solved if you are satisfied with your solution :
    To mark thread "Solved", go to the top of the thread,click "Thread Tools",click "Mark as Solved"

+ 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