Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default NOW() function

NOW() returns both the date (as the integer part) and time (as the
fractional part), so unless your system clock is set to 12/31/1899 (or
1/1/1904 in the 1904 system), NOW() will *always* return a value
"16:00" (which gets converted to 0.666666666666667, since 16:00 is 2/3
of 1 day).

Perhaps:

=AND(MOD(NOW(),1)TIME(16,0,0), $DR$3<TIME(16,0,0))

which strips off the date part of NOW() will work for you.


In article ,
nastech wrote:

not seeing what missing, trying to make the following:

=AND(NOW()"16:00",$DR$3<"16:00")

where Now()"16:00" seems to return the opposite of the actual time.
if 17:00 is the time, I get a FALSE. is there an error in my example?
thanks

 
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 do you write format results of a function within a function? sangee Excel Worksheet Functions 3 June 14th 07 12:45 AM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


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