Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

CONDITIONAL STATEMENT

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BANJO - 31 Mar 2008 15:31 GMT
I'm trying to test a cell D5 which contains a time eg '07:00' to see if falls
within a time range or is blank or to print it if it is within range. Excel
indicates an error???

=if(or(D5, 06:30, D5>8:00), "CHECK TIME" , D5)

I've tried other simple statements, but none work!  Help!!
Signature

BANJO

David Biddulph - 31 Mar 2008 15:44 GMT
Perhaps you intended to say =IF(OR(D5<TIME(6,30,0), D5>TIME(8,0,0)), "CHECK
TIME", D5) ?
Signature

David Biddulph

> I'm trying to test a cell D5 which contains a time eg '07:00' to see if
> falls
[quoted text clipped - 5 lines]
>
> I've tried other simple statements, but none work!  Help!!
Pete_UK - 31 Mar 2008 15:50 GMT
Try it like this:

=IF(OR(D5="",D5<TIME(6,30,0),D5>TIME(8,0,0)),"CHECK TIME",D5)

Hope this helps.

Pete

> I'm trying to test a cell D5 which contains a time eg '07:00' to see if falls
> within a time range or is blank or to print it if it is within range. Excel
[quoted text clipped - 5 lines]
> --
> BANJO
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.