+ Reply to Thread
Results 1 to 7 of 7

countif formula

  1. #1
    Registered User
    Join Date
    05-26-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    3

    countif formula

    cant seems to get a formula correctly. i would like count the number of weekend offs have in a month. I'm doing up a schedule for a month. i would like to count either OFF or REST that falls on either saturday or sunday, would be counted.
    my columns have Day, Dates and shifts. can anyone help ?thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: counif formula

    Could you post some example data in a workbook?
    If I've been of help, please hit the star

  3. #3
    Registered User
    Join Date
    05-26-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: counif formula

    Iwanted to count on those Off or Rest day which falls either on Sat or Sun.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    2,953

    Re: countif formula

    Please Login or Register  to view this content.
    Try this formula
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: countif formula

    try this
    =SUMPRODUCT(((WEEKDAY(C3:C33)=1)+(WEEKDAY(C3:C33)=7))*((D3:D33="REST")+(D3:D33="off")))

  6. #6
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: countif formula

    Hi racvinto

    Try the following:
    =SUMPRODUCT(--(WEEKDAY(C3:C33,2)>5),--((D3:D33="REST")+(D3:D33="OFF")))
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  7. #7
    Registered User
    Join Date
    05-26-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: countif formula

    thanks yall..

+ 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