+ Reply to Thread
Results 1 to 14 of 14

Calculation of days between days and time

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Calculation of days between days and time

    Hi

    I need a formula for calculating days and time. I have attached excel for example how it could be.

    Thanks
    Sunil
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Calculation of days between days and time

    For total minutes

    =(B2-A2)*1440

    Make sure all dates are the same format (yours are not) and that they are proper date/times (not text)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Calculation of days between days and time

    In C2
    =$B2-$A2
    Custom Format : d" Days"

    In D2
    =$B2-$A2
    Custom Format : [mm] "Mins"

    In E2
    =TEXT(C2,"d")&" days "&TEXT(D2,"[mm]")&" Mins"

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Calculation of days between days and time

    I think that this will do what you want.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Calculation of days between days and time

    hi Dover,

    If i click on f2 button for seeing formula in cell. it is comeing #value error.

    When i am trying rebuild the same formula in different cell also it is coming as #value error.

    Thanks
    Sunil
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Calculation of days between days and time

    Hi Ace,

    Sorry to say u, I am not able to solve with that formula.

    Thanks
    Sunil

  7. #7
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Calculation of days between days and time

    I notice your date cells have TWO spaces between the date and time, maybe these being picked up as text values, they should be numeric.

    Select each date, hit F2 then enter, the date/time appears to reformat to a number and the calculation then works.

  8. #8
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Calculation of days between days and time

    Hi Special,

    No luck for me. i removed. still it is showing same error

    Regards
    Sunil

  9. #9
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Calculation of days between days and time

    Hi Special,

    No luck for me. i removed. still it is showing same error

    Regards
    Sunil

  10. #10
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Calculation of days between days and time

    See attached. Row 5 has '0' input value leading to erroneous output

  11. #11
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Calculation of days between days and time

    Hi Ace,

    Thanks a lot for your help. Just need one more help on result cell. I need it like 1 hour 20 mint. i tried but it is giving incorrect mints.

    Thanks
    Sunil
    Last edited by theprincesunil; 04-27-2014 at 02:17 PM. Reason: Want to attach file

  12. #12
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Calculation of days between days and time

    In E2

    =TEXT(C2,"d")&" days "&TEXT(D2,"[HH]")&" Hrs "&MOD(TEXT(D2,"[mm]"),60)&"mnts"

  13. #13
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Calculation of days between days and time

    It works super. Thanks a lot ACE.

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Calculation of days between days and time

    I can't replicate your problem. I hit F2 and the formula appears properly....no errors at all. I just works perfectly.

+ 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. Employee Time Tracking - Sick days & Consecutive Days
    By notaguru6 in forum Excel General
    Replies: 6
    Last Post: 08-09-2013, 12:50 PM
  2. time difference calculation between days
    By astrosrini in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 06-25-2012, 06:47 AM
  3. Calculating time elapsed in days and count days within same range
    By michellem410 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-19-2008, 01:13 PM
  4. [SOLVED] Please Help With Days Elapsed And Days Remaining Calculation
    By Scoooter in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-14-2006, 12:15 PM
  5. [SOLVED] cALCULATION OF DAYS
    By WINONA in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-16-2005, 12:45 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