• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Calculate datetime fields

Wilco()

Member
I have in cell A1:
2016-09-01 00:06:05
Excel date serial (formatted as general)= 42614,004224537

I have in cell B1
2016-09-03 16:37:07
Excel date serial (formatted as general)= 42616,6924421296

A1 is the start time
B1 is the end time

I like to have the difference in minutes. Basically B1-A1

I have been tinkering with this. When I just perform B1-A1 I get the difference in time: 16:31 (formatted as time). The date difference seems neglected.

How to do this?
 
Hi ,

To add to what Marc has posted , a cell format of [mm] will display 3871 , which is the integer number of minutes.

Narayan
 
Hi ,

The brackets allow spillover to be reflected in the displayed value.

For hours , the maximum possible in a day is 23 ; 24 hours is basically 1 day and 0 hours ; 37 hours is 1 day and 13 hours.

Thus , if the underlying value is 37 hours , if the cell format is hh , Excel will display 13 ; if the cell format is [hh] , Excel will display 37.

The same is the case with minutes , for which the maximum possible is 59.

If you need to display a value of minutes which is greater than 59 , you need to use a format [mm].

Narayan
 
Back
Top