Nesting IF, AND, etc. syntax
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
-
Hi,
Are the cells checked in a specific order?
Have you tried using something like: =IF(NOT(ISBLANK([Last Maintenance Check]@row)); 0)
Would that work?
I hope that helps!
Have a fantastic weekend!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
✅Did my post help answer your question or solve your problem? Please help the Community by marking it as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Let's start by adjusting your original formula. You have a few parenthesis out of place.
=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))))
There may be other adjustments needed, but the parenthesis was the first issue I noticed. Give it a shot and let me know how it works for you. If it is still giving you trouble, we can dive into it a little deeper.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!