Formula Help Needed
Team,
I am trying to work out a formula that states the following:
If the WF Open Deadline - Facility Handoff Date is less than 5 days then Green
If the WF Open Deadline - Facility Handoff Date is at than 5 days then Yellow
If the WF Open Deadline - Facility Handoff Date is greater than 5 days then Red
If the Facility Handoff Date is empty then Gray
Below is what I created but I an not getting a Gray
=IF([WF OPEN DEADLINE]@row - [FACILITY HANDOFF (FHO) DATE]@row < (5), "Green", IF([WF OPEN DEADLINE]@row - [FACILITY HANDOFF (FHO) DATE]@row > (5), "Red", IF([WF OPEN DEADLINE]@row - [FACILITY HANDOFF (FHO) DATE]@row = (5), "Yellow", IF([FACILITY HANDOFF (FHO) DATE]@row = " ", "Gray"))))
Thank you in advance for your help!
Best Answer
-
Hey @MRosko02
The order of the IF needed adjusting.
=IF([FACILITY HANDOFF (FHO) DATE]@row = "", "Gray", IF([WF Open Deadline]@row - [FACILITY HANDOFF (FHO) DATE]@row < (5), "Green", IF([WF Open Deadline]@row - [FACILITY HANDOFF (FHO) DATE]@row > (5), "Red", IF([WF Open Deadline]@row - [FACILITY HANDOFF (FHO) DATE]@row = (5), "Yellow"))))
Does this work for you?
Kelly
Answers
-
Hey @MRosko02
The order of the IF needed adjusting.
=IF([FACILITY HANDOFF (FHO) DATE]@row = "", "Gray", IF([WF Open Deadline]@row - [FACILITY HANDOFF (FHO) DATE]@row < (5), "Green", IF([WF Open Deadline]@row - [FACILITY HANDOFF (FHO) DATE]@row > (5), "Red", IF([WF Open Deadline]@row - [FACILITY HANDOFF (FHO) DATE]@row = (5), "Yellow"))))
Does this work for you?
Kelly -
Thank you Kelly! That worked and I see my error
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!