+ Reply to Thread
Results 1 to 9 of 9

SUM all Mutiple index match results

  1. #1
    Registered User
    Join Date
    06-14-2014
    Posts
    82

    SUM all Mutiple index match results

    Hi All,
    I have created a formula that has multiple index match conditions to satisfy before outputting a result

    =(IFERROR(INDEX(DD2!G$2:$G$5916,MATCH(1,INDEX(($D$5=DD2!$D$2:$D$5916)*($I$3=DD2!$K$2:$K$5916)*(I4=DD2!$L$2:$L$5916),0,1),0)),""))

    Now i want to SUM all the values that meet all of the 3 conditions in the range.

    Currently the formula only outputs the first result that meets all the 3 conditions.

    Badly stuck on this - many thanks in advance.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,786

    Re: SUM all Mutiple index match results

    so you want to addup or count the values

    $D$5=DD2!$D$2:$D$5916
    in the range DD2!$D$2:$D$5916 . you are matching with JUST $D$5
    and then in the range DD2!$K$2:$K$5916 you are matching with JUST $I$3
    so for that perhaps a COUNTIFS() OR a SUMIFS() may work
    BUT then we have
    I4=DD2!$L$2:$L$5916
    and I4 will change as you copy the formula - so I4, I5 , I6 etc
    IF I4 is supposed to be $I$4

    then a SUMIFS() should work
    BUT what range are we summing up ? G?

    SUMIFS(DD2!G$2:$G$5916, DD2!$D$2:$D$5916, $D$5 , DD2!$K$2:$K$5916, $I$3, DD2!$L$2:$L$5916, $I$4 )
    Last edited by etaf; 12-03-2018 at 11:10 AM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    06-14-2014
    Posts
    82

    Re: SUM all Mutiple index match results

    etaf,

    Please note DD2! is a worksheet name

    If the 3 conditions are met then the result is currently 10.

    However if the conditions occur 4 times in the range the result should be 40(10 * 4(conditions are met 4 times))

    The range the values are in is DD2!G$2:$G$5916
    Last edited by jeffreybrown; 12-03-2018 at 12:54 PM. Reason: Removed full quote!

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,786

    Re: SUM all Mutiple index match results

    Please note DD2! is a worksheet name
    yep, i saw that was the case in the code

    so in DD2!G$2:$G$5916, you have a 10 in all the cells on the rows where -

    DD2!$D$2:$D$5916 = $D$5
    DD2!$K$2:$K$5916 = $I$3
    DD2!$L$2:$L$5916 = $I$4

    so you really want to count how many times all those 3 conditions are meet on the same ROW and then multiply it by 10

    would that be the same result you are looking for

    yor index code - brings back a 10 - but only once - as that is what that function is designed to do

  5. #5
    Registered User
    Join Date
    06-14-2014
    Posts
    82

    Re: SUM all Mutiple index match results

    I want to add the 4 values together.
    1st time all conditions are met: Value is 10
    2nd time all conditions are met: Value is 15
    3rd time all conditions are met: Value is 12
    4th time all conditions are met: Value is 30

    Sum total is 67.

    yes the formula is giving correct results but i need the total to be 67 not just 10.

    I am not sure is it possible to sum multiple index match, but thats what i am trying to find out in this post.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,786

    Re: SUM all Mutiple index match results

    doesnt the sumifs work?

    as thats what i thought you meant first time

  7. #7
    Registered User
    Join Date
    06-14-2014
    Posts
    82

    Re: SUM all Mutiple index match results

    Quote Originally Posted by etaf View Post
    doesnt the sumifs work?

    as thats what i thought you meant first time
    I am not sure where to put the SUMIFS into this formula.

    =(IFERROR(INDEX(DD2!G$2:$G$5916,MATCH(1,INDEX(($D$5=DD2!$D$2:$D$5916)*($I$3=DD2!$K$2:$K$5916)*(I4=DD2!$L$2:$L$5916),0,1),0)),""))

  8. #8
    Registered User
    Join Date
    06-14-2014
    Posts
    82

    Re: SUM all Mutiple index match results

    Quote Originally Posted by etaf View Post
    SUMIFS(DD2!G$2:$G$5916, DD2!$D$2:$D$5916, $D$5 , DD2!$K$2:$K$5916, $I$3, DD2!$L$2:$L$5916, $I$4 )
    This worked perfectly - thanks for the great support !

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,786

    Re: SUM all Mutiple index match results

    glad to have helped

+ 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 function when mutiple criteria meets and extract the date
    By FUN2BALA in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-04-2018, 08:38 AM
  2. [SOLVED] How to run reports based on mutiple criteria met? Index match?
    By YUSATrain in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-09-2018, 06:54 PM
  3. [Moved to VBA] INDEX MATCH Mutiple worksheet and returns mutiple row
    By joelimzh in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 11-20-2017, 01:33 AM
  4. [Moved to VBA] INDEX MATCH Mutiple worksheet and returns mutiple row
    By joelimzh in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 11-20-2017, 01:33 AM
  5. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  6. [SOLVED] Formula to Index and Match across mutiple worksheets not working
    By Tryin2Excel in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-20-2016, 12:15 PM
  7. [SOLVED] Lookup with mutiple criteria - Vlookup, Match, index not working
    By PM1985 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-17-2014, 07:10 AM

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