ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Check if a time is past a certain time (https://www.excelbanter.com/excel-discussion-misc-queries/218623-check-if-time-past-certain-time.html)

Savio

Check if a time is past a certain time
 
If i have a time entered in a cell say A1, how can i check if the time
is past a certain time say 5:00pm using an if statement?
thanks

Savio

Check if a time is past a certain time
 
Or how can i check if the current time is past a certain time say 5pm?

Lars-Åke Aspelin[_2_]

Check if a time is past a certain time
 
On Sat, 31 Jan 2009 13:23:42 -0800 (PST), Savio
wrote:

Or how can i check if the current time is past a certain time say 5pm?


Try this:

=IF(MOD(NOW(),1)TIME(17,0,0),"later than 17","not later than 17")

Hope this helps / Lars-Åke

Chip Pearson

Check if a time is past a certain time
 

=IF(HOUR(A1)=17,"5 PM or later","Not yet 5PM")

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Sat, 31 Jan 2009 13:12:59 -0800 (PST), Savio
wrote:

If i have a time entered in a cell say A1, how can i check if the time
is past a certain time say 5:00pm using an if statement?
thanks



All times are GMT +1. The time now is 11:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com