CONDITIONAL STATEMENT

B

BANJO

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!!
 
D

David Biddulph

Perhaps you intended to say =IF(OR(D5<TIME(6,30,0), D5>TIME(8,0,0)), "CHECK
TIME", D5) ?
 
P

Pete_UK

Try it like this:

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

Hope this helps.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top