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

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.
 
J

joeu2004

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.
 
M

Max

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top