formulas using time

R

Ron

I am trying to return results based on the time of day
entered into a cell.

here is an example of where I am at now.

=IF(AND(7:00AM>C1,C1<7:00PM),"DAYS","NIGHTS"

Please help
 
P

Peo Sjoblom

One way

=IF(AND(C1>"7:00 AM"+0,C1<"7:00 PM"+0),"DAYS","NIGHTS")

or if 7 should be included

=IF(AND(C1>="7:00 AM"+0,C1<="7:00 PM"+0),"DAYS","NIGHTS")
 

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