Am stuck with an IF(AND formula
=IF(AND([% Complete]@row < 1, [End Date]@row > TODAY(), "Red", IF(AND([% Complete]@row < 1, [End Date]@row <= TODAY(), "Amber", "Green"))))
which should mean (in my dreams :))
if under 100% and the date is past, then red
if under 100% and the date is today and future, then amber
otherwise green
Where am I wrong please
Best Answer
-
I think you're close, just have some misplaced parentheses and incorrect operators. Let's see if this works:
=IF(AND([% Complete]@row < 1, [End Date]@row < TODAY()), "Red", IF(AND([% Complete]@row < 1, [End Date]@row >= TODAY()), "Amber", "Green"))
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
I also tried
=IF(AND([End Date]@row >= TODAY(), [% Complete]@row = 1, "Green", IF(AND([End Date]@row >= TODAY(), [% Complete]@row > 0, "Amber", "Red"))))
-
I think you're close, just have some misplaced parentheses and incorrect operators. Let's see if this works:
=IF(AND([% Complete]@row < 1, [End Date]@row < TODAY()), "Red", IF(AND([% Complete]@row < 1, [End Date]@row >= TODAY()), "Amber", "Green"))
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Thank you, that works and makes perfect sense - now I have a new problem! as I want my Green, Amber, Red to show as the coloured dots equivalent but some do and some still show the Name of colour instead, whereas the column property is restricted to symbols
Any idea please?
-
Sorry, I 've found out! It's because I use "Amber" instead of "Yellow", doh!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!