#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Time check

Is there a way to get Excel to check if the time entered in a cell (in the
format hh:mm) is less than the current time?
Cheers.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Time check

hi,
something like this might work...
=IF(C1B1,"Less","greater")
where C1 and B1 are times and C1 is the current time
this will work too....
=IF(NOW()B1,"Less","greater")
B1 would be the time and NOW() would be the current time and eliminates the
need for cell C1.

regards
FSt1

"Finks" wrote:

Is there a way to get Excel to check if the time entered in a cell (in the
format hh:mm) is less than the current time?
Cheers.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Time check

Thanks for the quick response. I tried =IF(NOW()B1,"Less","greater") but
what ever time I type in B1 I get the response 'Less'.

"FSt1" wrote:

hi,
something like this might work...
=IF(C1B1,"Less","greater")
where C1 and B1 are times and C1 is the current time
this will work too....
=IF(NOW()B1,"Less","greater")
B1 would be the time and NOW() would be the current time and eliminates the
need for cell C1.

regards
FSt1

"Finks" wrote:

Is there a way to get Excel to check if the time entered in a cell (in the
format hh:mm) is less than the current time?
Cheers.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Time check

Don't forget that NOW() gives current time and today's date. If you are
merely typing in a time, it will be treated as being on Excel's first day
(00/01/1900), so of course it is less than NOW().

You might try replacing NOW() by MOD(NOW(),1), which will give current time
and ditch the number of days since the beginning of 1900.
--
David Biddulph

"Finks" wrote in message
...
Thanks for the quick response. I tried =IF(NOW()B1,"Less","greater") but
what ever time I type in B1 I get the response 'Less'.

"FSt1" wrote:

hi,
something like this might work...
=IF(C1B1,"Less","greater")
where C1 and B1 are times and C1 is the current time
this will work too....
=IF(NOW()B1,"Less","greater")
B1 would be the time and NOW() would be the current time and eliminates
the
need for cell C1.

regards
FSt1

"Finks" wrote:

Is there a way to get Excel to check if the time entered in a cell (in
the
format hh:mm) is less than the current time?
Cheers.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Time check

That works perfectly, thank you.

"David Biddulph" wrote:

Don't forget that NOW() gives current time and today's date. If you are
merely typing in a time, it will be treated as being on Excel's first day
(00/01/1900), so of course it is less than NOW().

You might try replacing NOW() by MOD(NOW(),1), which will give current time
and ditch the number of days since the beginning of 1900.
--
David Biddulph

"Finks" wrote in message
...
Thanks for the quick response. I tried =IF(NOW()B1,"Less","greater") but
what ever time I type in B1 I get the response 'Less'.

"FSt1" wrote:

hi,
something like this might work...
=IF(C1B1,"Less","greater")
where C1 and B1 are times and C1 is the current time
this will work too....
=IF(NOW()B1,"Less","greater")
B1 would be the time and NOW() would be the current time and eliminates
the
need for cell C1.

regards
FSt1

"Finks" wrote:

Is there a way to get Excel to check if the time entered in a cell (in
the
format hh:mm) is less than the current time?
Cheers.




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
Check box, then add current time to cell Joe Excel Worksheet Functions 5 January 9th 07 12:25 AM
How do I increase the size of check in check boxes Adams, Les Excel Discussion (Misc queries) 0 September 19th 06 02:35 PM
Enable check box in protected sheet + group check boxes Dexxterr Excel Discussion (Misc queries) 4 August 2nd 06 12:00 PM
Check time available in Excel Pendelfin Excel Discussion (Misc queries) 0 January 23rd 06 10:30 AM
Check box so that only one box can be checked a time Norm Hamilton Excel Discussion (Misc queries) 1 August 22nd 05 09:26 AM


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