Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 215
Default Continuous Evaluation of Time Function NOW() ??

Hi;

1) The following formula returns TRUE or FALSE:
=AND($J$15<"",(MOD(SECOND(NOW())-1,6)+10) = COLUMN())
It works fine as long as the w/b is busy doing something!

2) Otherwise if the w/b is not busy, the formula appears to be calculated
only ONCE at the current time NOW(), and F9 must be pressed repeatedly to
re-calculate the formula despite Tools::Options::Calculation is set to
Automatic.

3) Is it possible to have NOW() representing a progressive NOW() ??

4) If not, can the above formula be modified such that it is evaluated
continually for, say, the next 60 or 120 seconds from the current NOW() ??

Your expert advice would be greatly appreciated. Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Continuous Evaluation of Time Function NOW() ??

If you wanted something like that, you would need a timer in the background
firing off a sheet calculation, something like this

Sub Recalc()
Static myCounter As Long

If myCounter 60 Then Exit Sub
myCounter = myCounter + 1
ActiveSheet.Calculate
Application.OnTime Now + TimeSerial(0, 0, 1), "Recalc"
End Sub


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"monir" wrote in message
...
Hi;

1) The following formula returns TRUE or FALSE:
=AND($J$15<"",(MOD(SECOND(NOW())-1,6)+10) = COLUMN())
It works fine as long as the w/b is busy doing something!

2) Otherwise if the w/b is not busy, the formula appears to be calculated
only ONCE at the current time NOW(), and F9 must be pressed repeatedly to
re-calculate the formula despite Tools::Options::Calculation is set to
Automatic.

3) Is it possible to have NOW() representing a progressive NOW() ??

4) If not, can the above formula be modified such that it is evaluated
continually for, say, the next 60 or 120 seconds from the current NOW() ??

Your expert advice would be greatly appreciated. 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
Automatic evaluation of custom worksheet function Jim Excel Worksheet Functions 1 November 6th 06 10:23 PM
Continuous dates and time Stonleyoh Charts and Charting in Excel 1 January 27th 06 09:49 PM
Sum function for non-continuous range Antje Excel Worksheet Functions 3 July 14th 05 01:13 PM
Options Evaluation Michael G. Excel Worksheet Functions 0 January 28th 05 05:41 PM
continuous cell function milljaso Excel Worksheet Functions 1 October 27th 04 10:21 PM


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