+ Reply to Thread
Results 1 to 4 of 4

Index Match Return Value based on two variables and number range

  1. #1
    Registered User
    Join Date
    09-29-2008
    Location
    england
    Posts
    40

    Index Match Return Value based on two variables and number range

    Hi, I am trying to get a result from two variables.
    Variable 1 is a name, say Ian. Variable two is a number (number of sales).
    If Ian hits a number of sales, then a certain commission value will be returned.

    If Ian hits 999 sales, he gets a different commission to 1000 - there are various stepped targets like that.
    To clarify on the sales, the steps will be broad, say 100, 250, 500, 750, 1000. However the sales may be exact like 359 - should return the commission for 250. 748 should return commission for 500 - only if it meets or exceeds 750 would it hit the 750 commission.
    Different people have different sales targets and commissions.

    The commission value will change for each person depending on their respective sales target. I want to see that in the list of names.

    Can anyone help based on the information I have set?

    I've tried to use index match but not getting it right so far.
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Index Match Return Value based on two variables and number range

    B7=LOOKUP(2,1/(($J$3:$J$32=$A7)*($K$3:$K$32<=$B$4)),$L$3:$L$32)
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Index Match Return Value based on two variables and number range

    or can try
    =LOOKUP($B$4,OFFSET($K$3,MATCH($A7,$J$3:$J$32,0)-1,,COUNTIF($J$3:$J$32,$A$7),2))

  4. #4
    Registered User
    Join Date
    09-29-2008
    Location
    england
    Posts
    40

    Re: Index Match Return Value based on two variables and number range

    Magic, this works - thanks!

+ 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. return multiple values based on a repeating number, Index and Match?
    By damagedbodies in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-28-2017, 10:42 AM
  2. [SOLVED] Vlookup/index/match to return maximum number
    By dave_100 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2016, 06:40 PM
  3. Index match to return a second value from different sheet, same cell number?
    By realrookie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-16-2016, 05:25 PM
  4. index match in range based on id number
    By jhuvba in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-31-2015, 03:52 PM
  5. Index match to return a range
    By chococ in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-20-2015, 08:50 AM
  6. [SOLVED] INDEX MATCH to return the row number?
    By cabroncito29 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-01-2015, 01:17 PM
  7. INDEX MATCH - can it return the row number?
    By cabroncito29 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2015, 04:33 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