Hi Everyone,
I am new to Monday and trying to use a a formula to update the due dates using if statements. Somehow it is not working. So, my problem is simple and I want to achieve as follows:
If({Practice Column}=“AB”, Update Due date to +N days)
If({Practice Column}=“CD”, Update Due date to +N days)
If({Practice Column}=“XY”, Update Due date to +N days)
Else ( Update Due date to +n days)
I Have tried nested if statement and Switch statement however, it is not giving me the expected results. It always work for First if statement but not for other cases. of course, I must be doing something wrong or missing something which I am not able to identify.
Here is my Code Snippet I am using:
If Statement:
IF({item’s Pratice} = “QA”, TEXT(DATEVALUE({item’s Date}) + 7, “YYYY-MM-DD”), (IF({item’s Pratice} = “Front End”, TEXT(DATEVALUE({item’s Date}) + 7, “YYYY-MM-DD”), (TEXT(DATEVALUE({item’s Date}) + 7, “YYYY-MM-DD”)))))
Switch Statement:
SWITCH({item’s Pratice} , “QA”, TEXT(DATEVALUE({item’s Due Date}) + 7, “YYYY-MM-DD”),“Front End”, TEXT(DATEVALUE({item’s Due Date}) + 7, “YYYY-MM-DD”),“PHP”, TEXT(DATEVALUE({item’s Due Date}) + 7, “YYYY-MM-DD”),TEXT(DATEVALUE({item’s Due Date}), “YYYY-MM-DD”))
Please help me to sort this out.
NOTE: I am using General Castor to Caste value to a column