+ Reply to Thread
Results 1 to 12 of 12

Sum Index Match?

  1. #1
    Registered User
    Join Date
    07-03-2014
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    43

    Angry Sum Index Match?

    I'm trying to create sum formula that Indexes and Matches based on criteria and in both columns and rows.

    Rows = Category
    Column = Date or Key Identifier


    Right now I have the formulas as an absolute reference
    Example: =SUMIF(MAIN!$C:$C,$B8,MAIN!G:G)
    C:C = Match for category
    G:G = The exact column the data is in

    I would like to make this a an index match because when inserting new columns all the formulas break (60-80 of them). I've search the fourm and found and index match that works but in only finds the first value found, it wont sum them all up.

    I've attached an example, but I'm trying to make it as scalable as possible so I can add more months without it breaking.......Hope I explained this okay. THANKS GURUS
    Attached Files Attached Files
    Last edited by Toyo613; 11-23-2017 at 02:27 PM.

  2. #2
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Sum Index Match?

    maybe this in I7
    Please Login or Register  to view this content.
    then J7
    Please Login or Register  to view this content.
    in K7
    Please Login or Register  to view this content.
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  3. #3
    Registered User
    Join Date
    07-03-2014
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    43

    Re: Sum Index Match?

    Hi scottiex,

    Thanks for taking the time to respond, your solution works well.

    Is there a way to remove the OFFSET and just reference the KEY for each column? The reason I ask is the offset isn't always the same month to month.

  4. #4
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Sum Index Match?

    hi toyo613, assume there's typo in your year as Sheet 1 showing 2016 while GROUP Summary showing 2017, you can try below array formula and copy across other cells

    D7=SUM(IFERROR((MAIN!$C$5:$C$30=$B7)*INDEX(MAIN!$G$5:$U$30,0,MATCH(D$6,MAIN!$G$5:$U$5,0)),0))
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  5. #5
    Registered User
    Join Date
    07-03-2014
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    43

    Re: Sum Index Match?

    Quote Originally Posted by alvin-chung View Post
    hi toyo613, assume there's typo in your year as Sheet 1 showing 2016 while GROUP Summary showing 2017, you can try below array formula and copy across other cells

    D7=SUM(IFERROR((MAIN!$C$5:$C$30=$B7)*INDEX(MAIN!$G$5:$U$30,0,MATCH(D$6,MAIN!$G$5:$U$5,0)),0))
    Thanks Alvin, I tried this and conceptually I think this is what I'm looking for. This is actually what I tried before I came to the forum, but is just gives the first result instead of summing all results.

    Thanks for pointing out the date error, I've re-attached the corrected file .

  6. #6
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Sum Index Match?

    just to confirm did you press ALT+CTRL+ENTER on the array formula?

  7. #7
    Registered User
    Join Date
    07-03-2014
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    43

    Re: Sum Index Match?

    Hi Alvin,

    Yes, I did try that but no luck.

  8. #8
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Sum Index Match?

    Could you attach your copy with the proposed formula so that I can have a look of what went wrong?

  9. #9
    Registered User
    Join Date
    07-03-2014
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    43

    Re: Sum Index Match?

    Please see attached

    When I hit CTL + ATL + Enter nothing happens
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    07-03-2014
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    43

    Re: Sum Index Match?

    So I looked at scottiex's answer again and notice that it doesn't reference the key on the main tab. is there a way to reference the key and remove the offset portion.

  11. #11
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Sum Index Match?

    hi Toyo613, I'm sorry to give you wrong keys combination earlier.
    For array formula try hit CTRL+SHIFT+ENTER

    To be more precise, in the last sample that uploaded, click on cell D7, press F2 (so that you're in edit mode) then press CTRL+SHIFT+ENTER. Once you verified the outcome you can copy across other cells.
    Last edited by alvin-chung; 11-25-2017 at 09:33 AM.

  12. #12
    Registered User
    Join Date
    07-03-2014
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    43

    Re: Sum Index Match?

    Hi alvin-chung!!

    Edit: This actually solved my problem completely!! Solved & Rep Added!
    Attached Files Attached Files
    Last edited by Toyo613; 11-27-2017 at 05:32 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 instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  2. [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
  3. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  4. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 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