Steven

I

IF Help

Hi Guys
Im using the following formula to evalute a time period and determine if it is on-peak or off peak....

=IF(AND(HOUR(C2)>MIN($A$1,$B$1),HOUR(C2)<=MAX($A$1,$B$1),HOUR(D2)>=MIN($A$1,$B$1),HOUR(D2)<=MAX($A$1,$B$1)),"on-Peak","off-peak")

It works great if it is a proper on or off peak period. (Starts stops with in the time range). How can I modify to detemine if the period spans the the 2 periods ie., starts off peak ends on peak or vice versa, and returns "Check" if so.
Thanks a ton
Steven
 

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