Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Question Detailed Countdown

I'm trying to create a countdown to an event.
In A2 I have the date and time as 12/1/2012 2:00:00 PM
In A1 I have: =A2-NOW() and it is formatted as: d "Days" h "Hours" mm "Minutes" ss "Seconds"

The trouble is it doesn't return the correct number of days.

Right now it returns: "20 Days 14 Hours 05 Minutes 07 Seconds" which is off by 31 days.
It seems like no matter what date I put in, it wont return more than 30 or so days.

What's the trick?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 829
Default Detailed Countdown

"MartyD" nForGmail wrote:
I'm trying to create a countdown to an event.
In A2 I have the date and time as 12/1/2012 2:00:00 PM
In A1 I have: =A2-NOW() and it is formatted as:
d "Days" h "Hours" mm "Minutes" ss "Seconds"

[....]
It seems like no matter what date I put in, it wont
return more than 30 or so days.


You cannot format elapsed number of days using the d specifier.

The d specifier formats the day of the month, not the number of days.

Try:

=INT(A1) & TEXT(A1,""" days"" h ""hours"" m ""minutes"" s ""seconds""")

Note the use of two double-quotes within the quoted string.

  #3   Report Post  
Junior Member
 
Posts: 2
Thumbs up

Quote:
Originally Posted by joeu2004[_2_] View Post
"MartyD" nForGmail wrote:
I'm trying to create a countdown to an event.
In A2 I have the date and time as 12/1/2012 2:00:00 PM
In A1 I have: =A2-NOW() and it is formatted as:
d "Days" h "Hours" mm "Minutes" ss "Seconds"

[....]
It seems like no matter what date I put in, it wont
return more than 30 or so days.


You cannot format elapsed number of days using the d specifier.

The d specifier formats the day of the month, not the number of days.

Try:

=INT(A1) & TEXT(A1,""" days"" h ""hours"" m ""minutes"" s ""seconds""")

Note the use of two double-quotes within the quoted string.
Works GREAT!
Thank You!!!
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
How to set up countdown timer to countdown days to a specific day Jenny Excel Worksheet Functions 3 May 8th 23 07:43 PM
Vlookup DETAILED directions jander Excel Worksheet Functions 2 January 16th 08 06:56 PM
Getting detailed Julian date Steve C[_2_] Excel Discussion (Misc queries) 10 January 7th 08 12:16 PM
How do I set up a detailed graph in Excel? HellGlitch Excel Discussion (Misc queries) 0 December 4th 07 12:31 AM
VBA Books - Detailed Arifi Koseoglu Excel Programming 4 February 27th 04 01:25 PM


All times are GMT +1. The time now is 04:23 AM.

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

About Us

"It's about Microsoft Excel"