Nesting IF, AND, etc. syntax

Options

I am trying to get a status to report as flagged in certain situations and not others. I need it to be specific, because I have alerts for when the status is flagged and I don't want it to happen when it isn't necessary.

Right now I have:

IF(ISBLANK([Last Maintenance Check]@row), 1, IF(ISBLANK([Next Maintenance Check]@row), 0, IF([Next Maintenance Check]@row <= TODAY(7), 1, IF([Needs Maintenance]@row = "checked", 1))))

This works, except that when there isn't an item yet to have a status, meaning a blank row, then it is still flagged. I want to be able to apply this to my entire sheet so that as rows are added from the form, that the formula will already be applied. So I need to add something to the effect of: "when [item] is not equal to nothing/is not blank" as a condition.

I attempted:

=IF(AND(ISBLANK([Last Maintenance Check]@row, NOT(ISBLANK([Asset Brand/Model]@row), 1, IF(ISBLANK([Next Maintenance Check]@row), 0, IF([Next Maintenance Check]@row <= TODAY(7), 1, IF([Needs Maintenance]@row = "checked", 1))))))


but I get INCORRECT ARGUMENT

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!