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"))
Best 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
-
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")))
-
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.
-
@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.
-
Mark's adjustment should work, I agree.
-
It worked! thank you both for the assistance!!!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 452 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!