+ Reply to Thread
Results 1 to 3 of 3

Index/Match Function for Finding Result in between Two Values with Two Criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    05-02-2014
    Location
    London, ON
    MS-Off Ver
    Excel 2010
    Posts
    2

    Index/Match Function for Finding Result in between Two Values with Two Criteria

    Tried to run a large function but ran into 64 max nested IF statements. I read that i needed to make a table and run an Index/Match type formula. I could figure out how to run with one min/max but couldn't figure out how to run with two.

    What I'm looking for is if Value1 (Type1) falls between MinType1 and MaxType1 and Value2 (Type2) falls between MinType2 and MaxType2, it will give you the result (Amount) from that line. Ex Data is provided below the chart.

    Chart:
    MinType1 MaxType2 MinType2 Max Type2 Amount
    100 200 1000 2000 $100
    100 200 2001 3000 $200
    201 300 1000 2000 $300
    201 300 2001 3000 $400

    Data:
    Type1: 150
    Type2: 1500
    Result: $100

    Might be easier to read in attachment.
    Attached Files Attached Files
    Last edited by KyleElliott; 06-08-2017 at 10:53 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Index/Match Function for Finding Result in between Two Values with Two Criteria

    Consider re-arranging your data in a matrix, then you can use an Index/Match combination.

    =INDEX($H$4:$I$5,MATCH(A10,$G$4:$G$5,1),MATCH(B10,$H$3:$I$3,1))

    2017-06-09_16-48-39.png

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Index/Match Function for Finding Result in between Two Values with Two Criteria

    Try

    C10
    Formula: copy to clipboard
    =SUM(IF((((A10<$B$2:$B$5)*(B10<$D$2:$D$5))*((A10>$A$2:$A$5)*(B10>$C$2:$C$5))),$E$2:$E$5))


    Drag down!!

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

+ 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. Replies: 1
    Last Post: 08-11-2016, 02:18 AM
  2. [SOLVED] Index/Match Multiple Criteria only Finds First Result
    By DomSza in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-12-2015, 08:57 AM
  3. Index-Match function not finding matches with newly pasted values
    By murp5972 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-04-2015, 03:44 PM
  4. [SOLVED] Multiple criteria for Index and Match with if(and( & if(or( result #value?
    By v.rodgers in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-08-2015, 12:52 AM
  5. [SOLVED] index and match function result from three way look up
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-15-2013, 03:32 AM
  6. SOS:Return multiple values against multi criteria match and index function
    By nitesh_inin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-26-2012, 05:45 PM
  7. Replies: 7
    Last Post: 06-09-2011, 05:25 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