OR Function

  • Thread starter Thread starter Wendy
  • Start date Start date
W

Wendy

Hi

I have a problem with my or function. It should report the number of days
before today.

=(IF(OR(E5="0",E5<A5),"Invalid date",DAY(A5-E5)))

A5= today's date, E5 = any date
I want future dates marked as "Invalid date requested"
If E5 is a past date it works, but sometimes E5 is a future date, if I
change E5>A5 it shows every date as invalid.

Thanks

Wendy
 
Somewhat better one

=IF(OR(E5*1=0,E5<A5),"Invalid date",E5-A5)
 

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