+ Reply to Thread
Results 1 to 11 of 11

Calculating % Sickness based on days in month

  1. #1
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    355

    Calculating % Sickness based on days in month

    Currently the workbook i am using calculates % Sickness based on FTE (Full Time Equivalent) * 37.5
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    where:

    G:G - Hours lost in month to sickness
    Master Staff Database.xlsm]Staffing details'!$K$107 - FTE figure

    What I am wanting to do is calculate this for the actual number of days in the month, but currently EVERY month only assumes that everyone works 37.5 hours a week, but i would like to effectively calculate

    Sickness/(FTE*(37.5/(5*Days_In_Month)))

    i know I could add 12 Embedded IF Statements, but i am sure there is a more appropriate way of calculating it.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Calculating % Sickness based on days in month

    You can use this to calculate/return the last day of the month (for a date in cell A2):
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Calculating % Sickness based on days in month

    Thanks for the rep.

  4. #4
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    355

    Re: Calculating % Sickness based on days in month

    Thanks Trevor.

    I now have
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I appreciate 37.5*4/28 could be simplified as they are constant, but I wanted to make sure that if/when I left whoever uses the Workbook can simply see the maths rather than seeing a "random" 5.35714.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Calculating % Sickness based on days in month

    If you want the maths to be clear and obvious, I would create a Control sheet and declare all the constants there. If you then create (fixed) Named Ranges to refer to them, you can use those Named Ranges in your formula(e).

    NR1: 37.5
    NR2: 4
    NR3: 28

    Choose appropriate names. You can even add descriptions when you create the Named Ranges.

    Then your formula can be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    355

    Re: Calculating % Sickness based on days in month

    TBF I've never really thought of using Named_Range for single cells.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Calculating % Sickness based on days in month

    Ah, NR1, etc, looks like a cell reference . But give them meaningful names like HoursPerWeek, or HrsPerWk. Readability can suffer from brevity

  8. #8
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    355

    Re: Calculating % Sickness based on days in month

    Data is on a separate worksheetAttachment 862159

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Calculating % Sickness based on days in month

    The attachment is invalid. Not sure where you are going with this. The last couple of posts aren't questions.

  10. #10
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    355

    Re: Calculating % Sickness based on days in month

    Taken on board what you said about data looking like Cell References so have changed it to
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Calculating % Sickness based on days in month

    Ok. Not sure about Full_Time_WTE, but, if that is a term that has meaning to you/others/your successor, that's fine

+ 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. 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
  2. Replies: 6
    Last Post: 09-06-2005, 03:05 AM
  3. [SOLVED] Calculating recurring date in following month, calculating # days in that period
    By Walterius in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 02:05 AM
  4. [SOLVED] Calculating recurring date in following month, calculating # days in that period
    By Walterius in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 12:05 AM
  5. [SOLVED] Calculating recurring date in following month, calculating # days in that period
    By Walterius in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-05-2005, 11:05 PM
  6. [SOLVED] Calculating recurring date in following month, calculating # days in that period
    By Walterius in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-05-2005, 10:05 PM
  7. [SOLVED] Calculating recurring date in following month, calculating # days in that period
    By Walterius in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-04-2005, 07:05 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