Adding at risk based on health color
I'm trying to make a formula to set a flag in the at risk column based on whether the health is red and at least 3 days past the due date. Something isn't behaving quite right on the 3 days part and it's flagging some things that are not yet 3 days past due....
Here is what I have, is this not correct?
=IF(AND((Health@row = "Red"), [End Date]@row < TODAY(3)), 1, 0)
Best Answer
-
I am not sure the formula you have for your health column, but I recreated the referenced columns in your formula and I do not see any issues with the corrected formula @DKazatsky2 provided to meet your criteria as detailed out in your initial request.
Answers
-
@bobloblaw You have extra parentheses in your AND statement. Try this:
=IF(AND(Health@row = "Red", [End Date]@row < TODAY(3)), 1, 0)
-
Aside from the extra parentheses mentioned above, I believe you are also checking the end date against 3 days from now, as opposed to 3 days ago.
Give this a try: =IF(AND(Health@row = "Red", [End Date]@row < TODAY(-3)), 1, 0)
Hope this helps,
Dave
-
Thank you both! I will give these a shot!
-
Looks like neither worked.
-
@bobloblaw Can you share a screenshot of your sheet with confidential info removed/hidden of course.
-
Have you tried the -3 as suggested above? What behavior are you seeing that needs to be corrected?
-
I am not sure the formula you have for your health column, but I recreated the referenced columns in your formula and I do not see any issues with the corrected formula @DKazatsky2 provided to meet your criteria as detailed out in your initial request.
-
@DKazatsky2 Please know that I am complimenting you not critiquing. I used your formula as the example because it met the original request.
-
@JamesB Thanks. Never took it negatively.
-
Thank you all - I think I had a typo in my column!! This is why I should lean on copy/paste instead of just typing them over and over! 🤣
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 69 Community Job Board
- 498 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!