Hello:
I am attempting to solve a problem with either formatting or the equation itself to display a numerical value.
In cells "D" & "E" I have a custom format to display a time value in military time without entering in the the colon >>>formatting 00\:00<<<. This solved the problem of entering in a colon each time I needed to enter in a time. i.e if 1330 is entered in the cell the formatting converts to 13:30.
What I needed to do secondly is calculate the time difference between cells "D" & "E". So 13:30 in cell "D" and 1400 in cell "E". The difference is 30mim as time however its 70 when excel calculates the difference due to excel reading 13:30 and 14:00 as 1400 - 1330 which = 70. OK so I understand that issue and found away around it.
The formula I found works to calculate what I'm needing and looks like this >> =TEXT(E4,"00\:00")-TEXT(D4,"00\:00")+(E4>D4) <<. This equation functions to work the math to the correct outcome i.e 14:00 - 13:30 = 30. The formatting in the calculation cell is set to custom hh:mm which displays the math as 00:30.
(I hope that explained what I've done and where I'm at now)
What I need to know how to do is either a calculation modification to convert 00:30 to read 30 for 30min or 120 for 2hrs and so on such as 2hrs 45min reads 165. Or is custom formatting or even conditional formatting that could be used to display the time the way I'm needing?
Also I tried to use the equation and /24 to see if that worked and tried every formatting option excel had to offer
Bookmarks