+ Reply to Thread
Results 1 to 8 of 8

Count several criteria for days off

  1. #1
    Registered User
    Join Date
    09-23-2010
    Location
    oxfordshire
    MS-Off Ver
    Excel 2003
    Posts
    72

    Count several criteria for days off

    This is in relation to my post yesterday 26th Sept at 1.42.

    Firstly many thanks to those who replied,but I realise that I need it to count the number of Days in January that some one has had off sick for the reason of i.e. Back Pain
    I've put in the formula suggested into K78 =SUMPRODUCT(($A$17:$A$62=K$75)*($G$17:$G$62=$I78)) but it shows up Jan.

    What I'm trying to achive is
    if A17:A62 ="January" and G17:G62 = Back pain, then it needs to count number of days off in D17:D62 that match those criteria and put totals into K78. and so on. Hopefully I've explained it ok here:

    I've attached the file and hopefully this will show more of what I'm trying to explain

    I can't thank you enough for your help
    Attached Files Attached Files
    Last edited by summer2010; 09-29-2010 at 10:52 AM. Reason: Now solved

  2. #2
    Registered User
    Join Date
    06-29-2010
    Location
    Central Texas
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Help! I can't count up several criteria to count up days off

    Summer2010,

    You need one more piece to get the number of days, I adjusted your fomula and changed the grid with the formula to Format "General". Modified file attached.
    Attached Files Attached Files
    Harley2

    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)

  3. #3
    Forum Contributor Charlie_Howell's Avatar
    Join Date
    09-27-2010
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: Count several criteria for days off

    try this and see if this works for you.
    Attached Files Attached Files

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Count several criteria for days off

    Hello Charlie,

    If summer2010 has correct details then SUMIFS won't be an option as that function doesn't appear in Excel 2003.

    Harley2,

    If you use SUMPRODUCT then *-- should be avoided. Normally one or the other i.e. either

    =SUMPRODUCT(--($A$17:$A$62=K$75),--($G$17:$G$62=$I78),$D$17:$D$62)

    or

    =SUMPRODUCT(($A$17:$A$62=K$75)*($G$17:$G$62=$I78),$D$17:$D$62)
    Audere est facere

  5. #5
    Registered User
    Join Date
    09-23-2010
    Location
    oxfordshire
    MS-Off Ver
    Excel 2003
    Posts
    72

    Re: Count several criteria for days off

    Hi

    Wow!! I can't appreciate all your help on the formulas. It's very difficult when you are asked to create something on Excel (To which I know very little about) and there is no one to ask for help in the office. I'm using 2003 so sadly the suggestions by Charlie won't work, but thanks again Charlie for your help.

    I'll have a look at the other suggestions when I'm able to look at the spreadsheet in the next couple of days and feed back to you. :-)

  6. #6
    Forum Contributor Charlie_Howell's Avatar
    Join Date
    09-27-2010
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: Count several criteria for days off

    Sorry I couldn't help, I should have looked at what version the sheet was written. Good luck in your excel career and upgrade to 2007 or 2010 as soon as you can so I don't look so silly next time:-P
    Harley, You rock!

  7. #7
    Registered User
    Join Date
    09-23-2010
    Location
    oxfordshire
    MS-Off Ver
    Excel 2003
    Posts
    72

    Re: Count several criteria for days off

    Hi Charlie

    It's very frustrating not having 2007at work as it looks like you could do so much more. Fingers crossed that I have 2007 in the near future, although i'm not holding my breath!!

    Summer2010

  8. #8
    Registered User
    Join Date
    09-23-2010
    Location
    oxfordshire
    MS-Off Ver
    Excel 2003
    Posts
    72

    Re: Count several criteria for days off

    Thanks for all your help,

    Daddylonglegs I've used your second formula suggested and it works perfectly. I've now completed my spreadsheet and can now work on the other half of the work book. :-)

+ 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