Getting Message Column Formula Syntax Isn't Right
I'm trying to put the below formula into a column formula and continue to get this error: "The column formula syntax isn’t quite right, see our help article https://help.smartsheet.com/articles/2481944 for more information.". I've tried everything I can think of and it just isn't working. I've tried breaking it into pieces to find the part that isn't working, the first IF statement is successful but all of the following are giving the error, making me wonder if it has to do with my use of TODAY().
=IF([Temp Move 2 Move In Date]@row = "", "Vacant", IF([Temp Move 2 Move In Date]@row =TODAY(), “Occupied”, IF([Temp Move 2 Move In Date]@row >TODAY(), "Vacant", IF(AND([Temp Move 2 Move In Date]@row <TODAY(), [Perm Unit Move In Date]@row >=TODAY()), "Occupied", IF(AND([Temp Move 2 Move In Date]@row <TODAY(), [Perm Unit Move In Date]@row <TODAY()), "Vacant", "Error")))))
Answers
-
Hi Bethany,
Try starting the formula with IFERROR( and an error response at the end.
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
There were multiple errors in your formula. One thing was that the wrong characters were surrounding the second IF part and Occupied.
Try something like this.
=IF([Temp Move 2 Move In Date]@row = "", "Vacant", IF([Temp Move 2 Move In Date]@row = TODAY(), "Occupied", IF([Temp Move 2 Move In Date]@row > TODAY(), "Vacant", IF(AND([Temp Move 2 Move In Date]@row < TODAY(), [Perm Unit Move In Date]@row >= TODAY()), "Occupied", IF(AND([Temp Move 2 Move In Date]@row < TODAY(), [Perm Unit Move In Date]@row < TODAY()), "Vacant", "Error")))))
Did that work?
I hope that helps!
Be safe and have a fantastic weekend!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. 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.
-
@Andrée Starå your formula worked except that it is returning a value that I don't expect it to and I think I need to add a new line of If/And statements. I tried adding it and copying it from what you sent but I'm still getting an error and cannot figure out what is causing it. Here is my updated formula, the added portion is "IF(AND([Temp Move 2 Move In Date]@row < TODAY(), [Perm Unit Move In Date]@row = “”), “Occupied”". What was happening is that if I had the Temp Move 2 Move In Date populated with a date less than today and Perm Unit Move In Date was blank it was returning Vacant, when it should return Occupied, so I'm adding a line to account for that situation of the Perm Unit Move In Date being blank.
=IF([Temp Move 2 Move In Date]@row = "", "Vacant", IF([Temp Move 2 Move In Date]@row = TODAY(), "Occupied", IF([Temp Move 2 Move In Date]@row > TODAY(), "Vacant", IF(AND([Temp Move 2 Move In Date]@row < TODAY(), [Perm Unit Move In Date]@row >= TODAY()), "Occupied", IF(AND([Temp Move 2 Move In Date]@row < TODAY(), [Perm Unit Move In Date]@row = “”), “Occupied”, IF(AND([Temp Move 2 Move In Date]@row < TODAY(), [Perm Unit Move In Date]@row < TODAY()), "Vacant", "Error")))))
-
Excellent!
You're more than welcome!
✅Remember! Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. 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.
-
@Andrée Starå do you have any insight into why my formula I posted on 11/16 wouldn't work? I've been trying it with ISBLANK as well but it doesn't seem to work. This is the primary line I'm trying to figure out is IF(AND([Temp Move 2 Move In Date]@row < TODAY(), [Perm Unit Move In Date]@row = “”), “Occupied”, but it doesn't seem to want to work to include a condition for a cell being blank with the AND statement.
-
Did you get it working?
✅Remember! Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. 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.
-
I did, thank you!
-
Excellent!
✅Remember! Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. 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.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!