Forum Discussion
Hugh Finerty
Nov 10, 2017Copper Contributor
Calculate difference between two times in Excel for Mac
I had to separate the times from the date columns that were formatted as date and time. After I separated out the times, I applied the simple formula =N2-O2 to calculate the time differential. But, i...
- Nov 11, 2017
Hi Hugh,
If negative elapsed time is the case you may use text to show it
=IF(H2-G2 <0, "-" & TEXT(G2-H2, "[HH].mm.ss"), H2-G2)
more details at
https://excelribbon.tips.net/T006239_Displaying_Negative_Times.html
Please see file attached
SergeiBaklan
Nov 11, 2017Diamond Contributor
Hi Hugh,
Better for the difference of time to use
=H2-G2
and apply custom format
[hh]:mm:ss
You only will have kind of formatting error if the time is negative (received time is earlier than start time)
- Hugh FinertyNov 11, 2017Copper Contributor
Thank you, Sergei!
- Hugh FinertyNov 11, 2017Copper Contributor
Any suggestions as to how to deal with the ones that arrived earlier than scheduled? The other ones worked perfectly.
- SergeiBaklanNov 11, 2017Diamond Contributor
Hi Hugh,
If negative elapsed time is the case you may use text to show it
=IF(H2-G2 <0, "-" & TEXT(G2-H2, "[HH].mm.ss"), H2-G2)
more details at
https://excelribbon.tips.net/T006239_Displaying_Negative_Times.html
Please see file attached