Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 310
Default countdown to date and time

would like to create a worksheet that displays in four cells the number of
days, hours, minutes, and seconds from now till christmas. should update
automatically. Does anyone know how it can be done?

  #2   Report Post  
Posted to microsoft.public.excel.misc
FC FC is offline
external usenet poster
 
Posts: 130
Default countdown to date and time

I've working on it and so far I got how many MONTHS and DAYS left, if you
want it let me know.

"michelle" wrote:

would like to create a worksheet that displays in four cells the number of
days, hours, minutes, and seconds from now till christmas. should update
automatically. Does anyone know how it can be done?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default countdown to date and time

Michelle,

I have a workbook I created some years ago that I can send you if you want?

It's not exactly 4 cells but it displays it like this

3 Month(s), 2 Day(s), 12 Hour(s), 32 Minute(s), and 52 Second(s) until
Christmas.

Send an email to:

Aterre08NOSPAMgmail.com

remove A and replace NOSPAM with @


--

Regards,

Peo Sjoblom

"michelle" wrote in message
...
would like to create a worksheet that displays in four cells the number of
days, hours, minutes, and seconds from now till christmas. should update
automatically. Does anyone know how it can be done?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default countdown to date and time

=IF(DATEDIF(TODAY(),DATE(2007,12,25),"ym")=1,DATE DIF(TODAY(),DATE(2007,12,25),"ym")&"
Month"&IF(DATEDIF(TODAY(),DATE(2007,12,25),"ym")," s
",""))&IF(DATEDIF(TODAY(),DATE(2007,12,25),"md")= 1,DATEDIF(TODAY(),DATE(2007,12,25),"md")&"
Day")&IF(DATEDIF(TODAY(),DATE(2007,12,25),"md")1, "s ","
")&TEXT(TODAY()+1-NOW(),"h:mm:ss")

--
Merry Christmas

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"michelle" wrote in message
...
would like to create a worksheet that displays in four cells the number of
days, hours, minutes, and seconds from now till christmas. should update
automatically. Does anyone know how it can be done?




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default countdown to date and time

Doh! Apologize, I sent the message in the future because I forgot to change
the damned date back again. I have cancelled the message but it obviously
will only work on the MS server


--

Regards,

Peo Sjoblom

"Sandy Mann" wrote in message
...
=IF(DATEDIF(TODAY(),DATE(2007,12,25),"ym")=1,DATE DIF(TODAY(),DATE(2007,12,25),"ym")&"
Month"&IF(DATEDIF(TODAY(),DATE(2007,12,25),"ym")," s
",""))&IF(DATEDIF(TODAY(),DATE(2007,12,25),"md")= 1,DATEDIF(TODAY(),DATE(2007,12,25),"md")&"
Day")&IF(DATEDIF(TODAY(),DATE(2007,12,25),"md")1, "s ","
")&TEXT(TODAY()+1-NOW(),"h:mm:ss")

--
Merry Christmas

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"michelle" wrote in message
...
would like to create a worksheet that displays in four cells the number
of
days, hours, minutes, and seconds from now till christmas. should update
automatically. Does anyone know how it can be done?








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default countdown to date and time

Doh! I never read properly what the OP asked for - four cells! Days,
Hours, Minutes & Seconds

=IF(TODAY()DATE(YEAR(TODAY()),12,24),DATEDIF(TODA Y(),DATE(YEAR(TODAY())+1,12,25),"yd"),DATEDIF(TODA Y(),DATE(YEAR(TODAY()),12,25),"yd"))&"
Day"&IF(TODAY()=DATE(YEAR(TODAY()),12,24),"","s")

=TEXT(TODAY()+1-NOW(),"h")&" hour"&IF(TEXT(TODAY()+1-NOW(),"h")="1","","s")

=MID(TEXT(TODAY()+1-NOW(),"h:m"),SEARCH(":",TEXT(TODAY()+1-NOW(),"h:m"))+1,3)&"
minute"&IF(TEXT(TODAY()+1-NOW(),"mm")="1","","s")

=TEXT(TODAY()+1-NOW(),"s")&"
second"&IF(TEXT(TODAY()+1-NOW(),"s")="1","","s")

From Christmas Day it gives the number of days until the following
Christmas.

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Peo Sjoblom" wrote in message
...
Here's my old formula

=IF(TODAY()DATE(YEAR(TODAY()),12,24),"Wait Until After New
Year",DATEDIF(NOW(),DATE(YEAR(TODAY()),12,24),"YM" )&" Month(s),
"&DATEDIF(NOW(),DATE(YEAR(TODAY()),12,24),"MD" )&" Day(s),
"&TEXT(23-HOUR(NOW()),"###")&" Hour(s), "&TEXT(59-MINUTE(NOW()),"###")&"
Minute(s), and "&TEXT(59-SECOND(NOW()),"###")&" Second(s) until
Christmas.")


btw your formula returned "FALSE 6 days 10:25:25" using US Pacific time on
the 19th of Dec current time

mine returned
"0 Month(s), 5 Day(s), 10 Hour(s), 25 Minute(s), and 24 Second(s) until
Christmas."

I haven't really tested mine either so I don't know it is correct overall
since I did it for my kids back in 2002 and I didn't test all
possibilities plus I skipped the time period between Christmas and new
year but at least that day current time it nailed it


--

Regards,

Peo Sjoblom


"Sandy Mann" wrote in message
...
=IF(DATEDIF(TODAY(),DATE(2007,12,25),"ym")=1,DATE DIF(TODAY(),DATE(2007,12,25),"ym")&"
Month"&IF(DATEDIF(TODAY(),DATE(2007,12,25),"ym")," s
",""))&IF(DATEDIF(TODAY(),DATE(2007,12,25),"md")= 1,DATEDIF(TODAY(),DATE(2007,12,25),"md")&"
Day")&IF(DATEDIF(TODAY(),DATE(2007,12,25),"md")1, "s ","
")&TEXT(TODAY()+1-NOW(),"h:mm:ss")

--
Merry Christmas

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"michelle" wrote in message
...
would like to create a worksheet that displays in four cells the number
of
days, hours, minutes, and seconds from now till christmas. should update
automatically. Does anyone know how it can be done?









  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default countdown to date and time

Peo
System date

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Peo Sjoblom" wrote in message
...
Here's my old formula

=IF(TODAY()DATE(YEAR(TODAY()),12,24),"Wait Until After New
Year",DATEDIF(NOW(),DATE(YEAR(TODAY()),12,24),"YM" )&" Month(s),
"&DATEDIF(NOW(),DATE(YEAR(TODAY()),12,24),"MD" )&" Day(s),
"&TEXT(23-HOUR(NOW()),"###")&" Hour(s), "&TEXT(59-MINUTE(NOW()),"###")&"
Minute(s), and "&TEXT(59-SECOND(NOW()),"###")&" Second(s) until
Christmas.")


btw your formula returned "FALSE 6 days 10:25:25" using US Pacific time on
the 19th of Dec current time

mine returned
"0 Month(s), 5 Day(s), 10 Hour(s), 25 Minute(s), and 24 Second(s) until
Christmas."

I haven't really tested mine either so I don't know it is correct overall
since I did it for my kids back in 2002 and I didn't test all
possibilities plus I skipped the time period between Christmas and new
year but at least that day current time it nailed it


--

Regards,

Peo Sjoblom


"Sandy Mann" wrote in message
...
=IF(DATEDIF(TODAY(),DATE(2007,12,25),"ym")=1,DATE DIF(TODAY(),DATE(2007,12,25),"ym")&"
Month"&IF(DATEDIF(TODAY(),DATE(2007,12,25),"ym")," s
",""))&IF(DATEDIF(TODAY(),DATE(2007,12,25),"md")= 1,DATEDIF(TODAY(),DATE(2007,12,25),"md")&"
Day")&IF(DATEDIF(TODAY(),DATE(2007,12,25),"md")1, "s ","
")&TEXT(TODAY()+1-NOW(),"h:mm:ss")

--
Merry Christmas

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"michelle" wrote in message
...
would like to create a worksheet that displays in four cells the number
of
days, hours, minutes, and seconds from now till christmas. should update
automatically. Does anyone know how it can be done?







  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default countdown to date and time

Here's my old formula

=IF(TODAY()DATE(YEAR(TODAY()),12,24),"Wait Until After New
Year",DATEDIF(NOW(),DATE(YEAR(TODAY()),12,24),"YM" )&" Month(s),
"&DATEDIF(NOW(),DATE(YEAR(TODAY()),12,24),"MD" )&" Day(s),
"&TEXT(23-HOUR(NOW()),"###")&" Hour(s), "&TEXT(59-MINUTE(NOW()),"###")&"
Minute(s), and "&TEXT(59-SECOND(NOW()),"###")&" Second(s) until Christmas.")


btw your formula returned "FALSE 6 days 10:25:25" using US Pacific time on
the 19th of Dec current time

mine returned
"0 Month(s), 5 Day(s), 10 Hour(s), 25 Minute(s), and 24 Second(s) until
Christmas."

I haven't really tested mine either so I don't know it is correct overall
since I did it for my kids back in 2002 and I didn't test all possibilities
plus I skipped the time period between Christmas and new year but at least
that day current time it nailed it


--

Regards,

Peo Sjoblom


"Sandy Mann" wrote in message
...
=IF(DATEDIF(TODAY(),DATE(2007,12,25),"ym")=1,DATE DIF(TODAY(),DATE(2007,12,25),"ym")&"
Month"&IF(DATEDIF(TODAY(),DATE(2007,12,25),"ym")," s
",""))&IF(DATEDIF(TODAY(),DATE(2007,12,25),"md")= 1,DATEDIF(TODAY(),DATE(2007,12,25),"md")&"
Day")&IF(DATEDIF(TODAY(),DATE(2007,12,25),"md")1, "s ","
")&TEXT(TODAY()+1-NOW(),"h:mm:ss")

--
Merry Christmas

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"michelle" wrote in message
...
would like to create a worksheet that displays in four cells the number
of
days, hours, minutes, and seconds from now till christmas. should update
automatically. Does anyone know how it can be done?






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 days,hours,minutes,seconds to a specific date jje2149 Excel Discussion (Misc queries) 1 June 1st 06 01:47 PM
Countdown by Date Param Excel Worksheet Functions 3 March 6th 06 04:46 PM
Day/Time Countdown SeekingHelp Excel Discussion (Misc queries) 6 September 28th 05 03:03 AM
real-time countdown scottmiller Excel Worksheet Functions 2 September 27th 05 11:30 PM
need to show date countdown petergw Excel Worksheet Functions 1 January 14th 05 12:13 PM


All times are GMT +1. The time now is 02:16 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"