How can I calculate daily hours worked minus lunch to eual a decim

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

example IN 2:45AM, Lunch Out 12:00PM, Lunch In 1:00PM, Out 5:00PM
=13.25
 
Assuming
A2: start time
B2: Lunch out
C2: Lunch in
D2: End time


=((D2-A2)-(C2-B2))*24
 
This only works for AM times. If I want it to work for PM starts I have to ad
24.
How do I work it all into one formula that will work for both?
 
Assuming your times are in A1 to D1, then try this:

=(D1-C1+B1-A1)*24

Format the cell as number with 2 dp.

Hope this helps.

Pete
 
Pete_UK said:
Assuming your times are in A1 to D1, then try this:

=(D1-C1+B1-A1)*24

Format the cell as number with 2 dp.

Hope this helps.

Pete
 
Assuming
A2: start time
B2: Lunch out
C2: Lunch in
D2: End time

=((D2-A2+(A2>D2))-(C2-B2+(B2>C2)))*24
 
You are one Freak'n GENIUS, Theethless
mama!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 

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

Back
Top