G
Guest
The following equation does what most of what I want. All values are times with the format h:mm.
=IF(OR(C2="YES",C2=""),IF(AND(E2>=D2,G2>=F2,I2>=H2),(E2-D2)+(G2-F2)+(I2-H2),"Time missing or mistyped"),"OFF").
An example of what it doesn't do is allow me to see a total for rows where G2<F2 and/or I2<H2 when E2>=D2.
I'd like to make it flexible enough to SUM only the combinations that return a positive value while ignoring the others. This would allow me to have a running total instead of the text message "Time missing or mistyped."
Thanks,
tj
=IF(OR(C2="YES",C2=""),IF(AND(E2>=D2,G2>=F2,I2>=H2),(E2-D2)+(G2-F2)+(I2-H2),"Time missing or mistyped"),"OFF").
An example of what it doesn't do is allow me to see a total for rows where G2<F2 and/or I2<H2 when E2>=D2.
I'd like to make it flexible enough to SUM only the combinations that return a positive value while ignoring the others. This would allow me to have a running total instead of the text message "Time missing or mistyped."
Thanks,
tj