PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?bWFyaWU=?=
Guest
Posts: n/a
 
      6th Dec 2005
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 With Quote
 
 
 
 
=?Utf-8?B?U2xvdGg=?=
Guest
Posts: n/a
 
      6th Dec 2005
=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
 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      6th Dec 2005
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" <(E-Mail Removed)> wrote in message
news7A0EAAD-43F3-429C-838A-(E-Mail Removed)...
> 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 With Quote
 
=?Utf-8?B?bWFyaWU=?=
Guest
Posts: n/a
 
      6th Dec 2005
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

 
Reply With Quote
 
=?Utf-8?B?bWFyaWU=?=
Guest
Posts: n/a
 
      6th Dec 2005
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" <(E-Mail Removed)> wrote in message
> news7A0EAAD-43F3-429C-838A-(E-Mail Removed)...
> > 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 With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      6th Dec 2005
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" <(E-Mail Removed)> wrote in message
news:196235A1-2B5A-4AD1-B412-(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> > news7A0EAAD-43F3-429C-838A-(E-Mail Removed)...
> > > 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 With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      6th Dec 2005
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" <(E-Mail Removed)> wrote in message
news:u$%2337sr%(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:196235A1-2B5A-4AD1-B412-(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in message
> > > news7A0EAAD-43F3-429C-838A-(E-Mail Removed)...
> > > > 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 With Quote
 
=?Utf-8?B?U2xvdGg=?=
Guest
Posts: n/a
 
      7th Dec 2005
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" <(E-Mail Removed)> wrote in message
> news:196235A1-2B5A-4AD1-B412-(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in message
> > > news7A0EAAD-43F3-429C-838A-(E-Mail Removed)...
> > > > 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating Time with Date/Time checking in formula cmatera Microsoft Excel Worksheet Functions 2 11th Aug 2008 01:38 PM
Query. Start date - End date = elapsed time in days and time..??? HOW? Timw Microsoft Access Queries 3 8th Nov 2006 11:35 AM
Calculating Difference Between Start Date & Time And End Date & Ti =?Utf-8?B?U2Ftd2Fy?= Microsoft Excel Misc 2 19th Dec 2005 12:42 PM
Calculating effective time from start/end date+time Stefan Stridh Microsoft Excel Worksheet Functions 8 27th Nov 2004 03:50 PM
calculating the finish time/date from the start time/date swiss tony Microsoft Excel Worksheet Functions 1 21st Oct 2003 01:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:48 AM.