Hi
I am trying to calculate the hours worked in a day with or without a lunch break
so i have
A1 | B1 | C1 | D1
time in | lunch start | lunch End | time out
I have the formula
=SUM(IF(B1<A1,B1+1,B1)-A1,If(D1<C1,D1+1,D1)-C1)
so i can calculate the time, when there is a break added, but i need to be able to calculate the time, when there are no values in B1 AND C1 and when there is just a value in B1 it calculates the total time with out a break, and the same for C1
Bookmarks