#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Now Formula

When I put in =NOW() it outputs the date and time; however, the time does not
stay current. Meaning if I do the formula at 10:30, it shows the date then
10:30, but then at 10:31 it stil shows 10:30.... how do you make the time
continuous?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Now Formula

Functions like now are referred to as volatile. That means that they are
recalculated each time XL performs a calculation. If XL does not perform a
calculation then the value is not updated. There is no easy way to force XL
to recalc on a regularily scheduled basis, so there is no easy way to make
the now formula act like a clock.
--
HTH...

Jim Thomlinson


"Hamed parhizkar" wrote:

When I put in =NOW() it outputs the date and time; however, the time does not
stay current. Meaning if I do the formula at 10:30, it shows the date then
10:30, but then at 10:31 it stil shows 10:30.... how do you make the time
continuous?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default Now Formula

The easiest way to get Now() to update is to recalculate the worksheet (F9).
You will then see the time change.

If you want it to update itself dynamically, you have to have something
running in the background that periodically checks the time, and if the
minute changes (or whatever you want), then that cell's value is updated or
recalculated. I'm not aware of ways to have background processes running
inside (or outisde) Excel. Maybe someone else can help with that.

Eric

"Hamed parhizkar" wrote:

When I put in =NOW() it outputs the date and time; however, the time does not
stay current. Meaning if I do the formula at 10:30, it shows the date then
10:30, but then at 10:31 it stil shows 10:30.... how do you make the time
continuous?

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Now Formula

Hi,

For a non volatile date
Ctrl+;
Non volatile time
Ctrl+Shift+;

for both do the first < space bar the second

Mike

"Hamed parhizkar" wrote:

When I put in =NOW() it outputs the date and time; however, the time does not
stay current. Meaning if I do the formula at 10:30, it shows the date then
10:30, but then at 10:31 it stil shows 10:30.... how do you make the time
continuous?

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default Now Formula

Here is an example of how you can make the time update, and still be able to
work in the workbook. It uses the "Application.OnTime" function to schedule
the next call to a subroutine that updates the clock. The example updates
once a second, but you can easily set that to update once a minute.

http://j-walk.com/ss/excel/files/clockchart.htm




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default Now Formula

And finally, some more general information on the OnTime function and timers
in Excel:

http://www.cpearson.com/Excel/OnTime.aspx

--
-----------------------
If toast always lands butter-side down, and cats always land on their feet,
what happen if you strap toast on the back of a cat and drop it?
Steven Wright (1955 - )


"egun" wrote:

Here is an example of how you can make the time update, and still be able to
work in the workbook. It uses the "Application.OnTime" function to schedule
the next call to a subroutine that updates the clock. The example updates
once a second, but you can easily set that to update once a minute.

http://j-walk.com/ss/excel/files/clockchart.htm


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
Regression Leverage Formula (Jerry W. Lewis or Mike Middleton)already have DFITS formula PJ[_3_] Excel Worksheet Functions 2 June 2nd 10 03:45 PM
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
Formula expected end of statement error, typing formula into cell as part of VBA macro [email protected] Excel Programming 1 July 20th 06 07:58 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


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