#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Countdown

Hi,

I was wondering if anyone would be able to tell me the formula to countdown
the days, hours, minutes and seconds from the time I open a spreadsheeet
until a given time in the future,

Cheers
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Countdown

Three steps:

First put this little workbook event macro in the workbook code area:

Private Sub Workbook_Open()
Sheets("Sheet1").Range("A1").Value = Now
End Sub

Whenever the workbook is openned, the date/time will be recorded in cell A1
of Sheet1 (adjust to suit).

Next format B1 as Custom mm/dd/yyyy hh:mm:ss
and put the future date/time in B1:

12/25/2008 8:00:00 PM

Finally put the following formula in C1:

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

--
Gary''s Student - gsnu200785


"chris miller" wrote:

Hi,

I was wondering if anyone would be able to tell me the formula to countdown
the days, hours, minutes and seconds from the time I open a spreadsheeet
until a given time in the future,

Cheers

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Countdown timer Ira Excel Discussion (Misc queries) 7 November 16th 07 01:50 AM
Countdown Timer Saxman Excel Discussion (Misc queries) 1 February 6th 07 09:55 AM
Countdown simserob Excel Worksheet Functions 4 July 22nd 06 02:40 AM
Countdown simserob Excel Worksheet Functions 0 July 21st 06 06:27 PM
Countdown simserob Excel Worksheet Functions 0 July 21st 06 06:26 PM


All times are GMT +1. The time now is 12:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"