I'm betting that if you put 13:00 into F, it would work.
It's probably taking 1:00 as 1:00am, and subtracting gives you a negative number. Formatting the negative number as a date/time is going to be problematic.
No matter the format you still need the end time to be greater that the start time for the subtraction to give a positive number. Excel only can show positive times, or you get the ####.
So keep the format with AM / PM but you will have to haven ending time as 1:00 PM. not 1:00 AM.
Start
End
End - Start
9:00 AM
1:00 PM
04:00:00
Or is the 1:00 AM from the next day? If thats so you will have to add the date to the calculation.
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.