+ Reply to Thread
Results 1 to 4 of 4

Calculating minutes between days

  1. #1
    Registered User
    Join Date
    04-10-2012
    Location
    Maine, USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Calculating minutes between days

    I was having issues calculating the minutes between two dates and having the results returned as a whole number. Found this formula worked best:
    =IF(I1<>0,(DAY(I1-H1)*60*24+HOUR(I1-H1)*60+(MINUTE(I1-H1))),0)

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Calculating minutes between days

    Hi Dextah, welcome to the forum.

    You could also use just:

    =(I1-H1)*1440

    or this if you still wanted to check if I1 was 0:

    =IF(I1<>0,(I1-H1)*1440,0)

  3. #3
    Registered User
    Join Date
    06-08-2012
    Location
    Vietnam
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Calculating minutes between days

    Quote Originally Posted by Dextah68 View Post
    I was having issues calculating the minutes between two dates and having the results returned as a whole number. Found this formula worked best:
    =IF(I1<>0,(DAY(I1-H1)*60*24+HOUR(I1-H1)*60+(MINUTE(I1-H1))),0)
    Hi Dextah68,
    My suggestion is: why don't you use DAYS360 funciton of excel. The syntax is DAYS360(Startday, endday).

    End day may be today. In my example, to get the day today, i set the formulas: "=today" for endday
    If my expalanation is not satified/ corrected to your point, you may see it as an example
    Cheer,

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Calculating minutes between days

    Hi Miut,

    This thread is two months old and has not had a response from the original author. I'm also not sure how the DAYS360 function would be used to calculate time in minutes (without additional functionality added to the formula), per the author's request. DAYS360 is not even an accurate date-counting function, let alone minute-counting.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1