+ Reply to Thread
Results 1 to 4 of 4

SumIf Index Match - 4 conditions (failing miserably! :(

  1. #1
    Registered User
    Join Date
    06-21-2014
    Location
    Sydney
    MS-Off Ver
    2011
    Posts
    92

    SumIf Index Match - 4 conditions (failing miserably! :(

    All

    Does anyone know how I could build another condition into the following:

    =SUMIF(MATRIX!M:M,C12,INDEX(MATRIX!BD:CN,0,MATCH(D3&D4,MATRIX!BD:CN&MATRIX!BD:CN,0)))

    It works for 3 conditions

    Condition 1. Built into the SumIf (column value)
    Condition 2&3: Built into the Match (both matches across rows)

    Simply I need to pick a column to sum if 4 cells have specific values.

    Of these cells, 2 are row values, 2 are column values

    I was thinking that someone may be able to tell me that its an issue with how I have put together the match formula without me having to scale down the spreadsheet and try to get it in a condition to attach here.

    My formula works well with 3 conditions in the match, but fails miserably if I attempt to add another one or it brings back something random!

    Other combinations:

    =SUMIF(MATRIX!M:M,C12,INDEX(MATRIX!BD:CN,MATCH(D3&D4,MATRIX!BD:CN&MATRIX!BD2:CN,0),MATCH(C4,MATRIX!K:K,0)))
    (This calculates although bummed if I know exactly what its calculating!)

    =SUMIF(MATRIX!$M$1:$M$1999,$C12,INDEX(MATRIX!$BD$1:$CN$1999,MATCH(1,(C4=MATRIX!K:K)*(D$3=MATRIX!$BD$1:$CN$1)*(D4=MATRIX!BD:CN),0)))
    (just brings back a 0 - but hey at least its not an error!)

    What I have tried
    Almost every version of a sumproduct I can think of, multiplying the matches.......

    ANY HELP WONDERFULLY APPRECIATED

    THANKS ALL

    K
    Last edited by Keelin; 07-10-2014 at 04:41 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: SumIf Index Match - 4 conditions (failing miserably! :(

    Probably you get better help with your question if you add an SMALL excel file, without confidential information.

    Please also add the desired result.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    06-21-2014
    Location
    Sydney
    MS-Off Ver
    2011
    Posts
    92

    Re: SumIf Index Match - 4 conditions (failing miserably! :(

    Yep here it is

    Thanks so much,

    Keelin
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: SumIf Index Match - 4 conditions (failing miserably! :(

    with a pivot table.

    I used sum and count to give you an idea.

    See the attached file.
    Attached Files Attached Files

+ 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. Comparing columns, creating lists... failing miserably
    By dcr33 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-30-2014, 12:02 PM
  2. Trying to copy URL into Excel using VBA (And failing miserably)
    By Silkbeast in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2014, 11:58 AM
  3. INDEX MATCH MATCH working great and then failing on me.
    By HeikEve in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2013, 01:40 PM
  4. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  5. Replies: 13
    Last Post: 12-13-2012, 11:44 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