+ Reply to Thread
Results 1 to 14 of 14

Occupational sick pay problem

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

    Occupational sick pay problem

    Hi

    I have been adding many new features and testing my OSP tool, when developing the SSP part of the tool I noticed a CRITICAL issue with the way historic sick days are counted! BUMP

    Basically the way my tool currently works is that it updates the staff data everytime the tool is opened.

    Occupational sickness allowance is based on years service

    0-0.5 years = 0 full days/ 0 half days
    0.5 -1 years = 0 full days/ 10 half days
    1-2 years = 20 full days/ 20 half days
    2-3 years = 30 full days/ 30 half days
    3-4 years = 40 full days/ 40 half days
    4-5 years = 50 full days/ 50 half days
    5 years + = 60 full days/ 60 half days

    My calculation for this works fine and has a nested if based on years service.

    The 2 problems I have are related.

    If you had been employed for exactly 1 year for example. In the first 6 months you were off 5 days and received no osp, then in the second half of the year your were off 10 days. You should get paid for 10 half days, however as the tool counts the whole of the history it would only pay you for 5 half days.

    So I need to figure out a way to count only the days after the new allowance kicked in. I have made another date column on the STAFF sheet that assesses the date when your last allowance changed and need to some how use this as a cut off point for counting the days sick. Basically anything before this date should not be counted, but should still be displayed on the the input screen. Secondly this creates a problem and highlights an existing problem.

    The history is anything out of the database that has an end date within the last 365 days. The problem is, is that the sick days are all counted, when in actual fact only the last 365 days should be counted. By the last 365 days I mean the last 365 days before the start date of the new sickness line you are keying for an individual.


    I will attach an example workbook shortly and would really appreciate some help, I can't think how I can get my count to work like this.
    Last edited by mcinnes01; 11-25-2010 at 06:16 AM.

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

    Re: Occupational sick pay problem

    having trouble uploading my file it says there is a database error?
    Attached Files Attached Files
    Last edited by mcinnes01; 11-25-2010 at 06:11 AM.

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

    Re: Occupational sick pay problem

    The upload is working again now, phew!
    Last edited by mcinnes01; 11-25-2010 at 06:17 AM.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Occupational sick pay problem

    Hi,

    You could make the task easier for us if you would complete an example entry and point out which are the relevant cells and what results you expect in which cells.

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Occupational sick pay problem

    Sorry I had an external link in and I thought I had removed it and left some sickness data in for the example, I will have a fully working example in a moment...

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

    Re: Occupational sick pay problem

    Sorry about the delay it was a lot more work than I expected deleting the data links and making the data fictional.

    This one does work
    Attached Files Attached Files

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

    Re: Occupational sick pay problem

    Hi Richard,

    In cell B7 you insert an employee number e.g. 100003. This then populates the cells in the current details section, pending section and history section.

    The sickness allowance and sickness used is found in cells c19 to d 20 and is seperated by full and half day allowances. This is based on the columns J through to P on the STAFF sheet.

    To calculate a new sickness line, cell c19 to d20 on the INPUT sheet are refered to but are not what is used to create a new line. The proposed allowance takes in to account any lines keyed and saved on the output tab for that individual, which are displayed in the pending section on the input sheet. I need to make it so in both the current and proposed sick allowance sections that for all full, half and nil figures, only count sickness history back to the date which their allowance changed, or if the person has been employed for 6 years or more the history should count only 365 days back from the start date of the new line.

    The proposed section will populate after you enter a start and end date in cells e7 and g7 respectively.

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

    Re: Occupational sick pay problem

    I think the route of my problem lies in column K on the staff sheet, as it just counts all sickness and has no date limit.

    I have no idea how to count sick periods that span over the 365 day cut off or the span over the date an allowance changed

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

    Re: Occupational sick pay problem

    I wonder if something like this will fix the issue??

    This is supposed to be an array formula but is just returning N/A at the moment, not sure what I have done wrong or if it will work

    Please Login or Register  to view this content.

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

    Re: Occupational sick pay problem

    This doesn't work either

    Please Login or Register  to view this content.

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

    Re: Occupational sick pay problem

    Right I have it working, I will attach a new version shortly....

    However the way it calculates now is that it looks at the date your allowance changed and only counts sickness that occured after that date.

    After a lot of thought and discussion this is probably not the correct way of doing things. If someone is on continuous sick leave and runs out of OSP, there years service will continue to increase, and so they may go in to a new allowance. This would then for example result in the following

    An individual has 20 days full 20 days half allowance,

    they use all of there allowances and are on nil OSP

    Then they go over 3 years service they now have a new allowance of 30 days full 30 days half.

    The tool will currently then start paying this person OSP as it will only count their sick back to the start of their new allowance.

    In reality what should happen is there available allowance should be the difference between the new and old allowance plus any remaining allowance from the old allowance

    NEW - OLD + REMAINING OLD

    This looks potentially quite complicated?
    Attached Files Attached Files
    Last edited by mcinnes01; 11-25-2010 at 09:48 AM. Reason: Attachment added NOW

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

    Re: Occupational sick pay problem

    Spotted another problem that has only just started to occur.

    When you enter a line in the green cells in row 7 on the INPUT sheet, if you enter a long sickness range for someone e.g. a few months, so it makes them use both full and half occ. You will see the 4 lines (2 code & 2 description lines) produced in the output section on the input sheet. This works fine and has always worked fine.

    However, all of a sudden now when you click next to get it to copy this data to the OUT PUT sheet something strange is happening and it doubles the line up for example...

    If someone had 50 days full allowance and 50 days half allowance

    You key a line and they are off for 70 working days

    So the line for full should say 50 and the line for half should say 20

    This is the going on to the pend section too quickly and so it recalculates and submits a new line which then does an additional 30 on half pay and 40 on nil pay.

    It needs to only copy over what is there and not update during the process

    I would really appreciate any help I can get, I am training HR at the moment and the tool has stopped working.

    Nightmare!

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

    Re: Occupational sick pay problem

    This is the next button code which copies the data to the next page, I think if it copied the whole of the output range to the output sheet in one go there would be no problem, but as I don't want it to paste blank lines as this will affect the csv import it uses a next row. I have a feeling it is this, that is making the problem.

    Please Login or Register  to view this content.

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

    Re: Occupational sick pay problem

    Last problem fixed, any ideas on the other problems

    Please Login or Register  to view this content.

+ 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