+ Reply to Thread
Results 1 to 3 of 3

SUMIF Several Columns

  1. #1
    Registered User
    Join Date
    06-27-2011
    Location
    Argentina
    MS-Off Ver
    Excel 2007
    Posts
    12

    SUMIF Several Columns

    Hi Guys,

    I have a data table showing Resources and hours worked according to days.
    ex.

    Resource 1-Feb 2-Feb 3-Feb
    James 8 5 9
    Harry 5 7 2
    Lloyd 6 7 4

    Now, I want to sum all february for each resource, I tried:

    =SUMIF(A1:A3,A1,B1:D1)

    but the formula is only summing the first column.

    Any ideas?

    Cheers
    Last edited by NBVC; 06-27-2011 at 01:24 PM.

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

    Re: SUMIF Several Columns

    Assuming your data is in A1:D4, and Say you list the unique names in G2:G4 and in H1 onwards you list the months as January, February, March, etc...

    Then Try formula in H2:

    =SUMPRODUCT((TEXT($B$1:$D$1,"mmmm")=H$1)*($A$2:$A$4=$G2),$B$2:$D$4)

    copied down and across.
    Where there is a will there are many ways.

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

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

  3. #3
    Registered User
    Join Date
    06-27-2011
    Location
    Argentina
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: SUMIF Several Columns

    Thanks mate!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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