Selecting business hours via date / if function?

R

Rhiannon

Hello

Is there a formula that can be used to return a "true" or "out of hours"
value if the date/ time of a particulr cell is outside of (my) business hours
please? (say 7am to 5:30pm). Does the date/ time need to be entered in a
certain way ? (currently date is in one column and time is in another - in
h:mm:ss AM/PM format.

Thanks
 
R

Rick Rothstein \(MVP - VB\)

Give this formula a try...

=IF(AND(B1>=TIME(7,0,0),B1<=TIME(17,30,0)),"In time","Out of time")

Rick
 

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