Thanks for sharing the details, Toby! Your current formula goes wrong because you’re using * instead of nested IFs or correct logical structures. The syntax is not valid Excel logic order.
Try this instead:
=IF(AND(C2>=TIME(4,0,0),C2<=TIME(5,59,0)),C2-TIME(0,15,0),
IF(AND(C2>=TIME(6,0,0),C2<=TIME(7,59,0)),C2-TIME(0,30,0),
IF(AND(C2>=TIME(8,0,0),C2<=TIME(8,59,0)),C2-TIME(1,0,0),
IF(AND(C2>=TIME(9,0,0),C2<=TIME(11,59,0)),C2-TIME(1,30,0),
C2))))
You “nest” the IFs to test multiple time ranges. Each condition checks the total worked time (C2).
See if this helps. If you need further assistance just let me know.
Best regards,
Kimberly