+ Reply to Thread
Results 1 to 8 of 8

Calculating days & time left from start date/time to end date/time

  1. #1
    marie
    Guest

    Calculating days & time left from start date/time to end date/time

    Hello experts,
    What formula should I use to show # days left, including time (in hrs,
    mins and sec's) from current date/time to a target end date/time?
    For instance:

    Start Date: Now()
    End Date: December 31, 2005 5:00:00 PM

    Your help is greatly appreciated.
    Marie


  2. #2
    Sloth
    Guest

    RE: Calculating days & time left from start date/time to end date/time

    =ROUND(A2-A1,0)&" days and "&TEXT(A2-A1,"h:mm:ss")

    Or if it is less than one month, you can just subtract them (=A2-A1) and use
    a custom format of

    d "days and" h:mm

    They both look like this
    25 days and 1:20:27

  3. #3
    Bob Phillips
    Guest

    Re: Calculating days & time left from start date/time to end date/time

    How about

    =INT(A21-NOW())&" days, "&TEXT(MOD(A21-NOW(),1)," hh:mm:ss")

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "marie" <[email protected]> wrote in message
    news:[email protected]...
    > Hello experts,
    > What formula should I use to show # days left, including time (in hrs,
    > mins and sec's) from current date/time to a target end date/time?
    > For instance:
    >
    > Start Date: Now()
    > End Date: December 31, 2005 5:00:00 PM
    >
    > Your help is greatly appreciated.
    > Marie
    >




  4. #4
    marie
    Guest

    RE: Calculating days & time left from start date/time to end date/

    This worked! Thanks!

    "Sloth" wrote:

    > =ROUND(A2-A1,0)&" days and "&TEXT(A2-A1,"h:mm:ss")
    >
    > Or if it is less than one month, you can just subtract them (=A2-A1) and use
    > a custom format of
    >
    > d "days and" h:mm
    >
    > They both look like this
    > 25 days and 1:20:27


  5. #5
    marie
    Guest

    Re: Calculating days & time left from start date/time to end date/

    Hi Bob, I compared the result using your formula with the one provided by
    "Sloth" and it appears that I am off by a day using yours. 'Not sure why.


    "Bob Phillips" wrote:

    > How about
    >
    > =INT(A21-NOW())&" days, "&TEXT(MOD(A21-NOW(),1)," hh:mm:ss")
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "marie" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hello experts,
    > > What formula should I use to show # days left, including time (in hrs,
    > > mins and sec's) from current date/time to a target end date/time?
    > > For instance:
    > >
    > > Start Date: Now()
    > > End Date: December 31, 2005 5:00:00 PM
    > >
    > > Your help is greatly appreciated.
    > > Marie
    > >

    >
    >
    >


  6. #6
    Bob Phillips
    Guest

    Re: Calculating days & time left from start date/time to end date/

    That is because Sloth's Rounds the subtracted dates, so if it is 24.6 say,
    it rounds it up to 25, and then the .6 is used to calculate the hours. So, I
    think he is wrong

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "marie" <[email protected]> wrote in message
    news:[email protected]...
    > Hi Bob, I compared the result using your formula with the one provided by
    > "Sloth" and it appears that I am off by a day using yours. 'Not sure why.
    >
    >
    > "Bob Phillips" wrote:
    >
    > > How about
    > >
    > > =INT(A21-NOW())&" days, "&TEXT(MOD(A21-NOW(),1)," hh:mm:ss")
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "marie" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Hello experts,
    > > > What formula should I use to show # days left, including time (in

    hrs,
    > > > mins and sec's) from current date/time to a target end date/time?
    > > > For instance:
    > > >
    > > > Start Date: Now()
    > > > End Date: December 31, 2005 5:00:00 PM
    > > >
    > > > Your help is greatly appreciated.
    > > > Marie
    > > >

    > >
    > >
    > >




  7. #7
    Bob Phillips
    Guest

    Re: Calculating days & time left from start date/time to end date/

    Try it with tomorrow at midday to see, Sloth's gives more than 1 day!

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Bob Phillips" <[email protected]> wrote in message
    news:u$%2337sr%[email protected]...
    > That is because Sloth's Rounds the subtracted dates, so if it is 24.6 say,
    > it rounds it up to 25, and then the .6 is used to calculate the hours. So,

    I
    > think he is wrong
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "marie" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hi Bob, I compared the result using your formula with the one provided

    by
    > > "Sloth" and it appears that I am off by a day using yours. 'Not sure

    why.
    > >
    > >
    > > "Bob Phillips" wrote:
    > >
    > > > How about
    > > >
    > > > =INT(A21-NOW())&" days, "&TEXT(MOD(A21-NOW(),1)," hh:mm:ss")
    > > >
    > > > --
    > > >
    > > > HTH
    > > >
    > > > RP
    > > > (remove nothere from the email address if mailing direct)
    > > >
    > > >
    > > > "marie" <[email protected]> wrote in message
    > > > news:[email protected]...
    > > > > Hello experts,
    > > > > What formula should I use to show # days left, including time (in

    > hrs,
    > > > > mins and sec's) from current date/time to a target end date/time?
    > > > > For instance:
    > > > >
    > > > > Start Date: Now()
    > > > > End Date: December 31, 2005 5:00:00 PM
    > > > >
    > > > > Your help is greatly appreciated.
    > > > > Marie
    > > > >
    > > >
    > > >
    > > >

    >
    >




  8. #8
    Sloth
    Guest

    Re: Calculating days & time left from start date/time to end date/

    oops. your correct bob. sorry about that marie.

    "Bob Phillips" wrote:

    > That is because Sloth's Rounds the subtracted dates, so if it is 24.6 say,
    > it rounds it up to 25, and then the .6 is used to calculate the hours. So, I
    > think he is wrong
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "marie" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hi Bob, I compared the result using your formula with the one provided by
    > > "Sloth" and it appears that I am off by a day using yours. 'Not sure why.
    > >
    > >
    > > "Bob Phillips" wrote:
    > >
    > > > How about
    > > >
    > > > =INT(A21-NOW())&" days, "&TEXT(MOD(A21-NOW(),1)," hh:mm:ss")
    > > >
    > > > --
    > > >
    > > > HTH
    > > >
    > > > RP
    > > > (remove nothere from the email address if mailing direct)
    > > >
    > > >
    > > > "marie" <[email protected]> wrote in message
    > > > news:[email protected]...
    > > > > Hello experts,
    > > > > What formula should I use to show # days left, including time (in

    > hrs,
    > > > > mins and sec's) from current date/time to a target end date/time?
    > > > > For instance:
    > > > >
    > > > > Start Date: Now()
    > > > > End Date: December 31, 2005 5:00:00 PM
    > > > >
    > > > > Your help is greatly appreciated.
    > > > > Marie
    > > > >
    > > >
    > > >
    > > >

    >
    >
    >


+ 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