+ Reply to Thread
Results 1 to 11 of 11

how to calculate hours between 2 different dates in excel

  1. #1
    Registered User
    Join Date
    04-08-2017
    Location
    india
    MS-Off Ver
    MAC
    Posts
    5

    how to calculate hours between 2 different dates in excel

    how to calculate hours between 2 different dates in excel

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: how to calculate hours between 2 different dates in excel

    Welcome to the forum,

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: how to calculate hours between 2 different dates in excel

    Suppose your date in cell "A2" & "B2" (format as : dd/mm/yyyy h:mm)

    For column "C" Formatting : h:mm:ss AM/PM
    Formula in "C2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Registered User
    Join Date
    04-08-2017
    Location
    india
    MS-Off Ver
    MAC
    Posts
    5

    Re: how to calculate hours between 2 different dates in excel

    I have 4 cells , 2 with dates & 2 with time like
    A2-Start Date
    A3-End date
    B2-Start Time
    B3-End Time

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: how to calculate hours between 2 different dates in excel

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    04-08-2017
    Location
    india
    MS-Off Ver
    MAC
    Posts
    5

    Re: how to calculate hours between 2 different dates in excel

    It shows only hour difference but days difference is not getting picked

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,262

    Re: how to calculate hours between 2 different dates in excel

    As was requested before in post #2 of this thread, please supply the workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Registered User
    Join Date
    04-08-2017
    Location
    india
    MS-Off Ver
    MAC
    Posts
    5

    Re: how to calculate hours between 2 different dates in excel


  9. #9
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: how to calculate hours between 2 different dates in excel

    Quote Originally Posted by harwant View Post
    It shows only hour difference but days difference is not getting picked
    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    04-08-2017
    Location
    india
    MS-Off Ver
    MAC
    Posts
    5

    Re: how to calculate hours between 2 different dates in excel

    Screen Shot 2017-04-08 at 1.09.51 PM.png
    Cant this be in C3 format i.e., hh:mm:ss format

  11. #11
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: how to calculate hours between 2 different dates in excel

    Quote Originally Posted by harwant View Post
    Attachment 511611
    Cant this be in C3 format i.e., hh:mm:ss format
    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Calculate hours between 2 dates - exclude weekend hours
    By awhitworth in forum Excel General
    Replies: 4
    Last Post: 05-26-2015, 03:32 AM
  2. [SOLVED] excel calculate hours from range of dates with end date
    By breadwinner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2013, 01:49 PM
  3. Excel formulas calculate working hours bet two dates with criteria
    By breadwinner in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-02-2013, 01:28 AM
  4. Excel Formula to calculate working hours between two dates excluding weekdays with wh
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-28-2013, 11:20 AM
  5. Replies: 2
    Last Post: 03-02-2013, 10:57 AM
  6. [SOLVED] Calculate Hours Between Two Dates and Times in Excel Exceeding 24Hours
    By Hikari in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-08-2012, 01:20 AM
  7. calculate hours between two dates
    By mmishra27 in forum Excel General
    Replies: 0
    Last Post: 02-08-2011, 07:25 AM

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