Help

Editing a formula for upcoming due dates

Topic Labels: Formulas
Solved
Jump to Solution
1211 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Jenni_Bowles
5 - Automation Enthusiast
5 - Automation Enthusiast

I need some help editing my original formula which is:

IF(IS_BEFORE({Actual Site Walk}, TODAY()), “ :white_check_mark: Done​:white_check_mark:”,IF(IS_BEFORE({Forecasted Site Walk}, TODAY()), “ :alarm_clock: OVERDUE​:alarm_clock:”,“ :running_man: In-progress​:running_man:”))

I’d like to add/change the formula to show “DUE SOON” for dates in the Forecasted Site Walk field that are within the next 14 days, but keep the rest as well. How do I do that? Thanks!

1 Solution

Accepted Solutions
Justin_Barrett
18 - Pluto
18 - Pluto

I tested this, and am pretty sure it works for what you want:

IF(
    IS_BEFORE({Actual Site Walk}, TODAY()), "✅Done✅",
    IF(
        IS_BEFORE({Forecasted Site Walk}, TODAY()), "⏰OVERDUE⏰",
        IF(
            AND(
                DATETIME_DIFF(TODAY(), {Forecasted Site Walk}, "days") >= -14,
                DATETIME_DIFF(TODAY(), {Forecasted Site Walk}, "days") < 0
            ),
            "DUE SOON",
            "🏃‍♂️In-progress🏃‍♂️"
        )
    )
)

See Solution in Thread

2 Replies 2
Justin_Barrett
18 - Pluto
18 - Pluto

I tested this, and am pretty sure it works for what you want:

IF(
    IS_BEFORE({Actual Site Walk}, TODAY()), "✅Done✅",
    IF(
        IS_BEFORE({Forecasted Site Walk}, TODAY()), "⏰OVERDUE⏰",
        IF(
            AND(
                DATETIME_DIFF(TODAY(), {Forecasted Site Walk}, "days") >= -14,
                DATETIME_DIFF(TODAY(), {Forecasted Site Walk}, "days") < 0
            ),
            "DUE SOON",
            "🏃‍♂️In-progress🏃‍♂️"
        )
    )
)

That worked! Thank you!! :grinning_face_with_smiling_eyes: