how to determine duration of meal break in timesheet (working with times)

  • Thread starter Thread starter Max
  • Start date Start date
M

Max

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.
 
Max said:
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 said:
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.
 
Back
Top