Hi Izzy,
I have interpreted your requirements. I didn’t fully get certain situations. Here is how it works now:
- BFS Date exists (in this case, adds 1 day to BFS Date)
- BFS Date does not exist and call Answered (in this case adds 3 days to Date of call)
- BFS Date does not exist and call No answer (in this case adds 30 days to Date of call)
Consider also that as formulas become more complex, it may be more manageable to separate the logic into different columns. i.e. you can have a “Days to Add” column, which takes care of that part of the logic and then a separate column which decides which date to use.
Here are two formulas. Both have effectively the same function, but the hierarchy is different. In the first, it would be easier to create specific custom logic for different statuses. In the second, which is more simple, it would be easier to change the number of days only for different statuses.
I’d recommend familiarizing yourself with the functions and how monday.com formulas work if you’re planning to continue maintaining your system by yourself.
FORMAT_DATE(
SWITCH(
{call status reason},
"No answer",
IF(
{BFS Date}="",
ADD_DAYS(
{Date of call},
30
),
ADD_DAYS(
{BFS Date},
1
)
),
"Answered",
IF(
{BFS Date}="",
ADD_DAYS(
{Date of call},
3
),
ADD_DAYS(
{BFS Date},
1
)
),
""
),
"MMM DD, YYYY"
)
FORMAT_DATE(
IF(
{BFS Date}="",
ADD_DAYS(
{Date of call},
SWITCH(
{call status reason},
"No answer",
30,
"Answered",
3,
0
)
),
ADD_DAYS(
{BFS Date},
1
)
),
"MMM DD, YYYY"
)