+ Reply to Thread
Results 1 to 6 of 6

Double lookup from two dimensional table

  1. #1
    Registered User
    Join Date
    04-02-2009
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Double lookup from two dimensional table

    Hello all,
    I am trying to get a cell in my spreadsheet to look up a value based on two values. I have a dropdown list that lists the worksheets in the workbook, and each worksheet has a table with width measurements for the columns and height measurements for the rows. I have a function that is mostly working, it calls the data from the proper worksheet, but it rounds the measurement values down, and I need it to round to the next highest value on the table. For instance, the measurement may be 55" x 55" in, but the table has values for 54" and 60". The current formula rounds down to the 54" measurement, but I need it to round up to the 60". I have attached what I have so far with further notes and cells highlighted, so hopefully that will help. Thanks for any help anyone is able to give.
    Attached Files Attached Files
    Last edited by NBVC; 04-03-2009 at 09:15 AM.

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

    Re: Double lookup from two dimensional table

    It looks like the H/W sizes for each material are 6" apart...so perhaps we can use that fact along with the Ceiling() function to always go to the next size (unless of course the exact size is selected)...

    Try:

    Please Login or Register  to view this content.
    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
    04-02-2009
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Double lookup from two dimensional table

    Thanks for the quick reply, that works well, however, sometimes the difference between the sizes may vary...so, with that being said, any ideas? Thanks again, I really appreciate it.

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

    Re: Double lookup from two dimensional table

    ....I knew it was to easy to be true.....

    Try:

    Please Login or Register  to view this content.
    this formula must be confirmed with CTRL+SHIFT+ENTER not just ENTER and you will see { } brackets appear around it... then copy it down.

  5. #5
    Registered User
    Join Date
    04-02-2009
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Double lookup from two dimensional table

    Thank you so much! That works perfectly! That is exactly what I needed.

  6. #6
    Registered User
    Join Date
    04-02-2009
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Double lookup from two dimensional table

    OK, I am visiting this problem again. I would now like to turn this into a custom function. How would I go about doing that?

+ 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