First a word on how Excel deals with dates/times.
Excel sees all dates as whole numbers. For instance, today is 38323 because it has been that many days since Jan 1 1900.
Excel sees times as a percentage of 24 hours. Noon is .5 because it is half a day. Likewise, 6 AM is 1/4 of a day, or 25% - so Excel sees it as .25. So today at noon will be 38323.5.
Having said that, there are a few ways to get around your problem. The problem, by the way, is that Excel isn't seeing "06:00:00" in the formula as a number.
[ul][li]1: With the knowledge of how Excel sees numbers, you can just use [COLOR=blue white]=if(A1<.25,"yes","no")[/color] to get the results you want.[/li]
[li]2: You can type [COLOR=blue white]06:00:00[/color] in a different cell (let's say B1) and reference it in your formula like this: [COLOR=blue white]=if(a1<b1,"yes","no")[/color][/li]
[li]3*: You can force the [COLOR=blue white]06:00:00[/color] in the formula to a number by adding 0 like this [COLOR=blue white]=if(a1<"06:00:00"+0,"yes","no")[/color][/li][/ul]
*The 3rd option is probably the best because you don't have to reference another cell and you don't have to convert your time to a percentage of the day (6AM works well, but 5 or 7 is a little uglier).
Good luck!
[tt]-John[/tt]
The Member Profiles are finally working again!
________________________
To get the best answers fast, please read faq181-2886