jparks1015
New Member
- Joined
- Nov 27, 2017
- Messages
- 10
I have a worksheet set up as a schedule for 8 people, for the entire month.
Z6 & Y6 have the start time & end time of this persons shift on a specific date (if they are not working it's left blank).
If there are work times in the cells, I want it to subtract the end time from the start time (which usually equals 8.5hours).
I then want it to subtract the lunch break.
AB5 & AA5 are the lunch in and lunch out times for all workers.
My current formula is working and is pasted below.
=IF(AND(ISNUMBER(FEBRUARY!Z6),ISNUMBER(FEBRUARY!Y6)),(FEBRUARY!Z6-FEBRUARY!Y6)-(FEBRUARY!$AB$5-FEBRUARY!$AA$5),"")
What I want to do now is, have the formula calculate Z6-Y6 and... IF the answer is more than 8 hours, subtract the lunch break. If it is less than 8 hours, I don't want it to subtract the lunch break.
Is this possible? If so, can you show me how to add this variable to the current formula?
Z6 & Y6 have the start time & end time of this persons shift on a specific date (if they are not working it's left blank).
If there are work times in the cells, I want it to subtract the end time from the start time (which usually equals 8.5hours).
I then want it to subtract the lunch break.
AB5 & AA5 are the lunch in and lunch out times for all workers.
My current formula is working and is pasted below.
=IF(AND(ISNUMBER(FEBRUARY!Z6),ISNUMBER(FEBRUARY!Y6)),(FEBRUARY!Z6-FEBRUARY!Y6)-(FEBRUARY!$AB$5-FEBRUARY!$AA$5),"")
What I want to do now is, have the formula calculate Z6-Y6 and... IF the answer is more than 8 hours, subtract the lunch break. If it is less than 8 hours, I don't want it to subtract the lunch break.
Is this possible? If so, can you show me how to add this variable to the current formula?
Last edited: