Numeric functions
This article explains various numeric functions that can be used in formula fields.
This cheat sheet provides a quick reference guide for various mathematical functions commonly used in data analysis and programming. Each function is accompanied by its syntax, a sample usage, and a brief description.
ABS
The ABS function returns the distance of the number from zero on the number line, ensuring that the result is non-negative.
Syntax
Sample
ADD
The ADD function computes the total of multiple numbers provided as arguments.
Syntax
Sample
AVG
The AVG function calculates the mean of a set of numerical values.
Syntax
Sample
CEILING
The CEILING function rounds a number up to the nearest integer greater than or equal to the input.
Syntax
Sample
COUNT
The COUNT function calculates the number of numeric arguments provided.
Syntax
Sample
COUNTA
The COUNTA function counts the number of non-empty arguments provided.
Syntax
Sample
COUNTALL
The COUNTALL function calculates the total number of arguments, both numeric and non-numeric.
Syntax
Sample
EVEN
The EVEN function rounds positive values up to the nearest even number and negative values down to the nearest even number.
Syntax
Sample
EXP
The EXP function returns 'e' raised to the power of a given number.
Syntax
Sample
FLOOR
The FLOOR function rounds a number down to the nearest integer.
Syntax
Sample
INT
The INT function truncates the decimal part, returning the integer portion of a number.
Syntax
Sample
LOG
The LOG function computes the logarithm of a number to a specified base. (default = e).
Syntax
Sample
MAX
The MAX function identifies the highest value from a set of numbers.
Syntax
Sample
MIN
The MIN function identifies the lowest value from a set of numbers.
Syntax
Sample
MOD
The MOD function calculates the remainder when dividing (integer division) one number by another.
Syntax
Sample
ODD
The ODD function rounds positive values up to the nearest odd number and negative values down to the nearest odd number.
Syntax
Sample
POWER
The POWER function raises a given base to a specified exponent.
Syntax
Sample
ROUND
The ROUND function is used to round a number to a specified number of decimal places (precision). Default value for precision is 0.
Syntax
Sample
ROUNDDOWN
The ROUNDDOWN function rounds a number down to a specified number of decimal places (precision). Default value for precision is 0.
Syntax
Sample
ROUNDUP
The ROUNDUP function rounds a number up to a specified number of decimal places (precision). Default value for precision is 0.
Syntax
Sample
SQRT
The SQRT function calculates the square root of a given number.
Syntax
Sample
VALUE
The VALUE function is used to extract the numeric value from a string (after handling %
or -
accordingly).