+ Reply to Thread
Results 1 to 11 of 11

SUMIFS with 3 criteria

  1. #1
    Forum Contributor
    Join Date
    06-18-2015
    Location
    Milton Keynes
    MS-Off Ver
    2016
    Posts
    101

    SUMIFS with 3 criteria

    Hi Guys,

    I need some help.

    Normally this would be easy, but I've forgotten too much about sumifs (if that is the right one!)

    I will describe my set up and what I'm trying to do

    I have a table on sheet 1.

    Dates down column A from A3 to A263 (Weekdays for a year)
    Row 1 has employee initials, this is 2 cells per name (B2, C2 are both person A etc) This is from B2 to AM2
    Row 2 is 2 columns per employee, repeating. The first is IN and has a 1 if the employee is in and 0 if they are off. The second is DONE. This contains the actual amount of a task done by the employee. The repeats from B2 to AM2 (In, Done, In, Done etc)

    What I am then trying to do is create mini tables on subsequent worksheets to make productivity graphs per month.

    So, on Sheet two I have names down column A, from A2 to A20.
    I have IN down column B.
    I have done down column C.

    I have used the below forumla.

    Please Login or Register  to view this content.
    What I am trying to do, is on sheet 2, I want cell B2 to return the SUM of all of the IN values from the sheet 1 table, where the month is April, the column it is counting from is IN and the employee matches the initials on Sheet 2, cell A2. In the above instance, RT.

    I can then use the same formula to add up the amout of the actual task done for that employee for that Month.

    Can someone point me to where I'm going wrong please!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: SUMIFS with 3 criteria

    For SUMIFS ranges have to be the same dimensions: look at SUMPRODUCT.

    Better still , post a small sample file (not image).

  3. #3
    Forum Contributor
    Join Date
    06-18-2015
    Location
    Milton Keynes
    MS-Off Ver
    2016
    Posts
    101

    Re: SUMIFS with 3 criteria

    Thanks John,

    I'm not familiar with SUMPRODUCT so i'm trying to find out how to upload a sample document

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIFS with 3 criteria

    Click 'Go Advanced', then scroll down and click 'Manage Attachments'

  5. #5
    Forum Contributor
    Join Date
    06-18-2015
    Location
    Milton Keynes
    MS-Off Ver
    2016
    Posts
    101

    Re: SUMIFS with 3 criteria

    Thanks Jonmo.

    Hopefully this has worked!
    Attached Files Attached Files

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIFS with 3 criteria

    Try this in Sheet2 B2, filled down/right as needed

    =SUMIFS(OFFSET(Sheet1!B$3:B$15,0,MATCH($A2,Sheet1!$B$1:$K$1,0)-1),Sheet1!$A$3:$A$15,">="&DATE(2016,4,1),Sheet1!$A$3:$A$15,"<="&DATE(2016,4,30))

  7. #7
    Forum Contributor
    Join Date
    06-18-2015
    Location
    Milton Keynes
    MS-Off Ver
    2016
    Posts
    101

    Re: SUMIFS with 3 criteria

    Thanks Jonmo!!

    Its Looking good to me.

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIFS with 3 criteria

    You're welcome.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: SUMIFS with 3 criteria

    Or

    =SUMPRODUCT((Sheet1!$B$3:$K$15)*(Sheet1!$B$1:$K$1=Sheet2!$A2)*(Sheet1!$B$2:$K$2="IN"))

    Requires names to be in each header cell i.e. cells unmerged.



    You need to add IFERROR( ......, "") to Jonmo1.s formula to avoid #N/A errors

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIFS with 3 criteria

    I think you need to add criteria to that sumproduct regarding the date.
    The sample file only showed April dates, but according to OP Column A has dates covering a whole year, and is interested only in April.

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: SUMIFS with 3 criteria

    Yes .. I missed the dates but SUMIF being better than SUMPRODUCT ......

+ 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] Sumifs using 3 criteria ranges and criteria
    By Lmel0611 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2015, 05:20 PM
  2. [SOLVED] =SUMIFS 2 criteria
    By keith740 in forum Excel General
    Replies: 3
    Last Post: 05-01-2015, 03:56 AM
  3. [SOLVED] Sumifs with criteria
    By bigband1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2014, 08:44 AM
  4. Replies: 3
    Last Post: 11-21-2012, 04:57 PM
  5. Replies: 5
    Last Post: 09-07-2011, 11:14 PM
  6. Replies: 1
    Last Post: 05-16-2011, 05:00 PM
  7. sumifs criteria
    By Wrighty in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-22-2010, 07:14 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