Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 193
Default time comparisons with now()

Dear all,

I hope this message finds you enjoying your day. I'm having some trouble
comparing time with the now() function.

Normally, if I type in

=9:00 AM 10:00 AM

The result will be "false." This is the type of comparison that I want.

However, it seems as though comparing time produced by the now() function
works a bit differently. Can somebody explain how to compare time produced
by the now() function?

Thanks and have a nice day.
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ray Ray is offline
external usenet poster
 
Posts: 267
Default time comparisons with now()

Hi robert -

I think the problem is that NOW() gives the following result:
8/30/2007 10:31:55 AM (example)

Try TIME() instead ....

ray


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default time comparisons with now()

Now function is the number of days from 1/1/1900 which is alwasy greater than
one. 1/2/1900 - 1/1/1900 = 1.. Time is a fraction of a day always less than
one where 0 is midnight. 8 hours is equal to 8/24.

"robert" wrote:

Dear all,

I hope this message finds you enjoying your day. I'm having some trouble
comparing time with the now() function.

Normally, if I type in

=9:00 AM 10:00 AM

The result will be "false." This is the type of comparison that I want.

However, it seems as though comparing time produced by the now() function
works a bit differently. Can somebody explain how to compare time produced
by the now() function?

Thanks and have a nice day.

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
Yr to Yr comparisons cisse_5 Excel Discussion (Misc queries) 7 May 15th 09 06:10 PM
Sheet Comparisons. Jeff[_10_] Excel Worksheet Functions 1 February 18th 08 11:52 PM
Multiply IF AND OR comparisons Hannu Laine Excel Worksheet Functions 1 June 16th 07 10:14 PM
Can I add more than 2 comparisons to an IF statement?? joshua Excel Discussion (Misc queries) 3 July 27th 06 06:58 AM
Pie Chart showing Time Zone Comparisons - Can it be done? DeAnna Charts and Charting in Excel 2 November 5th 05 03:21 AM


All times are GMT +1. The time now is 02:58 AM.

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"