+ Reply to Thread
Results 1 to 16 of 16

Sickness Absence by Month

  1. #1
    Registered User
    Join Date
    11-11-2015
    Location
    England
    MS-Off Ver
    Professional Plus 2010
    Posts
    5

    Sickness Absence by Month

    Hello,

    I'm currently calculating sickness absence for my company, I've created a data entry form and want it linked to a overview by month. E.g. John Smith has been absent between 01/04/15 - 30/09/15 which equates to 131 working days, I'd like this broken down by days lost per month. I've attached the example excel sheet.

    Thanks in advance.

    Joe
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Sickness Absence by Month

    The easiest way is to convert your data entry to include all the days, then use a pivot table. It would also be better if you added a list of Holidays for all the years covered, named "Holidays".

    Try this file, with the macro needed.

    Absence Calc.xlsm
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sickness Absence by Month

    In your sample file Overview I replaced the months with the first of the months. To make the end of the year "wrap around" it starts at Oct 1, 2015 then at Jan it starts at Jan 1, 2016. Then in B3:M3 this formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Dave

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Sickness Absence by Month

    I considered a formula like yours but was concerned that there may be multiple rows of entries for each person, covering different time periods. Did you come up with a solution for multiple entries?

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sickness Absence by Month

    @ Bernie Deitrick
    Strange you should ask. I was just working on that. Haven't been able to come up with anything that doesn't promise to be a cumbersome mega-formula. Ugh! Also don't know how to total them in the summary yet.

    Also due to the year-end-wrap-around I've considered proposing a different layout for the Overview sheet ... something that uses contiguous month / years in the row headers.
    Last edited by FlameRetired; 11-11-2015 at 02:50 PM.

  6. #6
    Registered User
    Join Date
    11-11-2015
    Location
    England
    MS-Off Ver
    Professional Plus 2010
    Posts
    5

    Re: Sickness Absence by Month

    Thanks for your help so far, really appreciated. Thats the thing, the company i'm doing it for will have multiple entries per employee.

  7. #7
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Sickness Absence by Month

    My solution will work for multiple entries per employee.

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sickness Absence by Month

    This is a formula solution. It will work for multiple entries of each name, but it will not combine the results on one line in Overview sheet. I.E. if there are 2 entries for Anna Jones there will be 2 separate returns for Anna Jones in Overview. As a workaround there is a SUBTOTAL above the summary (row 1) that works with Autofilter so you can get a summary of any multi-listed name.
    This first formula just transfers names from Entry to Overview in same order. If you change the name order in Entry it will automatically adjust in Overview.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then this formula in B3 of Overview filled down and across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope this helps.
    Attached Files Attached Files
    Last edited by FlameRetired; 11-13-2015 at 12:29 AM. Reason: clarity / typos

  9. #9
    Registered User
    Join Date
    11-11-2015
    Location
    England
    MS-Off Ver
    Professional Plus 2010
    Posts
    5

    Re: Sickness Absence by Month

    Bit of a delayed reply to this thread, but would anyone know if it's possible to amend the formula to exclude bank holidays? This would be linked to a list of dates.

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sickness Absence by Month

    JoeMac89,

    Which do you want amended? Bernie Deitrick's macro solution or mine?

  11. #11
    Registered User
    Join Date
    11-11-2015
    Location
    England
    MS-Off Ver
    Professional Plus 2010
    Posts
    5

    Re: Sickness Absence by Month

    Yours if that would be possible FlameRetired?

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sickness Absence by Month

    It has been awhile since I have looked at this. If memory is serving me this should work.

    I put a list of holidays that fall in the range of 'Entry' dates in K2:K13 of 'Entry'. I named it Holidays.

    The formula in B3:M7 'Overview' is now
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Sickness Absence by Month

    Quote Originally Posted by FlameRetired View Post
    It has been awhile since I have looked at this. If memory is serving me this should work
    I have to admit to being relieved when he asked for your version and not mine

  14. #14
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sickness Absence by Month

    @ Bernie Deitrick
    I have to admit to being relieved when he asked for your version and not mine
    LOL .... I don't blame you.

  15. #15
    Registered User
    Join Date
    11-11-2015
    Location
    England
    MS-Off Ver
    Professional Plus 2010
    Posts
    5

    Re: Sickness Absence by Month

    Hahaha.. appreciate your help with this guys!

  16. #16
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sickness Absence by Month

    You are most welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 9
    Last Post: 09-22-2015, 08:47 AM
  2. Calculating Total Sickness in a rolling 12 month Period
    By china in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-08-2015, 08:04 AM
  3. count occasions of sickness
    By Nickyh1984 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-19-2014, 08:01 PM
  4. Rolling 12 month formula for calculating absence
    By keileyoneill in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-03-2014, 09:52 PM
  5. Calculate sick absence by days per month.
    By Pegs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-10-2013, 06:57 AM
  6. Sickness Absence Monitoring Form
    By simonelvin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-04-2013, 07:44 PM
  7. Sickness Analysis
    By pearson in forum Excel General
    Replies: 4
    Last Post: 06-08-2010, 06:36 PM

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