Nested(?) If statements
Not sure if nested is the right term. I want the formula to show -
If any of these columns (IT, SUS, HSE etc) have "Not Achieved" in them then look for the largest/ latest date from the columns IT comp. SUS Comp. HSE Comp. and display that date.
Otherwise "Badges complete".
The result column is a date column so not sure if that is part of the problem?
I tried this -
=IF(OR([SUS]@row = "Not Achieved", [IT]@row = "Not Achieved", [HSE]@row = "Not Achieved", [Leadership]@row = "Not Achieved"), MAX([Commercial Comp.]@row, [OPS Comp.]@row, [HR Comp.]@row, [HSE Comp.]@row, [Other Comp.]@row, [IT Comp.]@row, [SUS Comp.]@row), "Badges complete")
Any suggestions?
Best Answer
-
Hi @Protonsponge,
Thanks for commenting. Yes all the columns were date columns. I tried it again today and it worked 🤷♀️
Yesterday smartsheet didn't seem to like the equals sign with all the variations I tried. Smartsheet, like the rest of us, must just need a break sometimes😁
Answers
-
Hello @Josephine,
I think you have the right formula and this should be working. Are all of your [Commercial Comp.], [OPS Comp.], [HSE Comp], [Other Comp], [IT Comp], [SUS Comp] all set to date columns? If not this would stop the formula working correctly.
Protonsponge
-
Hi @Protonsponge,
Thanks for commenting. Yes all the columns were date columns. I tried it again today and it worked 🤷♀️
Yesterday smartsheet didn't seem to like the equals sign with all the variations I tried. Smartsheet, like the rest of us, must just need a break sometimes😁 -
Ha ha maybe Smartsheet needed some caffeine
Pleased you got sorted.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 460 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!