+ Reply to Thread
Results 1 to 4 of 4

Thread: Combining Index & SumIf ?

  1. #1
    Registered User
    Join Date
    10-13-2011
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    1

    Combining Index & SumIf ?

    Hi there!

    In one formula, I am trying to "Sum If" Column A = x, however, the column I am trying to sum varies, so I would like the Sum Range to change based on a Match formula, where I can match the column header of the table I am summing off of. I attached a picture of the example.

    In the example, If "X" in column A, and if it is week 3 (this will change), then sum the cells that meet those criteria.

    Thanks for your help!
    Attached Files Attached Files
    Last edited by erey; 10-13-2011 at 10:37 AM.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Combining Index & SumIf ?

    Please post an excel workbook rather than a pdf.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Forum Contributor
    Join Date
    01-28-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    157

    Re: Combining Index & SumIf ?

    =SUMPRODUCT(--(C4:C11="x"),INDEX(D4:F11,0,MATCH("week 3",D3:F3,0)))

    Beau Nydal

  4. #4
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,056

    Re: Combining Index & SumIf ?

    and you can use that same setup with SUMIF, i.e.

    =SUMIF(C4:C11,"x",INDEX(D4:F11,0,MATCH("week 3",D3:F3,0)))
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0