Nested(?) If statements

Josephine
Josephine ✭✭✭✭
edited 11/05/24 in Formulas and Functions

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?

Tags:

Best Answer

  • Josephine
    Josephine ✭✭✭✭
    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

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!