Break Lunch Adherence

James14

New Member
Joined
Mar 14, 2011
Messages
5
Hey Guys, Need a bit of help again, I need to create a report that will look at the time that a group of people are logged in and then based off of how long they were staffed, tell me how many minutes they should be in break and lunch.

Ex.

If an employee is logged in for 2Hrs 10min they get a 10min break
If an employee is logged in for 4-5 Hrs they get a 15 min break
If an employee is logged in for 5.5-6.5 hours they get a 15min break and 30 min lunch
If an employee is logged in for 7.0 -11.5 hours two 15min breaks and one 30 min lunch
If an employee is logged in for 12 hours three 15min breaks, plus one 30 lunch.

the report I have pulled shows name and staffed time.

I have flirted with the Idea of a macro and assigning variables... and a nested if statement... but not quite sure on how to get there... Hope there is help to get on this..

Thanks guys
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
How about a lookup table:

Excel Workbook
ABCDE
1Worked HoursCalculated breakLookup table of breaks
201:00No break0No break
302:00No break02:1010mins
403:0010mins04:0015 min
503:5910mins05:3015min+30 min lunch
604:0015 min07:00two 15min breaks and one 30 min lunch
705:2915 min12:00three 15min breaks and one 30 min lunch
805:3015min+30 min lunch
906:5915min+30 min lunch
1007:00two 15min breaks and one 30 min lunch
1111:30two 15min breaks and one 30 min lunch
1211:59two 15min breaks and one 30 min lunch
1312:00three 15min breaks and one 30 min lunch
Sheet13
 
Upvote 0
I think thats it, it seems far too simple to have worked... But its returning exactly what I need... Could I have been overthinking this? You rock! lol thanks again
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,315
Members
449,218
Latest member
Excel Master

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