ROUND(number, [digits])Round to a number of decimal places. ROUND(3.14159, 2)
ABS(number)Absolute value. ABS(-5)
FLOOR(number)Round down to a whole number. FLOOR(4.9)
CEIL(number)Round up to a whole number. CEIL(4.1)
CEILING(number)Round up to a whole number — identical to CEIL. This is the spelling tables, forms and automations use, so a formula moved from any of them works unchanged. CEILING(4.1)
SQRT(number)Square root. SQRT(144)
POW(base, exp)Raise to a power. POW(2, 8)
POWER(base, exp)Raise to a power — identical to POW, and the spelling tables, forms and automations use. The `^` operator is the shorter way to write the same thing: 2 ^ 10 and POWER(2, 10) are both 1024 here, as they are in a sheet. (This entry used to say `^` was not part of this language, which was true until it was added.) POWER(2, 10)
MOD(a, b)Remainder of a divided by b. MOD(10, 3)
MIN(a, b, …)Smallest of the numbers. Note: inside the in-grid Script console a cross-sheet aggregate of the same name claims every call, so this numeric form returns nothing there — AVERAGE is never shadowed. MIN(4, 9, 2)
MAX(a, b, …)Largest of the numbers. Note: inside the in-grid Script console a cross-sheet aggregate of the same name claims every call, so this numeric form returns nothing there — AVERAGE is never shadowed. MAX(4, 9, 2)
SUM(a, b, …)Adds the numbers together. Note: inside the in-grid Script console a cross-sheet aggregate of the same name claims every call, so this numeric form returns nothing there — AVERAGE is never shadowed. SUM(10, 20, 5)
AVERAGE(a, b, …)The mean of the numbers. AVERAGE(2, 4, 6)
AVG(a, b, …)The mean of the numbers — identical to AVERAGE, and the spelling automations use. Note: inside the in-grid Script console a cross-sheet aggregate of the same name claims every call, so this numeric form returns nothing there — AVERAGE is never shadowed. AVG(2, 4, 6)
PRODUCT(a, b, …)Multiplies the numbers together. PRODUCT(2, 3, 4)
COUNT(a, b, …)How many of the arguments are numbers. Note: inside the in-grid Script console a cross-sheet aggregate of the same name claims every call, so this numeric form returns nothing there — AVERAGE is never shadowed. COUNT(1, "x", 3)
COUNTA(a, b, …)How many of the arguments are not blank. COUNTA(1, "", "x")
NUMBER(value)Convert a value to a number. NUMBER("42")
SIGN(number)-1, 0, or 1 for the sign of a number. SIGN(-4)
TRUNC(number)Drop the decimal part (toward zero). TRUNC(4.9)
YEAR(date)The 4-digit year of a date. YEAR(cell("Due"))
MONTH(date)The month (1–12) of a date. MONTH(cell("Due"))
DAY(date)The day of month (1–31) of a date. DAY(cell("Due"))
WEEKDAY(date)Day of week, 1 = Sunday … 7 = Saturday. WEEKDAY(cell("Due"))
DAYSBETWEEN(start, end)Whole days from start to end (negative if end is earlier). DAYSBETWEEN(cell("Start"), TODAY())
DATEADD(date, days)The date a number of days later (negative = earlier). DATEADD(cell("Start"), 30)
ADDMONTHS(date, months)The date a number of months later, clamped to the month end. ADDMONTHS(cell("Start"), 12)
DATE(year, month, day)Build a date (YYYY-MM-DD) from parts. DATE(2026, 7, 21)
TODAY()Today's date as YYYY-MM-DD. TODAY()
ROUNDUP(number, [digits])Round away from zero to the given decimals. ROUNDUP(2.1, 0)
ROUNDDOWN(number, [digits])Round toward zero to the given decimals. ROUNDDOWN(2.9, 0)
LN(number)Natural logarithm (base e). For a base-10 logarithm use LOG(x) or LOG10(x). LN(2.718)
LOG10(number)Base-10 logarithm. Exact for powers of ten, where LOG(x, 10) can land a hair under. LOG10(1000)
EXP(number)e raised to a power. EXP(1)
LOG(number, [base])Logarithm of a number, base 10 unless you give another base — the same meaning Excel and Google Sheets both give it. Refuses a number ≤ 0, and a base ≤ 0 or equal to 1, rather than returning an infinity or a NaN that would spread through the rest of the script. (It used to be a lower-case alias of PRINT, which made the logarithm unreachable; printing is now spelled PRINT only.) LOG(1000)