• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to calculate hours worked in a day excluding overlap hours

India User

New Member
Hi,

I have few records with start and End times of each resource. One resource can have multiple start and end times since he is working on multiple tasks.

If the user have overlapping hours [ i.e. if he is doing multiple tasks at the same time ] I do not need those hours. I need the exact actual hours the person was working in a day.

i.e

Emp Task start end Actual hrs worked in a day
Peter Task1 10-01-2017 10:00 10-01-2017 13:00 03:00
Peter Task2 10-01-2017 10:30 10-01-2017 14:00 01:00
Peter Task3 10-01-2017 11:30 10-01-2017 13:30
Peter Task4 10-01-2017 15:00 10-01-2017 17:00 02:00


As you can see we have to consider only 1 hr for Task2 [13:00 to 14:00 ] since I have already considered time till 13:00 in task1.


we have to consider only 0 hr for Task3 since I have already considered time from 11:30-13:30 in task1


Infact I need the 'Actual hrs worked in a day' per resource in a single cell. What formula should I apply. Please help.


File attached for your reference.
 

Attachments

  • OverlapWorkHrs.xlsx
    18.5 KB · Views: 4
Press [Do It]-button
and
You would get values.
'My Qn' layout have to be like in Your sample!
There could be something
... but with this data it works!
> Ideas?
 

Attachments

  • OverlapWorkHrs.xlsb
    36.7 KB · Views: 11
Back
Top