+ Reply to Thread
Results 1 to 2 of 2

Time difference between two date/time values which are in the format DD-MM-YYY HH:MM

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    Canada
    MS-Off Ver
    ms365
    Posts
    79

    Time difference between two date/time values which are in the format DD-MM-YYY HH:MM

    Hi there,

    I am using Text(Now(),"DD-MM-YYY HH:MM") format for date time. I want time difference between two date/time.

    for example

    cell one would have: 25-05-2020 05:30
    cell two would have: 25-05-2020 06:30

    I want cell three to give me 60min

    can I use the DATEDIFF function? if so, how can I Implement it?

    any help would be appreciated, thanks in advance

    SN
    Last edited by snkhan; 06-01-2020 at 05:44 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2407
    Posts
    26,153

    Re: Time difference between two date/time values which are in the format DD-MM-YYY HH:MM

    Do not use TEXT(NOW(),"DD-MM-YYYY HH:MM"). This returns a text string, not a date/time value, so it's convoluted to do arithmetic with it. Just use NOW(), and use Format for how you want the cell to look.

    DATEDIF only does date calculations. It won't give you the difference in minutes.

    To get the difference in minutes:

    =(B1-A1)*24*60
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Time Difference between two date format
    By sajit4134 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 07-19-2014, 08:59 AM
  2. [SOLVED] Time in Time format and text foramt - Finding the Hours difference
    By thilag in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2013, 07:14 AM
  3. Date format and difference in time
    By tampatim in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2013, 04:12 PM
  4. Calculation of time difference between the Start date & time & End Date & time
    By Harry Jones in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-17-2012, 03:54 PM
  5. [SOLVED] Caculating the Time difference from Start & end date/time excludin weekends & non ofce hrs
    By Harry Jones in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-08-2012, 06:25 AM
  6. [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
  7. Time Difference in hours between two date time stamps
    By Cipher in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-17-2010, 10:24 AM

Tags for this Thread

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