# Re: Combining two IF formulas to create a single "Due in X Days" formula

Solved
646 1
cancel
Showing results for
Did you mean:
5 - Automation Enthusiast

Hi! I'm new to creating formulas. I can create two IF formulas in independent columns, but am struggling to combine them into a single formula to communicate a task is due in ___ days, but to also make this countdown stop when a task is completed.

This formula is dependent on two fields: Due Date and Status (Not Started, In Progress, Done).

I need this formula to create 3 potential outcomes:

1. BLANK, if no Due Date was entered.
2. __ DAYS, if a Due Date was entered and the task is not complete.
3. ✔️if a Due Date was entered and the task is complete.

I achieved #1 and #2 with this formula: IF({Due Date}, DATETIME_DIFF({Due Date}, TODAY(),'days') & " days")

I achieved #3 with this formula: IF(Status="Done", "✔️")

But I am not sure how to combine these into one single formula, in one single column.

1 Solution

Accepted Solutions
18 - Pluto

Give this a try:

``````IF(
Status="Done",
"✔️",
IF(
{Due Date},
DATETIME_DIFF(
{Due Date},
TODAY(),
'days'
) &
" days"
)
)``````

2 Replies 2
18 - Pluto

Give this a try:

``````IF(
Status="Done",
"✔️",
IF(
{Due Date},
DATETIME_DIFF(
{Due Date},
TODAY(),
'days'
) &
" days"
)
)``````