Formula for calculating time

G

Guest

I am establishing a Timesheet for our business in Excel. I have cells for
"In" , "Lunch Out", "Lunch In" and "Out" that employees will enter their
times (in military time). Need the formula that will calculate the total
hours for the day, subtracting out for the lunch break.

Thanks!
 
B

Biff

Hi!

B2 = time in
C2 = lunch out
D2 = lunch in
E2 = time out

Total =IF(C2="","",(E2-D2+(D2>E2)+C2-B2+(B2>C2)))

Returns in the format of h:mm - 8:45

For a return in decimal format - 8.75

=IF(C2="","",(E2-D2+(D2>E2)+C2-B2+(B2>C2))*24)

Biff
 

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