ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how to determine duration of meal break in timesheet (working with times) (https://www.excelbanter.com/excel-programming/444925-how-determine-duration-meal-break-timesheet-working-times.html)

Max[_8_]

how to determine duration of meal break in timesheet (working with times)
 
In a timesheet if a person works for fewer than five hours there is no
meal break.
Five hours or more the break is 30 minutes.
Six hours or more and the break is 45 minutes.

In this timesheet the times are entered in [h]:mm.

Don Guillett[_2_]

how to determine duration of meal break in timesheet (workingwith times)
 
On Sep 7, 6:02*am, Max wrote:
In a timesheet if a person works for fewer than five hours there is no
meal break.
Five hours or more the break is 30 minutes.
Six hours or more and the break is 45 minutes.

In this timesheet the times are entered in [h]:mm.



http://www.cpearson.com/excel/overtime.htm

joeu2004[_2_]

how to determine duration of meal break in timesheet (working with times)
 
"Max" wrote:
In a timesheet if a person works for fewer than five
hours there is no meal break.
Five hours or more the break is 30 minutes.
Six hours or more and the break is 45 minutes.
In this timesheet the times are entered in [h]:mm.


In the cell representing the meal time:

=if(A1<time(5,0,0),0,if(A1<time(6,0,0),time(0,30,0 ),time(0,45,0)))

where A1 is the time that person works.

Max[_8_]

how to determine duration of meal break in timesheet (workingwith times)
 
On Sep 8, 2:35*am, "joeu2004" wrote:
"Max" wrote:
In a timesheet if a person works for fewer than five
hours there is no meal break.
Five hours or more the break is 30 minutes.
Six hours or more and the break is 45 minutes.
In this timesheet the times are entered in [h]:mm.


In the cell representing the meal time:

=if(A1<time(5,0,0),0,if(A1<time(6,0,0),time(0,30,0 ),time(0,45,0)))

where A1 is the time that person works.


That's brilliant! Thank you.


All times are GMT +1. The time now is 08:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com