+ Reply to Thread
Results 1 to 6 of 6

Index Match to Sum Multiple Columns

  1. #1
    Forum Contributor
    Join Date
    02-18-2014
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2013
    Posts
    197

    Index Match to Sum Multiple Columns

    I'm am trying to use Index Match to find the sum of certain columns based on the header (see attached example). I'm using this formula:

    =SUM(INDEX(B4:E8,,MATCH("Forecast",B3:E3,0)))

    My problem is that the equation sums only the first column that returns that specific header, and my lists will have multiple columns with the same titles of budget, forecast, etc. I'm wanting to add all of them together. I tried SUMIF, which added multiple columns but only the first row.

    Any ideas?


    Thanks!!
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Index Match to Sum Multiple Columns

    Hi.

    =SUMPRODUCT((B3:E3="Forecast")*B4:E8)

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Index Match to Sum Multiple Columns

    Try this...
    =SUMIF($B$3:$E$3,"forecast",B4:E4)

    edit: XOR, you forgot to absolute the B3 range (in case they need to copy it down)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Index Match to Sum Multiple Columns

    Try these two

    =SUMIF(B3:E3,"Forecast",B9:E9)

    =SUM(INDEX((VLOOKUP("Total",A4:E9,{3,5},0)),0))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Contributor
    Join Date
    02-18-2014
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2013
    Posts
    197

    Re: Index Match to Sum Multiple Columns

    FDibbins, I had tried that, but it only returns the top row.

    XOR, that was exactly what I was looking for. I considered SUMPRODUCT but couldn't quite wrap my head around how to make it work here. It really is such a flexible function. Thanks so much!!

    And...solved!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Index Match to Sum Multiple Columns

    Quote Originally Posted by phelbin View Post
    FDibbins, I had tried that, but it only returns the top row.
    Thats because I thought that was what you wanted, otherwise I would have gone the SP route too

+ 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. Index Match multiple columns
    By Kdjonesmtb in forum Excel General
    Replies: 1
    Last Post: 11-29-2014, 11:45 AM
  2. [SOLVED] index match multiple columns
    By mma3824 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-08-2013, 04:02 PM
  3. INDEX MATCH with multiple columns
    By there83 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-08-2013, 11:33 PM
  4. Index Match multiple columns
    By bmhalula in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-11-2013, 01:06 AM
  5. [SOLVED] Index Match multiple columns
    By Bravo33 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-07-2013, 10:42 AM
  6. [SOLVED] Index/Match against multiple columns
    By paradox34690 in forum Excel General
    Replies: 8
    Last Post: 04-28-2012, 12:43 PM
  7. Index/Match but with multiple columns?
    By notleonardo in forum Excel General
    Replies: 4
    Last Post: 11-17-2011, 07:16 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