So I been fighting with this code for a few days, scouring the page and google for some answers and I thought I had it nailed. Today I found out I was wrong about ONE date...and I can't see to solve it. I'll try to explain what I'm doing then post some snippets and see if we can put our collective heads together and solve this one.
I work for a Major Hospitality Brand, and our owners have certain Booking Windows for hotels. Platinum Members can book between 45-days and 10 months, and non-platinum can only book 2 months to 10 months (in this case just months, not 60 days). So I have a date calculator that calculates the different time frames based on TODAY()
We also have a spot where you can put in a date the owner is requesting, which evaluates the booking window for the owner
Ultimately the goal is to have a section on the side that will show my users IF the date entered in Date Calculator is eligible for both owner types to book or not.
The formula I am using is this:
Non-Platinum: =IF(AND(F3>$F$19,F3<$F$20),"OK to Book","Not Ok to Book")
Platinum: =IF(AND(F3>=$F$19,F3<=$F$21),"Ok to Book","Not Ok to Book")
If I enter a date that is clearly outside the range, it works fine. The problem I'm having is when I'm trying to compare a date that falls ON one of the extremes
UPDATE: Here is a link to an excel sheet that I made with the data I'm working on DateCalculator