After reading this regarding a two condition IF statement for Project Status where Project State is ‘In Progress’ and Difference between Start Date and Today’s Date is Negative, = Project in Progress. If difference between Start Date and Today’s Date is Positive = Project has yet to start as Start Date is in future.
Well that logic would apply for End Date. I cannot assume because the difference between EndDate and Today’s date being negative the project is past due. I need the other condition regarding Project Status. For example, if Project Status is Completed and in the Table the End Date is older than the Current Date, the diff will be a negative value but that does not mean it is Past Due. So i need a Two Condition IF statement for End Date and Project Status.
So any assistance greatly appreciated.
After reading this regarding a two condition IF statement for Project Status where Project State is ‘In Progress’ and Difference between Start Date and Today’s Date is Negative, = Project in Progress. If difference between Start Date and Today’s Date is Positive = Project has yet to start as Start Date is in future.
Well that logic would apply for End Date. I cannot assume because the difference between EndDate and Today’s date being negative the project is past due. I need the other condition regarding Project Status. For example, if Project Status is Completed and in the Table the End Date is older than the Current Date, the diff will be a negative value but that does not mean it is Past Due. So i need a Two Condition IF statement for End Date and Project Status.
So any assistance greatly appreciated.
The best thing of writing down your question is that during the process, it is amazing that you can actually figure out the answer to your question, which i did :slightly_smiling_face:
Goal:
Issue: Create a nested IF statement based on two different fields. First, i had to indicate the project was in progress. I have a list of projects that include the actual start and end times and those that have been completed. So i did not want to identify an End Date where the project was completed.
I just wanted to see which projects that are in progress are past due.
Solved: Condition IF statement where IF Project is in Progress calculate difference between Today’s Date and End Date.
IF(
{Project Status}=‘In Progress’,
IF(
DATETIME_DIFF(TODAY(),{End_Date},‘d’)>14,
“ :x: Past Due over 2 weeks”,
IF(
DATETIME_DIFF(TODAY(),{End_Date},‘d’)>7,
‘ :alarm_clock: Overdue by more than one week’,
IF(
DATETIME_DIFF(TODAY(),{End_Date},‘d’)<7,
‘ :running_man: Overdue less than one week’
)
)
)
)