Hello everyone,
I have learned so much helpful information from this site, blog and question boards that I feel embarrassed to have to ask for help again.
Here is the issue.
I have two columns that contain the Start Date and End Date of an event. These columns are the basis of a number of IF, DATEDIF statements and Conditional formatting within a user completed scheduling template.
Due to a recent format request, (the request comes after I've learned so much from these boards that they feel it's easy ) the Start Date and End Date column fields must contain the 00/00/00 until a user enters a date. Besides supporting additional helper columns that determine event length when dates are entered, the Start Date and End Date column 00/00/00 is used in other IF statements and Conditional formatting to identify user input errors and incorrect information. An IF Statement example would be =IF($R1<>"NA","00/00/00") and CF example, =IF($R1<>"00/00/00",AND($AA1="00/00/00",AND($AB1<>"R",AND($AB1<>"C")))).
Everything works well except the initial DATEDIF function which is =DATEDIF(R1,S1,"D")+1. The function obviously works fine when dates are entered in the Start Date and End Date column fields. When the text 00/00/00 the #VALUE! Error is received as expected.
I’ve tried to write a nested IF statement to overcome the text entry and focus on the dates so many different ways I can’t even remember where I started.
This is an example of one =IF($R1="00/00/00","0",AND($S1="00/00/00","0",AND(DATEDIF(R1,S1,"D")+1))) It will change the field entry to 0 (zero) but will not work correctly when actual dates are entered.
Does anyone have a thought on how to resolve this?
Thanks,
Trianna
I have learned so much helpful information from this site, blog and question boards that I feel embarrassed to have to ask for help again.
Here is the issue.
I have two columns that contain the Start Date and End Date of an event. These columns are the basis of a number of IF, DATEDIF statements and Conditional formatting within a user completed scheduling template.
Due to a recent format request, (the request comes after I've learned so much from these boards that they feel it's easy ) the Start Date and End Date column fields must contain the 00/00/00 until a user enters a date. Besides supporting additional helper columns that determine event length when dates are entered, the Start Date and End Date column 00/00/00 is used in other IF statements and Conditional formatting to identify user input errors and incorrect information. An IF Statement example would be =IF($R1<>"NA","00/00/00") and CF example, =IF($R1<>"00/00/00",AND($AA1="00/00/00",AND($AB1<>"R",AND($AB1<>"C")))).
Everything works well except the initial DATEDIF function which is =DATEDIF(R1,S1,"D")+1. The function obviously works fine when dates are entered in the Start Date and End Date column fields. When the text 00/00/00 the #VALUE! Error is received as expected.
I’ve tried to write a nested IF statement to overcome the text entry and focus on the dates so many different ways I can’t even remember where I started.
This is an example of one =IF($R1="00/00/00","0",AND($S1="00/00/00","0",AND(DATEDIF(R1,S1,"D")+1))) It will change the field entry to 0 (zero) but will not work correctly when actual dates are entered.
Does anyone have a thought on how to resolve this?
Thanks,
Trianna