Hi, I’ve created a formula where the total billed column is calculated via the monthly billed and the start and end dates. However, I would like the total billed to be the same as the monthly billed if the end date is left blank. I cannot seem to get the AI prompt to work no matter how I reword it. Any suggestions?
The issue is that monday.com throws an “invalid parameter” error when YEAR(), MONTH(), or DAY() are used on blank Date fields. You need to handle blank dates inside the date functions themselves.
Right now your IF check is looking for an empty string, but Date columns in monday don’t behave like text. The safest approach is to explicitly check for “blank” using the date value itself.
Try wrapping your current formula with a blank End Date check like this:
At first I plugged it in and clicked “set formula”, and it would not work. Then I asked the AI to analyze the formula. I then clicked “Insert” with what it gave me, and it worked! Is there any difference?
Hi Misty! My name is Alea, and I am on the Customer Experience team at monday.com. It looks like you ran into a classic case of hidden formatting issues.
The logic in both versions of your formula is actually the same. The reason the second one worked likely comes down to formatting. In your first version, you used “curly” or “smart” quotes (“ ”). The monday.com formula builder reads those as illegal characters, which caused the error. The working version used straight quotes (" "), which the system recognizes properly.
When you clicked ‘Insert’ from the AI assistant, it automatically cleaned up the syntax behind the scenes. That includes converting smart quotes to straight quotes, making sure parentheses match, and fixing spacing. So even though the logic didn’t change, the formatting did.
It’s a subtle difference, but one that can definitely trip things up. Please let us know if you have any additional questions on this - we’re more than happy to help!