Forum Discussion
MikeTamoush
Qrew Commander
I usually just write the conditions it can be TRUE, so:
([Sunday Date]>[Arrival Date] and [Sunday Date]<[Departure Date]) or ([Sunday Date]>[Arrival Date] and isnull([Departure Date]) or ([Sunday Date]<[Departure Date] and isnull([Arrival Date])
There are probably multiple ways you can write this. Someone may have a suggestion that is 'cleaner'.
*Note, Jeff and I were responding at the same time. I am not sure if you mean, 'if either the arrival or departure date is null, then true' OR if you mean 'if the departure date is null, but still check the arrival vs schedule per rules'
------------------------------
Mike Tamoush
------------------------------
([Sunday Date]>[Arrival Date] and [Sunday Date]<[Departure Date]) or ([Sunday Date]>[Arrival Date] and isnull([Departure Date]) or ([Sunday Date]<[Departure Date] and isnull([Arrival Date])
There are probably multiple ways you can write this. Someone may have a suggestion that is 'cleaner'.
*Note, Jeff and I were responding at the same time. I am not sure if you mean, 'if either the arrival or departure date is null, then true' OR if you mean 'if the departure date is null, but still check the arrival vs schedule per rules'
------------------------------
Mike Tamoush
------------------------------
JeffPeterson1
3 years agoQrew Captain
I don't think you need to list off every possible situation in the formula. The way I did it, if the date is between the other two, or if one or both fields are null it will be 'true' (checked), otherwise it's 'false' (not checked).
------------------------------
Jeff Peterson
------------------------------
------------------------------
Jeff Peterson
------------------------------
- MikeTamoush3 years agoQrew CommanderJeff,
I understood her ask differently. We interpret this scenario differently.
Sunday Date > Departure date and Arrival Date is null.
In my rule, that is false, in yours, that is true. I am unclear what she is asking for. Her last statement says Sunday date can't be outside of the other dates so I am a bit confused on the specific ask.
------------------------------
Mike Tamoush
------------------------------