+ Reply to Thread
Results 1 to 8 of 8

INDEX MATCH with 1 conditions within a range

  1. #1
    Registered User
    Join Date
    09-14-2011
    Location
    Lausanne, Switzerland
    MS-Off Ver
    Excel 2013
    Posts
    18

    INDEX MATCH with 1 conditions within a range

    Dear all,

    I am having a little Problem.

    I need a vlookup function with 2 conditions but one of these conditions implies a result within a range.
    In other words, I need to retrieve a Discount % from a list of suppliers However, this % will change depending on how much we purchases.
    Let say supplier A will give you a 10% discount if you spend up to 10'000$, 20% if you spend between 10'001 and 20'000$ and 30% if you spend more than 20'001 and supplier B will give you a 10% discount if you spend up to 100'000$, 20% if you spend between 100'001 and 150'000$...

    Now, let say I have, on another sheet, a list with all my suppliers with how much I spent for each one of them. I need something like an INDEX MATCH that will give me the discount that my supplier should give me. So let say I spent 15'000$ for supplier A, I should get a 20% discount. I could do something "manually" but since I have quite an important list, I need a formula.

    Can anyone help me?

    PLEAAAAAASE

    Thank you.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: INDEX MATCH with 1 conditions within a range

    Please post a small sample file (without confidential information) showing the calculation(s) you require.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: INDEX MATCH with 1 conditions within a range

    Please Login or Register  to view this content.
    One way: set tables (Named ranges) for each supplier .

    Then use VLOOKUP

    =VLOOKUP($I$1,Supplier_A,2,1) where $I$1 is spend with Supplier A

    or

    =VLOOKUP($I$1,INDIRECT(H1),2,1)

    where H1 is named range

  4. #4
    Registered User
    Join Date
    09-14-2011
    Location
    Lausanne, Switzerland
    MS-Off Ver
    Excel 2013
    Posts
    18

    Re: INDEX MATCH with 1 conditions within a range

    Dear John,

    First of all, I did not receive any info as someone answered my post, otherwise I would have given you an answer. Sorry.

    I just checked and it cannot work. Let me explain
    Here is how my list is done (there are about 25/30 suppliers):
    Supplier Condition range Discount
    A 10000 3%
    A 20000 5%
    A 30000 4%
    B 50000 10%
    B 75000 20%
    B 100000 30%
    C 5000 3%
    C 15000 4%
    C 25000 5%
    C 50000 10%

    And in another sheet, I've got the list with the revenue for each supplier
    Supplier Revenue Discount
    A 25000
    B 62500
    C 12000

    I wanted to get the right discount % in Column C of the second sheet. Thus, a vlookup won't work and I cannot make the index match work with one of the condition within a range...

    Can you help?

    Thanks
    Last edited by gerald.lebret; 06-08-2016 at 02:11 AM. Reason: forgot to add information

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: INDEX MATCH with 1 conditions within a range

    For A if purchase is 25000, what is the discount % and how total discount is calculated.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: INDEX MATCH with 1 conditions within a range

    See attached:

    I defined a named range for each Supplier e.g Supplier_A refers to: B1:C3

    I then used the following formula to get discount:

    =VLOOKUP(H1,INDIRECT("Supplier_"&G1),2,1)

    G1= "A", H1=25000 (from your example)

    I think your table (using "A" as an example) should look like this:

    Please Login or Register  to view this content.
    so value up to and including 10000 will get 3%, 10001 -20000 5% and over 20001 4%
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: INDEX MATCH with 1 conditions within a range

    Try this D6=Person, E6=Amount
    ARRAY formula
    =SMALL(IF(($A$2:$A$11=D6)*($B$2:$B$11>=E6),$C$2:$C$11,""),1)
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-14-2011
    Location
    Lausanne, Switzerland
    MS-Off Ver
    Excel 2013
    Posts
    18

    Re: INDEX MATCH with 1 conditions within a range

    Thank you both for your help. Both formulas work great. You guys saved me a lot of work.

    I just have a remark regarding John's formula. Indeed, the formula works great but naming ranges for each supplier quickly becomes a lot of work. Thus, I think I am gonna go for ksrinivasamurthy's formula. Thanks again.

    Gerald

+ 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. [SOLVED] Formula to find 2nd Match using Index and 2 Match conditions
    By Cra5h in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 05-24-2016, 11:52 AM
  2. [SOLVED] Index & Match with more than 2 conditions
    By sanjuss2 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-31-2015, 07:56 AM
  3. Replies: 2
    Last Post: 12-18-2014, 09:52 AM
  4. [SOLVED] Index and Match on 3 conditions
    By shiftyspina in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-17-2013, 11:56 PM
  5. Add Conditions in Index-Match
    By foncesa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2013, 01:21 AM
  6. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  7. INDEX/MATCH/MATCH (2 Conditions for Column #)
    By ron2k_1 in forum Excel General
    Replies: 4
    Last Post: 02-23-2011, 03:11 PM

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