Excel Time Comparission for marking Idle Hrs. Please help guys

sibin

New Member
Joined
Jun 29, 2014
Messages
2
I have to calculate the idle Hrs of a working employee.

Three shifts are there.

Morning 7AM to 3PM
Evening 3PM to 11PM
Night 11 PM to 7AM.

Also if overtime then shift pattern is

Morning 7AM to 7PM
Evening 11AM to 11PM
Night 7PM to 7AM.

So the in time for an employee will be based on the above time range.

Example:

We have idle Hrs for the following time set.

10:20:00 AM to 10:40:00 AM = 00:20:00
10:40:00 AM to 11:25:00 AM = 00:45:00
02:40:00 PM to 03:00:00 PM = 00:20:00
03:00:00 PM to 03:30:00 PM = 00:30:00
03:45:00 PM to 05:15:00PM = 01:25:00


One of the employee came at 07:13:46AM and leaving office at 07:19:26PM. So based on the above idle Hrs she has 03:20:00 hrs idle.

So the idle time may change for each day. Based on the in time i need the total idle Hrs.

Please help me in this...

<colgroup><col span="2"><col></colgroup><tbody>
</tbody>
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
why are they idle, not enough work (but ready to do whats available) or they loaf off and are missing.

The first instance they are productive

measuring an employees time in seconds seems overly officious
 
Upvote 0
One of the employee came at 07:13:46AM and leaving office at 07:19:26PM. So based on the above idle Hrs she has 03:20:00 hrs idle.

That 03:20:00, is that a typo? I calculate 03:25:00!

Check out this post. I had a similar problem.

In that post I got a very satisfying solution from Peter_SSs
Don't forget to have a look at the given solutions by Andrew Poulsom.
See, if it fits your needs.

ABCDEFG
1FromTillIdle
FromTillIdle
210:2010:4000:2007:1319:190:20
310:4011:2500:450:45
414:4015:0000:200:20
515:0015:3000:300:30
615:4517:1501:301:30
7
803:25Total idle>>>3:25

<tbody>
</tbody>

Formula goes in G2

=MAX((B2-A2-MAX(0;E$2-A2)-MAX(0;B2-F$2));0)

Drag down

Credits go to: Peter_SSs
 
Last edited:
Upvote 0
That 03:20:00, is that a typo? I calculate 03:25:00!

Check out this post. I had a similar problem.

In that post I got a very satisfying solution from Peter_SSs
Don't forget to have a look at the given solutions by Andrew Poulsom.
See, if it fits your needs.

ABCDEFG
1FromTillIdle
FromTillIdle
210:2010:4000:2007:1319:190:20
310:4011:2500:450:45
414:4015:0000:200:20
515:0015:3000:300:30
615:4517:1501:301:30
7
803:25Total idle>>>3:25

<tbody>
</tbody>

Formula goes in G2

=MAX((B2-A2-MAX(0;E$2-A2)-MAX(0;B2-F$2));0)

Drag down

Credits go to: Peter_SSs


I getting invalid message...
 
Upvote 0
maybe change ; for , it can be system settings dependant
 
Upvote 0
I getting invalid message...

maybe change ; for , it can be system settings dependant

Correct, Dutch version uses ; as separator while US of A uses ,
Always have trouble with that. Especially with array's.
International = Comma for Columns and Semi colon for Rows
Dutch = \ for Columns and Semi colon for Rows
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,559
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top