Reading the table
Most take a single-column table, or a multi-column table plus acolumn index to operate on. The first column is index 1, and when column is omitted it defaults to 1; a column out of range returns an Invalid array dimensions error.
Units in a column
Cells may carry units. Compatible units convert before the calculation; mixing dimensions — a length with a mass — returnsinput.incompatible_units. Where a result is a quantity, it keeps the unit: sum and avg report in the first cell’s unit, while min and max report the winning cell as it was written.
variance, product, and sum2 are squared or multiplied quantities, and count is always a bare number.
Aggregation
These read a table column — see Reading the table.Count [count]
table.
Sum [sum]
table, or of the given column.
Average [avg, mean, average]
mean and average are aliases.
Product [product]
list.
Range and extremes
These read a table column — see Reading the table.Minimum [min, minimum]
Maximum [max, maximum]
min.
Range [range]
Dispersion
These read a table column — see Reading the table.Standard deviation [stddev, stddevp]
stddev is the sample standard deviation; stddevp is the population standard deviation.
Variance [variance, variancep]
variance is the sample variance; variancep is the population variance.
Median and quartiles [median, quartile1, quartile3]
Sums of products
These read a table column — see Reading the table.Sum of products [sumofproducts]
(weight; value) rows totals to sumofproducts(table), where sum reads only the first column. With resultsAsTable set to true, returns the per-row products as a table instead.
Sum of squares [sum2]
Sum XY [sumxy]
x_column value multiplied by its y_column value.
Probability
These take plain numbers. An argument carrying a unit returnsinput.incompatible_type.
Factorial [fact]
value, a whole number from 1 to 170. Values outside that range return a Parameter out of range error.
Permutations [perm]
n taken r at a time (order matters). n and r must be whole numbers with n ≥ r > 0.
Combinations [comb]
n taken r at a time (order does not matter). n and r must be whole numbers with n ≥ r > 0.
Random [rand]
lower and upper inclusive. With length, returns a table of that many random values.
