Sep 02, 2021 01:27 AM
Hi All,
I am trying to figure out if a particular task has an upcming due date by seeing if a particular date field falls within 4 weeks from today.
I have written the following formula:
IF(AND({Milestone_Current_Due_Date} <= DATEADD(TODAY(), 1, ‘month’)),{Milestone Status}!=‘Completed’, “Upcoming Due Date”)
But as you can tell from this screenshot it does not seem to operating correctly, saying some tasks have an upcming due date that is not within 4 weeks.
Sep 02, 2021 12:33 PM
Hi Gabriel,
Looking at your formula, you have Milestone Status to equal Completed. Your screenshot shows the status as Incomplete. I think the formula needs to say Incomplete or you need to select Complete in Milestone Status to keep your formula as is.
Sep 02, 2021 01:54 PM
The formula actuatally is using !=
, which means “do not equal”, so that isn’t the issue. The closing parenthesis for the AND() statement is in the wrong place:
IF(
AND(
{Milestone_Current_Due_Date} <= DATEADD(TODAY(), 1, "month"),
{Milestone Status}!="Completed"
),
"Upcoming Due Date"
)
Sep 02, 2021 04:27 PM
WOW thanks so much! :grinning: