If And formula help

I'm trying to create a formula that will give the project status based on start date, end date, and complete flag. I have been working on the following formula for a bit, trying different iterations, but it just wont work. If the record does not have a Start date, then Status should be TBD, else, if Start date is greater than or equal to Today and Due date is greater than 15 days from today, then status is On Track, else if Start date is greater than or equal to Today and Due date is less than 15 days from today then status is Coming Due.

=IF([Complete]@row = 1, "COMPLETE", IF([Start Date]@row = "", "TBD", IF(and([Start Date]@Row > Today(),[Due Date]@row <= (TODAY(+15))), "COMING DUE", IF([Start Date]@Row >= Today(), "ON TRACK")), "NOT STARTED"))

Tags:

Best Answer

  • Mark.poole
    Mark.poole Community Champion
    Answer ✓

    @Juan Pimentel the reason for this is it is finding all of the previous statements as false.
    I think I see the problem.

    =IF(Complete@row = 1, "COMPLETE", IF(ISBLANK([Start Date]@row), "TBD", IF(AND([Start Date]@row > TODAY(), [Due Date]@row <= TODAY(15)), "COMING DUE", IF([Start Date]@row <= TODAY(), "ON TRACK", "NOT STARTED"))))

    see if the last little adjustment I did fixed the issue for you

    If you found this comment helpful. Please respond with any of the buttons below. Awesome🖤, Insightful💡, Upvote⬆️, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.

Answers

  • Adam Murphy
    Adam Murphy ✭✭✭✭✭✭

    Try this: =IF([Complete]@row = 1, "COMPLETE", IF(ISBLANK([Start Date]@row), "TBD", IF(AND([Start Date]@row >= TODAY(), [Due Date]@row > TODAY() + 15), "ON TRACK", IF(AND([Start Date]@row >= TODAY(), [Due Date]@row < TODAY() + 15), "COMING DUE", "NOT STARTED")))

  • Mark.poole
    Mark.poole Community Champion

    @Juan Pimentel

    It looks like you were really close try this.

    =IF(Complete@row = 1, "COMPLETE", IF(ISBLANK([Start Date]@row), "TBD", IF(AND([Start Date]@row > TODAY(), [Due Date]@row <= TODAY(15)), "COMING DUE", IF([Start Date]@row >= TODAY(), "ON TRACK", "NOT STARTED"))))

    If you found this comment helpful. Please respond with any of the buttons below. Awesome🖤, Insightful💡, Upvote⬆️, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.

  • @Adam Murphy @Mark.poole thanks for the responses! Both formulas gave me "NOT STARTED" in a record where Start Date is 3/1/25 and End Date is 12/15/25.

  • Mark.poole
    Mark.poole Community Champion
    Answer ✓

    @Juan Pimentel the reason for this is it is finding all of the previous statements as false.
    I think I see the problem.

    =IF(Complete@row = 1, "COMPLETE", IF(ISBLANK([Start Date]@row), "TBD", IF(AND([Start Date]@row > TODAY(), [Due Date]@row <= TODAY(15)), "COMING DUE", IF([Start Date]@row <= TODAY(), "ON TRACK", "NOT STARTED"))))

    see if the last little adjustment I did fixed the issue for you

    If you found this comment helpful. Please respond with any of the buttons below. Awesome🖤, Insightful💡, Upvote⬆️, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.

  • Adam Murphy
    Adam Murphy ✭✭✭✭✭✭

    Mark's adjustment should work, I agree.

  • @Adam Murphy @Mark.poole

    It worked! thank you both for the assistance!!!!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!