+ Reply to Thread
Results 1 to 11 of 11

SSP calculation to Look up between a range of dates with linked periods

  1. #1
    Forum Contributor mcinnes01's Avatar
    Join Date
    05-25-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    449

    SSP calculation to Look up between a range of dates with linked periods

    I having been developing my sickness tool for quite a while, but just want to find a way to calculate ssp for people.

    Essentially I have a complete list of data for all employees and a list is made in a named range called sickhist, which populates with that individuals sickness record.

    Column 5 of this range has start date, 7 end date and 9 duration (which is workdays) column 10 is calendar days.

    SSP is a rolling balance, so you get 28 weeks allowance but if you return to work for 8 weeks you go back to having 28 weeks allowance.

    Another example is if you are off for 4 weeks you would have 24 weeks ssp left then you came back for 6 weeks and went off for anoth 10 weeks you would have 14 weeks ssp remaining.

    I want to display the ssp expiry date. So the sickhist field will have 12 months data in it I need to find a way to sum the durations for the sickness for any sick within the last 8 weeks, and any linked periods who have a period of sickness within the last 8 weeks.

    A linked period is where a person goes off sick again within 8 weeks from returning to work.

    I will put together an example spreadsheet.

    cheers,

    Andy
    Attached Files Attached Files
    Last edited by mcinnes01; 11-23-2010 at 08:52 AM.

  2. #2
    Registered User
    Join Date
    11-22-2010
    Location
    Finland
    MS-Off Ver
    Excel 2003, 2007
    Posts
    95

    Re: SSP calculation to Look up between a range of dates with linked periods

    Something like this?

    I made a couple of modifications to test the formula(s).

    I didn't check the literal criteria for ssp so made an assumption that the counter is based on a week of seven days.
    Attached Files Attached Files

  3. #3
    Forum Contributor mcinnes01's Avatar
    Join Date
    05-25-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    449

    Re: SSP calculation to Look up between a range of dates with linked periods

    This is a kind of example of what I want the outcome to look like but, the formula I have entered will only work for the small range I have selected and will need to be more dynamic as there could be a lot more history and I would need to work out when the first day of a period of sickness is.
    Attached Files Attached Files

  4. #4
    Forum Contributor mcinnes01's Avatar
    Join Date
    05-25-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    449

    Re: SSP calculation to Look up between a range of dates with linked periods

    Hi KiPA,

    That looks like a good start, thanks

  5. #5
    Forum Contributor mcinnes01's Avatar
    Join Date
    05-25-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    449

    Re: SSP calculation to Look up between a range of dates with linked periods

    I have realised 2 slight issues that I neglected to consider, you may see a solution for me.....

    1, I forgot the SSP is only deducted for leave of 4 days or more so if you were off for 3 days no ssp is deducted, also if you were off for 4 days I think (need to check) that you only get paid 1 day ssp but 4 days are deducted.

    2, As it is a rolling thing I think there might be a slight issue in that I only have 12 months snap shot of the sick history which refreshes everytime the tool is opened.

    For people who have been at work for an 8 week period in the last 12 months this is not an issue as the calculation would start from there, however if people have a rolling balance that began before the 12 months of data this could create an issue?

  6. #6
    Registered User
    Join Date
    11-22-2010
    Location
    Finland
    MS-Off Ver
    Excel 2003, 2007
    Posts
    95

    Re: SSP calculation to Look up between a range of dates with linked periods

    1.
    Please Login or Register  to view this content.
    into Q18 and copied upwards should do it.

    What if you had several sequential 3 day sick leaves? If the ssp should not deduct with them then that's okay. Things might get tricky (more ifs I guess :D) if from the 4th day - the first day of second absence - ssp ought to be deducted while 4 being the smallest possible number of deducted days.

    2. Hmmm, well, as I put a seed of 28 weeks into Q19, maybe the easiest way to get this done is to find out the remaining ssp days at the beginning of the year and for e.g. put that number into R19 and change Q19 into 28*7-R19?
    Last edited by KiPA; 11-23-2010 at 06:21 PM. Reason: rules

  7. #7
    Forum Contributor mcinnes01's Avatar
    Join Date
    05-25-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    449

    Re: SSP calculation to Look up between a range of dates with linked periods

    Ok I have managed to get it to calculate with the assumption there is no linked period going over 12 months sickness history.

    It takes in to account the 8 weeks for a fresh SSP allowance

    It only includes periods greater than 3 days

    It can handle linked periods

    The main problems I have now is that the date ranges may be seperate but may be 1 period of sickness. So basically this makes a problem if the durations aren't more than 3 days but are continuous.

    For example:

    Please Login or Register  to view this content.
    As you can see all of these are 3 days or less, so with the current calculation method, no ssp days will be used, however in reality these are linked as there should be 7 days ssp used.
    Attached Files Attached Files
    Last edited by mcinnes01; 11-24-2010 at 08:37 AM.

  8. #8
    Registered User
    Join Date
    11-22-2010
    Location
    Finland
    MS-Off Ver
    Excel 2003, 2007
    Posts
    95

    Re: SSP calculation to Look up between a range of dates with linked periods

    I didn't quite get that S col formula so I made a little addition into previously modified file.

    It's not even near ready-for-use but this is the way I approached the problem. As you see in the file I made additional columns (again) and what I was trying to start is to check whether there are those less than four day periods. If it's possible that there might be like x number of one day periods one after another (who would even address sick leaves like that?), then the monitoring needs to be expanded into x number of periods.

    However if I was to done this I probably would expand that into 3 periods and modify myself those chained short term absences. Hope this helps a bit.
    Attached Files Attached Files
    An example file is never useless!

    Tried an example function of mine and got errors?
    - Had you found them, replace ; with , and , with .

  9. #9
    Forum Contributor mcinnes01's Avatar
    Join Date
    05-25-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    449

    Re: SSP calculation to Look up between a range of dates with linked periods

    i have had another go, I could do with a second opinion to whether it's right or not. It now looks if the next working day after the end date of the previous sick line is equal to the start day of that sickness line and includes it in the cumulative sick duration if it is.

    The only thing I can think of that is not right is, this rule ignores the greater than 3 day rule if it is a linked period, regardless of the fact that the greater than 3 day rule applies to the total of the linked period.
    Attached Files Attached Files
    Last edited by mcinnes01; 11-24-2010 at 10:12 AM.

  10. #10
    Forum Contributor mcinnes01's Avatar
    Join Date
    05-25-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    449

    Re: SSP calculation to Look up between a range of dates with linked periods

    Ok I think this is getting a little, closer, it now checks that a consecutively linked range of dates are greater than 3 days in total duration.


    Please can you comment on my attempt, I have basically worked on what KiPA suggested and developed it further.

    Thanks KiPA
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-09-2020
    Location
    London
    MS-Off Ver
    MS Office 10
    Posts
    1

    Re: SSP calculation to Look up between a range of dates with linked periods

    Hi, I cannot open the excel. I use MS Office 10. Pleas help.

+ 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