+ Reply to Thread
Results 1 to 2 of 2

Do I use SUMIF or SUMPRODUCT

  1. #1
    Registered User
    Join Date
    07-19-2007
    Posts
    51

    Do I use SUMIF or SUMPRODUCT

    Im having a lapse in memory. I cant remember how to sum a matrix with a conditional for both the column header and rowname. Example attached. heres the description. I have row with several values for months (jan feb, etc as each header) however some repeat. I also have a list of names in the first column, some of which repeat. I need the function to add up the number of hours worked for a particular person for a particular month. Thanks!
    Attached Files Attached Files
    Last edited by jchambers00; 07-24-2009 at 12:19 PM. Reason: solved

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Do I use SUMIF or SUMPRODUCT

    In this case given you're summing multiple rows & columns simultaneously a SUMPRODUCT may prove easiest, ie:

    =SUMPRODUCT((B3:B9="Person2")*(C2:I2="Jan")*(C3:I9))

+ 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