+ Reply to Thread
Results 1 to 6 of 6

Index Match on 3 criteria

  1. #1
    Registered User
    Join Date
    02-27-2012
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    65

    Index Match on 3 criteria

    i am trying to get values from data after looking & matching on 3 criteria, i am trying with his formula but cant calculate as desired. There is something wrong in the formula which i couldn't find out.

    =IFERROR((INDEX('rate sheet'!$C$2:$E$73,MATCH($A2,'rate sheet'!$A$2:$A$73,0)+MATCH($C2,INDEX('rate sheet'!$B$2:$B$73,MATCH($A2,'rate sheet'!$A$2:$A$73,0)):INDEX('rate sheet'!$B$2:$B$73,MATCH($A2,'rate sheet'!$A$2:$A$73)))-1,MATCH($B2,'rate sheet'!$C$1:$E$1,0))/60*D2),"0")

    Kindly see the attached file & help me out.

    thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Index Match on 3 criteria

    Here, try this:

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


    You can add more critera in rate sheet 1st row to the right and down in first column and it will work.
    Attached Files Attached Files

  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,209

    Re: Index Match on 3 criteria

    Try ..

    SUMPRODUCT(('rate sheet'!$C$2:$E$73)*('rate sheet'!$A$2:$A$73=$A2)*('rate sheet'!$B$2:$B$73=$C2)*('rate sheet'!$C$1:$E$1=$B2))/60*$D2

    non-array formula

    or (as per your posting)

    =IFERROR((INDEX('rate sheet'!$C$2:$E$73,MATCH(1,('rate sheet'!$A$2:$A$73=$A2)*('rate sheet'!$B$2:$B$73=$C2),0),MATCH($B2,'rate sheet'!$C$1:$E$1,0))/60*$D2),"")

    With Ctrl+Shift+Enter

    Avoid using OFFSET as per zbor (Very inefficient - advice from the gurus .. not me!)

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Index Match on 3 criteria

    Quote Originally Posted by JohnTopley View Post
    Avoid using OFFSET as per zbor (Very inefficient - advice from the gurus .. not me!)
    True John.
    On the other hand nothing slower than Sumproduct

  5. #5
    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,209

    Re: Index Match on 3 criteria

    We can't win!

    In the end it really depends on the data volumes: if we don't get a "nanosecond" response we complain about the slowness of the calculations!


  6. #6
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,294

    Re: Index Match on 3 criteria

    The result is the same.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Czeslaw; 09-05-2015 at 12:35 PM.

+ 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] Index Match with Multiple Criteria Using Same Criteria Column
    By rominjn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-05-2015, 11:34 AM
  2. [SOLVED] Combining 3 Formulas: Return all Names that Match Criteria Using Index/Match
    By bchilme in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-29-2014, 09:28 AM
  3. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  4. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  5. Index Match using two criteria to return on of criteria values
    By RogueLeader in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-17-2014, 09:50 AM
  6. Index and Match with Two Criteria, and date Match Type is Less Than
    By ExcelQuestion in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-11-2013, 08:57 AM
  7. Index Match based on 2 Criteria only returning 1 match
    By stsanders22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2012, 11:26 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