+ Reply to Thread
Results 1 to 7 of 7

vlookup with multiple criteria (SUMPRODUCT or index/match question)

  1. #1
    Registered User
    Join Date
    12-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    vlookup with multiple criteria (SUMPRODUCT or index/match question)

    Sample= Attachment 255675

    I have a sheet where I am trying to find a corresponding bonus percent if two conditions are met. The first condition is the area (Canada or USA) and the other criteria is the number of widgets sold. I have the results, but am unable to develop a formula that will look at the area (col A) and the widgets sold (col B) and provide the bonus payout percent (col C).

    For the purposes of this project, I cannot change the formatting or layout. Any help would be much appreciated. This is the formula I'm using, but it only works if the results are exact... I need the formula to pull the closest (but not over) result.

    =INDEX($C$2:$C$21,SUMPRODUCT(($A$2:$A$21=A26)*($B$2:$B$21=B26)*ROW($C$2:$C$21)),-1)
    this doesn't work either:
    =INDEX(C2:C21,MATCH(1,(A2:A21=A26)*(B2:B21=B26)),-1)


    Canada 130 10
    Canada 133 20
    Canada 136 30
    Canada 139 40
    Canada 142 50
    Canada 145 60
    Canada 148 70
    Canada 151 80
    Canada 154 90
    Canada 157 100

    USA 621 10
    USA 636 20
    USA 651 30
    USA 666 40
    USA 681 50
    USA 696 60
    USA 711 70
    USA 726 80
    USA 741 90
    USA 756 100




    USA 750 <--- should result in 90
    Canada 150 <--- should result in 70
    Last edited by justinhampton81; 08-05-2013 at 10:57 PM.

  2. #2
    Registered User
    Join Date
    12-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: vlookup with multiple criteria (SUMPRODUCT or index/match question)

    Well, here's the sample attachment again.....

    (cant figure out how to delete this comment)
    Attached Files Attached Files
    Last edited by justinhampton81; 08-05-2013 at 07:36 PM.

  3. #3
    Registered User
    Join Date
    12-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: vlookup with multiple criteria (SUMPRODUCT or index/match question)

    this also doesn't work: =INDEX($C$2:$C$21,MATCH(1,($A$2:$A$21=A26)*($B$2:$B$21=B26),0))

    This DOES work if the values are exact though, and adding -1 to the end doesn't do the trick either...

  4. #4
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: vlookup with multiple criteria (SUMPRODUCT or index/match question)

    Try this:

    =MAX(INDEX((A$2:A$21=A26)*(B$2:B$21<=B26)*C$2:C$21,))

  5. #5
    Registered User
    Join Date
    12-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: vlookup with multiple criteria (SUMPRODUCT or index/match question)

    Quote Originally Posted by Teethless mama View Post
    Try this:

    =MAX(INDEX((A$2:A$21=A26)*(B$2:B$21<=B26)*C$2:C$21,))
    Teethless Mama... Thank you!

  6. #6
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: vlookup with multiple criteria (SUMPRODUCT or index/match question)

    One more approach..

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    With Ctrl + Shift + Enter

    Data should be sorted as provided..
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  7. #7
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: vlookup with multiple criteria (SUMPRODUCT or index/match question)

    You're Welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  2. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  3. [SOLVED] Index, match, vlookup with multiple criteria
    By saniamarco in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-29-2012, 07:16 PM
  4. Replies: 5
    Last Post: 04-20-2012, 08:54 AM
  5. [SOLVED] VLOOKUP (multiple criteria) vs. INDEX and MATCH
    By B-dub in forum Excel General
    Replies: 3
    Last Post: 04-13-2012, 06:23 PM

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