How to set the time as condition within if statement?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how to set the time as condition within if statement?
If(current time > today's 5pm [after 5pm] and
current time<today's 11:59 pm [before 11:59pm],true,false)

Thank you for any suggestion
Eric
 
=IF(AND(NOW()>TODAY()+17/24,NOW()<TODAY()+23/24+59/60/24),"true","false")
 

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

Back
Top