+ Reply to Thread
Results 1 to 6 of 6

calculate the overtime of every employee for every area

  1. #1
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    774

    calculate the overtime of every employee for every area

    Hello Everyone
    -Sheet "Attendance contains the full timing of employees
    -In this sheet"Report",every employee work in multiple areas
    -I want to calculate the overtime of every employee for every area
    Find the attachment
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: calculate the overtime of every employee for every area

    how do you decide area A or B?

  3. #3
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    774

    Re: calculate the overtime of every employee for every area

    Quote Originally Posted by tim201110 View Post
    how do you decide area A or B?
    1- copy and paste wastes my time,because I have hundreds of employees.
    2-don't take care of "area a or b", overtime depends on attendance
    See the helping columns in " attendance " sheet ,and you will understand what I want

  4. #4
    Forum Contributor
    Join Date
    12-13-2013
    Location
    Calgary,AB,Canada
    MS-Off Ver
    2016,O365
    Posts
    236

    Re: calculate the overtime of every employee for every area

    AG3=SUMPRODUCT((Attendance!$B$3:$B$31=B3)*(Attendance!$C$2:$AF$2-0>16)*(Attendance!$C$3:$AF$31))*24-SUMPRODUCT((Attendance!$B$3:$B$31=B3)*(Attendance!$C$2:$AF$2-0>16)*(Attendance!$C$3:$AF$31>0)*1)

    AG13=SUMPRODUCT((Attendance!$B$3:$B$31=B13)*(Attendance!$C$2:$AF$2-0<17)*(Attendance!$C$3:$AF$31))*24-SUMPRODUCT((Attendance!$B$3:$B$31=B13)*(Attendance!$C$2:$AF$2-0<17)*(Attendance!$C$3:$AF$31>0)*1)

  5. #5
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    774
    Quote Originally Posted by CAABYYC View Post
    AG3=SUMPRODUCT((Attendance!$B$3:$B$31=B3)*(Attendance!$C$2:$AF$2-0>16)*(Attendance!$C$3:$AF$31))*24-SUMPRODUCT((Attendance!$B$3:$B$31=B3)*(Attendance!$C$2:$AF$2-0>16)*(Attendance!$C$3:$AF$31>0)*1)

    AG13=SUMPRODUCT((Attendance!$B$3:$B$31=B13)*(Attendance!$C$2:$AF$2-0<17)*(Attendance!$C$3:$AF$31))*24-SUMPRODUCT((Attendance!$B$3:$B$31=B13)*(Attendance!$C$2:$AF$2-0<17)*(Attendance!$C$3:$AF$31>0)*1)
    Thank you sir for your reply
    1-Your formula gives me wrong results
    2-I think your formula needs editing for every employee,but I want a fixed formula for all employees

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: calculate the overtime of every employee for every area

    AG3 =SUMPRODUCT((Attendance!B$3:B$31=B3)*(C3:AF3<>"")*(Attendance!C$3:AF$31))*24-SUMPRODUCT((Attendance!B$3:B$31=B3)*(C3:AF3<>"")*(Attendance!C$3:AF$31>0))*8

+ 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: 3
    Last Post: 01-21-2016, 06:07 PM
  2. Replies: 7
    Last Post: 10-07-2014, 10:00 PM
  3. Employee Overtime Management
    By clkpd7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-21-2013, 03:27 AM
  4. Replies: 0
    Last Post: 03-19-2013, 05:08 PM
  5. Replies: 5
    Last Post: 06-13-2012, 01:51 AM
  6. employee timesheet with overtime
    By tatehebert1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-02-2008, 11:53 PM
  7. Employee overtime payment
    By gomumy97 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-01-2007, 05:55 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