+ Reply to Thread
Results 1 to 4 of 4

Lookup multiple conditions to return one result

  1. #1
    Registered User
    Join Date
    01-12-2009
    Location
    Frisco, Texas
    MS-Off Ver
    Excel 2004 for Mac
    Posts
    22

    Lookup multiple conditions to return one result

    I am preparing an "automated" order form. I have a list of products (ten) in a pull down list, a list of options (3) in a pull down list and a list of the pricing.

    So, If PRODUCT_A with OPTION_A, then PRICE = $X.
    If PRODUCT_A with OPTION_B, then PRICE = $Y.
    If PRODUCT_B with OPTION_C, then PRICE = $Z.

    etc.

    I want the user to select the product, then the option, and have the correct price "pre-fill" the cell.

    Any ideas? Thanks.
    Last edited by cchrisj; 09-28-2009 at 06:35 PM.

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

    Re: VLookUp?

    Try

    =Index(Z1:Z100,Match(1,Index((X1:X100=A1)*(Y1:Y100=B1),0),0))

    where table is in X1:Z100 and drop downs are in A1 and B1....
    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
    01-12-2009
    Location
    Frisco, Texas
    MS-Off Ver
    Excel 2004 for Mac
    Posts
    22

    Re: Lookup multiple conditions to return one result

    Hmmm. Can't seem to get it to work.

    I've attached my spreadsheet. The "print size" and "media" are the two criteria that detemine the pricing (see table to right). I have pasted your formula in L23 (highlighted).

    Attached Files Attached Files

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

    Re: Lookup multiple conditions to return one result

    Try:

    =INDEX(N6:N18,MATCH(1,INDEX((L6:L18=E16)*(M6:M18=F16),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