From the monday Formula column
What to use in General Caster instead of ADD_DAYS, FORMAT_DATE, HOURS_DIFF, WORKDAYS, MINUS and the other Formula column functions, plus regular expressions.
The automation blocks have General Caster’s own functions, simpler than those of monday’s Formula column. Columns are written the same way, by their name between braces: {Date}. For the functions that exist only in monday, use:
| In the Formula column | In General Caster | Example |
|---|---|---|
MINUS(a, b) |
a - b |
{Budget} - {Spent} |
MULTIPLY(a, b) |
a * b |
{Hours} * 45 |
DIVIDE(a, b) |
a / b |
{Done} / {Total} |
ADD_DAYS(date, days) |
DATE.ADD(date, days) |
DATE.ADD({Start}, 15) |
SUBTRACT_DAYS(date, days) |
DATE.ADD(date, -days) |
DATE.ADD({Deadline}, -7) |
ADD_MINUTES(date, minutes) |
DATE.ADD(date, minutes, "minutes") |
DATE.ADD({Meeting}, 90, "minutes") |
SUBTRACT_MINUTES(date, minutes) |
DATE.ADD(date, -minutes, "minutes") |
DATE.ADD({Meeting}, -30, "minutes") |
FORMAT_DATE(date, format) |
DATE.FORMAT(date, format) |
DATE.FORMAT({Date}, "DD/MM/YYYY") |
HOURS_DIFF(end, start) |
DATE.DIFF(start, end, "minutes"): the start first, and a number of minutes |
DATE.DIFF({Start}, {End}, "minutes") |
WORKDAYS(end, start, [days off]) |
NETWORKDAYS(start, end, [days off]): the start first; for a Timeline column, TIMELINE.WORKDAYS |
NETWORKDAYS({From}, {To}, "IT") |
A formula in a block that uses a name on the left gets an Unknown name error that says what to use instead, except SUBTRACT_DAYS, which still works in the blocks: use DATE.ADD in new formulas. See Dates for the date functions and the codes of DATE.FORMAT.
The older recipes keep the Formula column functions and work as before.
Regular expressions
Regular expressions find text by its pattern: an email address, an order number, a VAT number.
| Function | Gives | Example |
|---|---|---|
REGEXEXTRACT(text, pattern) |
The first part that matches, or the part in brackets; a Not found error (#N/A) if nothing matches |
REGEXEXTRACT({Subject}, "Order #(\d+)") → 4521 |
REGEXREPLACE(text, pattern, replacement) |
The text with every match replaced; $1, $2 are the parts in brackets |
REGEXREPLACE({Name}, "(\w+) (\w+)", "$2 $1") |
REGEXMATCH(text, pattern) |
TRUE if the text matches | REGEXMATCH({VAT}, "^IT\d{11}$") |
A pattern that is not valid gives a Wrong value error (#VALUE!). Patterns are limited to 500 characters and texts to 50,000.
Regular expressions work in every recipe, the older ones included, since November 2026.