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
- Smartsheet Customer Resources
- 63K Get Help
- 379 Global Discussions
- 213 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!