When you are using Excel, it is wise to ask in a forum specialised on Microsoft software. This place is for LibreOffice, which is a different (albeit similar) software suite.
See techcommunity.microsoft.com
Many answers for Calc will also be suitable for Excel, but in some cases you will see different behavior. One case is with “negative time” which (as you discovered) Excel can’t handle properly.
- Excel will fill the cell with “number sign” or hash characters to signify error.
#########
- Calc would give you the result
-14:00:00
(which is technically correct, but not the result you are after).
For time calculations in spreadsheets, the unit is “day”. For both apps, when you have a timespan crossing midnight, you have to add 1 to the calculation to signify “one day later”. How you do that, depends on how you have organised your timesheet. It may appear in the “end time” input cell, a separate cell for “date count” if you have long shifts (several days), or in your formula (conditional “If end time is before start time add 1”) if shifts are always shorter than 24 hours.