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
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!