+ Reply to Thread
Results 1 to 6 of 6

The difference between two dates

  1. #1
    Registered User
    Join Date
    04-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    35

    The difference between two dates

    hi
    I want to calculate the time between

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,697

    Re: The difference between two dates

    For a difference between two dates you can just subtract the smaller date from the larger, e.g.

    =B2-A2
    Audere est facere

  3. #3
    Registered User
    Join Date
    04-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: The difference between two dates

    I'm sorry there is an error
    Last edited by hesham63; 07-29-2011 at 03:53 PM.

  4. #4
    Registered User
    Join Date
    04-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: The difference between two dates

    I'm sorry there is an error

    I want to calculate the time between
    start tim 11:00 PM
    end time 3:00 AM

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: The difference between two dates

    One way
    =IF(A1>B1, 1-A1+B1,B1-A1)
    Format cell as custom h:mm
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Registered User
    Join Date
    04-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: The difference between two dates

    Thank you ........

+ 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