+ Reply to Thread
Results 1 to 6 of 6

Counting Formula (Count Weekends Off)

  1. #1
    Registered User
    Join Date
    08-11-2007
    Posts
    51

    Counting Formula (Count Weekends Off)

    Hello all,

    I have a scheduling tool I have made in Excel.
    I attrached the document for your viewing.

    I try to give each of my employees a weekend off per month.
    A weekend off being defined off as a consecutive Saturday & Sunday.
    For example, being off September 17th & 18th would be 1 weekend off.

    I need a formula that counts the total amount of weekends off that each employee has.
    I have already made a spot where I would like the formulas inserted.
    I would like it to count weekends off if the cells on the consecutive Saturday & Sunday say "REQ OFF", "OFF" or "REQ VAC".

    This is on sheet "Monthly."
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-11-2007
    Posts
    51

    Re: Counting Formula (Count Weekends Off)

    Quote Originally Posted by uhcord98 View Post
    Hello all,

    I have a scheduling tool I have made in Excel.
    I attrached the document for your viewing.

    I try to give each of my employees a weekend off per month.
    A weekend off being defined off as a consecutive Saturday & Sunday.
    For example, being off September 17th & 18th would be 1 weekend off.

    I need a formula that counts the total amount of weekends off that each employee has.
    I have already made a spot where I would like the formulas inserted.
    I would like it to count weekends off if the cells on the consecutive Saturday & Sunday say "REQ OFF", "OFF" or "REQ VAC".

    This is on sheet "Monthly."
    If it isn't clear on what I am trying to do let me know.

  3. #3
    Registered User
    Join Date
    08-11-2007
    Posts
    51

    Re: Counting Formula (Count Weekends Off)

    Anyone able to help?

  4. #4
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Counting Formula (Count Weekends Off)

    I think I know what your looking ofr, some slight alterations would help. Fisrt off, the dates at the top of the screen what month are they from?
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

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

    Re: Counting Formula (Count Weekends Off)

    You could use simpler formulas for Saturdays and Sundays off, e.g. in J3 and K3

    =COUNTIFS(A$3:A$200,A3,B$3:B$200,"*Off")

    and

    =COUNTIFS(A$3:A$200,A3,H$3:H$200,"*Off")

    copy those formula down the column

    Then for weekends try this similar version in I3 copied down

    =COUNTIFS(A$3:A$200,A3,H$3:H$200,"*Off",B$4:B$201,"*Off")

    Note that the range in red is deliberately "offset" 1 row from the other ranges
    Audere est facere

  6. #6
    Registered User
    Join Date
    08-11-2007
    Posts
    51

    Re: Counting Formula (Count Weekends Off)

    Quote Originally Posted by daddylonglegs View Post
    You could use simpler formulas for Saturdays and Sundays off, e.g. in J3 and K3

    =COUNTIFS(A$3:A$200,A3,B$3:B$200,"*Off")

    and

    =COUNTIFS(A$3:A$200,A3,H$3:H$200,"*Off")

    copy those formula down the column

    Then for weekends try this similar version in I3 copied down

    =COUNTIFS(A$3:A$200,A3,H$3:H$200,"*Off",B$4:B$201,"*Off")

    Note that the range in red is deliberately "offset" 1 row from the other ranges
    This works perfectly except it does not count "REQ OFF" or "REQ VAC".
    I know I could just duplicate that formula and make it add those, but I also need it to work if there a combination off these.
    For example, a "REQ OFF" & "OFF" = 1 Weekend Off
    Or
    "REQ VAC" & "REQ OFF" = 1 weekend off

    or any combination of these 3.

+ 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