Formula help

B

Bob Phillips

What is the definition of day and night. Let's says day is 06:00 to 18:00,
then assuming A2 is just time

=IF(OR(A2<--"06:00:00",A2>=--"18:00:00"),25,16.5)

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
J

JE McGimpsey

If "day" is, say 6:00 am to 5:59 pm, One way:

=CHOOSE(2*MOD(A2+0.25,1)+1,16.5,25)
 

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