A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Sharon,
Based on my understanding of your problem from the revised file,
pls try the following formulas and see if you get the desired answers for various combinations.
Pls let me know if there is any thing going not as expected.
In cell G2 copy the formula
=IF(C2="O","",IF(C2="SA",0,MAX((F2-E2-"0:45"),VLOOKUP(C2,'Shift Times'!$A$1:$D$10,4,0))))
In cell H2 copy the formula
=IF(C2="O","",IF(C2="SA","12:00"-E2,""))
In cell I2 copy the formula
=IF(C2="O","",IF(C2="SA",F2-"12:00",""))
You can then copy these formulas down below for all the other scenarios/combinations.
Hope this is Helpful.