+ Reply to Thread
Results 1 to 9 of 9

lookups choosing tables

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    lookups choosing tables

    here is what I need to do...
    I can do a basic two way look up but I have 30 tables all with different products.
    If I create a drop down list with all the tables listed how do I link the drop down to the table look up formula?
    All my table have a width row and a height column.
    I need users to select the drop down product then enter the width and the height needed to supply the result cell.
    Thanks in advance
    Last edited by mojobaabby; 08-18-2010 at 02:44 PM.
    Southwest Granite & Glass
    Quality, It's what we do
    http://www.swgg.ca

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

    Re: lookups

    Assuming you named each table from top left corner where row headers and column headers intersect to bottom right corner of each table...

    Also, Assuming your drop down list selection is in A2 and your vertical value input is in A3 and your horizontal value input is in A4, then try formula:

    =INDEX(INDIRECT(A2),MATCH(A3,INDEX(INDIRECT(A2),0,1),0),MATCH(A4,INDEX(INDIRECT(A2),1,0),0))
    Attached Files Attached Files
    Last edited by NBVC; 08-17-2010 at 09:41 PM.
    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
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: lookups choosing tables

    Ok, I tried the formula (thanks again) using a small table and it worked perfectly with all of my other cells and formulas...I dropped in one of the actual tables (see attached) and no go.
    Something I did wrong?
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: lookups choosing tables

    Working now, those darn commas

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

    Re: lookups choosing tables

    Please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  6. #6
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: lookups choosing tables

    OK ONE MORE ISSUE BECAUSE THERE ARE MULTIPLE LINES ALL NOW NEEDING VALIDATION HOW DO I STOP THE ERROR WHEN THERE IS ONLY ONE ROW BEING USED??
    HOPE THIS EXPLAINS AND i HAVE ATTACHED THE EXAMPLE WITH ONE LINE USED
    THANKS IN ADVANCE
    Attached Files Attached Files
    Last edited by mojobaabby; 08-18-2010 at 01:11 PM.

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

    Re: lookups choosing tables

    Please do not use all caps... it is conceived as shouting!

    Also, what am I looking at. Please walk me through the specific issue.

  8. #8
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: lookups choosing tables

    ok here goes best I can
    all rows may or may not be used. If i use the first row only to enter information the formulas that I am using to some up and calculate discounts reads the lack of information in the remaining rows as an error and will not function.
    I guess what i need is for the remaining calculations to ignore the error, or to have the rows not used to show a zero so the balance of my calculations will work?
    Hope that helps

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

    Re: lookups choosing tables

    Perhaps:

    =IF(COUNTBLANK(E7:F7)=2,0,INDEX(INDIRECT(B7),MATCH(F7,INDEX(INDIRECT(B7),0,1),0),MATCH(E7,INDEX(INDIRECT(B7),1,0),0)))

+ 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