+ Reply to Thread
Results 1 to 5 of 5

Based on attendance calculate overtime and absent hours in seperate sheet

  1. #1
    Registered User
    Join Date
    10-05-2018
    Location
    Oman
    MS-Off Ver
    2007
    Posts
    3

    Post Based on attendance calculate overtime and absent hours in seperate sheet

    Good Morning Everyone,

    I have a data in which I calculate the overtime and absenteeism manually for every employee based on the below conditions.

    1. Staff should work for 12 hours per day.
    2. More than 12 hours worked is treated as overtime.
    3. Less than 12 hours worked treated as absent hours.
    4. Staff is eligible for one day off per week (rotational)Every seventh day from last off taken is off day.
    5. If the staff has worked on 7th day after last off will be treated as overtime.
    6. Absent is marked as "A" and treated as 12 hours absent.
    I need to capture the summary date wise, staff wise in a different sheet by matching above criteria. I have attached the example file which I have calculated.
    Please help if the same can be done in a smarter way.

    Thank you,
    Skand Kamat
    Attached Files Attached Files
    Last edited by skandxl; 10-05-2018 at 02:45 AM. Reason: Attachment

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Based on attendance calculate overtime and absent hours in seperate sheet

    12 hours a day, 6 days a week, all a standard pay; those are onerous working conditions. The irony is you think your job is too hard.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    10-05-2018
    Location
    Oman
    MS-Off Ver
    2007
    Posts
    3

    Re: Based on attendance calculate overtime and absent hours in seperate sheet

    Quote Originally Posted by AlphaFrog View Post
    12 hours a day, 6 days a week, all a standard pay; those are onerous working conditions. The irony is you think your job is too hard.
    I didnt say my job is too hard Mr. Frog. I just asked is there a smarter or better way to do it. I am sure this can be done, as I am new to VBA or Macro asked for guidence.
    Last edited by skandxl; 10-05-2018 at 08:04 AM.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Based on attendance calculate overtime and absent hours in seperate sheet

    This will be in the form of "some help" as in making the identification of OT and Abs hours more automatic on the 'Attendance' sheet.
    The range AH3:BE44 is populated using: =AND(SUMPRODUCT(--(ISNUMBER(D3:J3)))=7,COUNTIF(AB3:AG3,FALSE)=6)
    The following formula is applied as conditional formatting to J3:AG44 =AH3=TRUE (fill = yellow)
    The following formulas are applied as conditional formatting to D3:AG44
    1) =AND(ISNUMBER(D3),D3>12) (fill = blue)
    2) =AND(ISNUMBER(D3),D3<12) (font = red)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    10-05-2018
    Location
    Oman
    MS-Off Ver
    2007
    Posts
    3

    Re: Based on attendance calculate overtime and absent hours in seperate sheet

    Thank you Sir, I had worked out few things on the sheet, but I was struggling to find the 7th day OT automatically. I am trying to understand the functions you have used. I will ask if I find any difficulties in understanding. Thank you once again.

+ 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. Time Sheet to calculate overtime only after or before certain hours.
    By oceanlife83 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-03-2017, 10:21 PM
  2. [SOLVED] Formula required for Attendance Sheet for Present Absent and Manual
    By prkhan56 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-26-2015, 12:06 PM
  3. Formula to calculate regular hours and overtime hours
    By judojames in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2014, 05:30 PM
  4. Replies: 2
    Last Post: 01-17-2014, 02:22 PM
  5. [SOLVED] 40 Hours per week / how to calculate overtime hours
    By hudsonic72 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2013, 02:33 AM
  6. Subtracting hours from time to calculate overtime hours
    By nabilishes in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-16-2012, 08:56 AM
  7. Replies: 2
    Last Post: 06-25-2012, 09:30 AM

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