+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : how to count consecutive periodes of sickleave for a month

  1. #1
    Registered User
    Join Date
    04-07-2010
    Location
    amsterdam, Holland
    MS-Off Ver
    Excel 2003
    Posts
    1

    how to count consecutive periodes of sickleave for a month

    Hey Guys,

    I need a formula for the following;

    I have to build a time registration for someone i know.
    It is almost finished but i'm having some difficulty with the following:

    For every single workday i have created a checkbox (boolean, linked to a cell) which you can check if you have a sickday.
    So if you are sick for four days in a row, you need to check four seperate checkboxes. (one for every day)

    now comes the tricky part.

    How do i count the four sick days as a whole?
    Every sickleave starts with a waiting day which does not count as a sickday.

    So if you are sick for four days, you get paid for three of your sickdays because you have one waitingday (the waiting day is always the first day of your sickleave)

    If you are sick for just one day, you get nothing because the first day is always a waiting day.


    what i want is the number of times an employee is sick in a month.
    i guess it only takes one working day to distinguish the sick periodes from the working periodes.

    lets say an employee has been sick three different times in a month,

    first time, three days sick (include waiting day)
    second time, two days sick (include waiting day)
    second time, four days (include waiting day)

    that makes, 3+2+4 = 9, minus 3 waiting days = 6 days of sickleave in total.

    i want that 6 days of sickleave but how do i get it?

    i think i first need to get the sickleave periodes, (but how?)
    after that i need to subtract the waitingdays.
    and then i get my six days of sickleave but how do I do that?

    I hope anyone can help me!

    Thnx in advance!

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: how to count consecutive periodes of sickleave for a month

    Hi Oeteldonker, welcome to the forum.

    I'd suggest posting a sample copy of your workbook to the forum so we can see your layout. In the sample, point out the areas that change when adding/removing sick days, and manually put in the results you would expect based on your example data.

    Thanks.

+ 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