+ Reply to Thread
Results 1 to 3 of 3

Subtract Dates & Times From Multiple Cells To Get Duration

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    Crandall, Texas
    MS-Off Ver
    Excel 2007
    Posts
    15

    Question Subtract Dates & Times From Multiple Cells To Get Duration

    I need to derive the duration of an event from the start & end date & time entered in 4 seperate cells:

    Cell B4 = 05/10/2012
    Cell C4 = 23:34
    Cell D4 = 05/11/2012
    Cell E4 = 4:44

    I would like the resulting cell to display the duration, in this case it should be "5:10"(5 hours, 10 minutes). I tried =(CONCATENATE(D4," ",E4))-(CONCATENATE(B4," ",C4)) and formatted the cell as "Custom [hh]:mm", but that resuted in the #VALUE! error.

    Thanks in advance!!!

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Subtract Dates & Times From Multiple Cells To Get Duration

    hi sshot, try:
    =SUM(D4:E4)-SUM(B4:C4)

    then format as [h]:mm or any other kinds of format. dates are integers in Excel while time is a decimal. 0.5 is half of 1, so half a day, 12 pm

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    10-30-2012
    Location
    Crandall, Texas
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Subtract Dates & Times From Multiple Cells To Get Duration

    That did it! Thanks Benishiryo

+ 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