+ Reply to Thread
Results 1 to 5 of 5

Calculating Time difference in minutes

  1. #1
    Registered User
    Join Date
    06-16-2017
    Location
    Sydney
    MS-Off Ver
    2016
    Posts
    6

    Calculating Time difference in minutes

    Can anyone help me with an excel formula to calculate time without having to put colon in between hours and minutes?

    I have a formula that works with the colon but I need one without, in a 24 hour format.

    example:

    1400 & 1515 = 75

    NOT 14:00 & 15:15.

    I'm trying to make an excel file for use in flight as a pilot and I just want something simple to just punch in as 24 hour, 4 digit format without mucking around to bring up the colon separator.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: Calculating Time difference in minutes

    A1 = 1400

    B1 = 1515

    Try:

    =(TEXT(B1,"0\:00")-TEXT(A1,"0\:00"))*1440

  3. #3
    Registered User
    Join Date
    06-16-2017
    Location
    Sydney
    MS-Off Ver
    2016
    Posts
    6

    Re: Calculating Time difference in minutes

    Worked Amazing! Many thanks and this forum has helped yet again
    Last edited by AliGW; 01-01-2018 at 02:10 AM. Reason: Unnecessary quotation removed.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Calculating Time difference in minutes

    Here is my tweak on this excellent solution, just in case the time entered goes past midnight:

    =(TEXT(IF(B1<A1,B1+2400,B1),"0\:00")-TEXT(A1,"0\:00"))*1440

    Data Range
    A
    B
    C
    D
    1
    2300
    115
    135
    =(TEXT(IF(B1<A1,B1+2400,B1),"0\:00")-TEXT(A1,"0\:00"))*1440
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Calculating Time difference in minutes

    It's not the answer to your question, but I use Autocorrect to help me with entering times. I have '++' set to autocorrect to ':' so that I can enter 14++35 and get the time 14:35 without leaving the number pad on my computer.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 12-02-2015, 09:08 AM
  2. [SOLVED] Calculation Time difference between two date in minutes
    By nur2544 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-01-2015, 11:37 AM
  3. [SOLVED] Convert Date/Time Difference to total Minutes
    By Beachmonkey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2014, 03:05 PM
  4. get time and date difference based on the hour or minutes given
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-05-2013, 03:09 PM
  5. [SOLVED] Subtract date/time from data/time and get difference in minutes
    By zit1343 in forum Excel General
    Replies: 2
    Last Post: 06-18-2012, 11:23 AM
  6. Calculating difference in times as hours and minutes
    By Andrea112233 in forum Excel General
    Replies: 3
    Last Post: 08-10-2009, 10:23 AM
  7. Calculating time difference in minutes
    By jonhunt in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-03-2006, 03:50 PM

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