+ Reply to Thread
Results 1 to 3 of 3

Referencing to tables

  1. #1
    Registered User
    Join Date
    03-05-2009
    Location
    Oregon
    MS-Off Ver
    Excel 2003
    Posts
    1

    Referencing to tables

    ok, I have an interesting dilema. I'm not even sure what forum to post it in, but here goes. I want to use a drop down box on Sheet 1 to select from a list of tables on sheet 5. Information from the selected table will then be used in simple math formulas in various other cells on different pages to give my final output values. I've seen information about vlookup and hlookup and index/offset and match. The problem is that the info I need to reference isn't in the same column or row as the table title, which is what needs to go on the drop down list.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Referencing to tables

    You will need to use INDIRECT -- see XL Help for more info or run a Search on the Board. Beware that INDIRECT is Volatile.

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

    Re: Referencing to tables

    If you "name" your tables (the data portion) with the same names as the choices in the dropbox, you can use an INDIRECT formula to pinpoint the tables by replacing the "range" parameter with the INDIRECT reference to your dropbox cell.

    If the cell is in A1, and the choices were

    Table1
    Table2
    Table3
    Table4

    And your normal formula read something like:

    =INDEX(Sheet5!B2:H20,MATCH(etc....


    Then you could reference the cell A1 on sheet1 indirectly like so:

    =INDEX(INDIRECT(Sheet1!A1),MATCH(etc....

    If you had chosen Table2 from the dropbox, this would make the formula evaluate to:

    =INDEX(Table2,MATCH(etc....

    ...and if that represented a named range of cells on Sheet5, you're in business.

    Will this help?
    _________________
    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)

Tags for this Thread

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