Need help with RYG status formula.
Hi,
I am using this formula currently to change a harvey ball based on dates. It is currently working, but I am modifying my sheet to include rows that I want to ignore for now, meaning that some date fields will be blank. I would like for the formula to return no harvey ball color when there are no dates in the cells to calculate. This seems simple but I appear to be having trouble with it.
Can anyone offer any guidance?
This is the working (existing) formula:
=IF([Next PM Due Date]@row < TODAY(), "Red", IF([Next PM Notification (Due Within 30 Days)]@row <= TODAY(), "Yellow", IF([Next PM Due Date]@row > TODAY(), "Green")))
If I clear out the dates using this formula, the "Status" cell will still maintain the last harvey ball color in it. I would like for it be blank when no dates are entered.
Thanks!
Best Answer
-
Hi @Jamy Crum
the easiest way is to add this IF statement prior to your formula above:
=IF(AND(ISBLANK([Next PM Due Date]@row),ISBLANK([Next PM Notification (Due Within 30 Days)]@row)),1,[your formula here])
Hope it helped!
Answers
-
Hi @Jamy Crum
the easiest way is to add this IF statement prior to your formula above:
=IF(AND(ISBLANK([Next PM Due Date]@row),ISBLANK([Next PM Notification (Due Within 30 Days)]@row)),1,[your formula here])
Hope it helped!
-
Thanks for the fast response.
The formula worked perfectly with one minor modification. It was returning a "1" when no date was present so I just had to change that to " ".
Again, thanks for the quick response. You saved me a lot of time!
-
Oops, my mistake!
Happy to learn it helped you :)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!