jparks1015
New Member
- Joined
- Nov 27, 2017
- Messages
- 10
I used the formula below in a monthly work schedule I am creating. The schedule reads (Time Out - Time In) - (Lunch out - Lunch in) to give me a total number hours worked for each employee, minus their 30 minute lunch break. The schedule is on one tab and the data is on another. I was originally getting the ### error if cells were blank when the employee was not working that day. In my data sheet, I have the total hours per day, separated out. When I sum all the hours worked for that person, that month, It looked like the sum was correct. I was getting a number close but it was not correct. It was deducting 30 minutes from each cell that had the error.
=(DECEMBER!N8-DECEMBER!M8)-(DECEMBER!$AB$7-DECEMBER!$AA$7)
I then used this formula (below) which corrected the ### error and sums correctly however, it does not subtract the lunch break.
=IF(AND(ISNUMBER(DECEMBER!K6),ISNUMBER(DECEMBER!J6)),DECEMBER!K6-DECEMBER!J6,"")
I need to know how to adapt the new formula to also subtract the lunch break.
=(DECEMBER!N8-DECEMBER!M8)-(DECEMBER!$AB$7-DECEMBER!$AA$7)
I then used this formula (below) which corrected the ### error and sums correctly however, it does not subtract the lunch break.
=IF(AND(ISNUMBER(DECEMBER!K6),ISNUMBER(DECEMBER!J6)),DECEMBER!K6-DECEMBER!J6,"")
I need to know how to adapt the new formula to also subtract the lunch break.