+ Reply to Thread
Results 1 to 3 of 3

Lookup/find value with multiple criteria from multiple named ranges/tables

  1. #1
    Registered User
    Join Date
    07-15-2011
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    6

    Lookup/find value with multiple criteria from multiple named ranges/tables

    example.xlsx

    Hi,

    I have set of around 20 different sized tables (in one sheet), from which i would like to automatically look up pricing info. Each table refers to a different product.

    Within each table there are 3 different criteria.

    - the first criteria is a quantity range to select the column within the table. The ranges differ in each table.
    (e.g. if you want to order between 0-49 Apples, say 25, the price will be in column D and in the Apples table, etc).

    - the next 2 criteria select the properties of the product and so the rows within the table.

    In the attached worksheet i have set up 2 examples with the criteria and the values they should look up (highlighted).

    Any help with this would be greatly appreciated (I am not against changing the format of the tables - i didn't set them up this way in the first place!). I know methods for the row selection, but the column selection (solving the range problem) and table selection are giving me issues.

    regards,
    Shahil

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

    Re: Lookup/find value with multiple criteria from multiple named ranges/tables

    Use named ranges to make this simple.

    1) Select the cells D16:J21 (the values) and name these cells "Apple" by typing into the Name box

    http://screencast.com/t/Aqyyp4fetiK

    2) Change the top row to indicate just the START of each tier for Qty.
    3) Select the Qty cells and name these cells "AppleQty" by typing into the Name box

    http://screencast.com/t/X3FuUjLxpq1

    4) Select C16:C21 (the types) and name these cells "AppleType" by typing into the Name box

    http://screencast.com/t/5UodEnu7xp

    5) Now put this formula in B2:

    =INDEX(INDIRECT(C3), MATCH(C4&" "&C5, INDIRECT(C3&"Type"), 0), MATCH(C6, INDIRECT(C3&"Qty"), 1))


    6) Repeat that process with the ORANGE section, then just copy B2 and paste into I2.

    http://screencast.com/t/3J4D5kD9Fp1d
    _________________
    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!)

  3. #3
    Registered User
    Join Date
    07-15-2011
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Lookup/find value with multiple criteria from multiple named ranges/tables

    Thanks for the reply Jerry!

    Works perfectly. Now to set about naming all the ranges!

+ 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