# Math functions

<table><thead><tr><th width="216">NAME</th><th width="522">DESCRIPTION</th><th data-hidden>SYNTAX</th><th data-hidden>EXAMPLE</th><th data-hidden>EXPLANATION</th></tr></thead><tbody><tr><td><a href="math-functions/abs">ABS</a></td><td>Returns the absolute value of a number, a number without its sign</td><td>ABS(value)</td><td>ABS(COLUMN1)</td><td>Returns the absolute value of COLUMN1</td></tr><tr><td><a href="math-functions/average">AVERAGE</a></td><td>Returns the average of the arguments</td><td>Average(value1,[value2]....)</td><td>AVERAGE(COLUMN1, COLUMN2)</td><td>Returns the average of COLUMN1, COLUMN1</td></tr><tr><td><a href="math-functions/averageif">AVERAGEIF</a></td><td>Returns the average of the filtered values that satisfy the given condition</td><td>AVERAGEIF([Range], condition)</td><td>AVERAGEIF([Quantity],[Units Sold], “>10000”)</td><td>Returns the average of Quantity and Units Sold if they are above 10000</td></tr><tr><td><a href="math-functions/averageexneg">AVERAGEEXNEG</a></td><td>Returns the average of the arguments excluding negatives</td><td>AverageExNeg(value1,[value2]....)</td><td></td><td></td></tr><tr><td><a href="math-functions/averageexzero">AVERAGEEXZERO</a></td><td>Returns the average of the arguments excluding zeros</td><td>AverageExZero(value1,[value2]....)</td><td></td><td></td></tr><tr><td><a href="math-functions/averageexzeroneg">AVERAGEEXZERONEG</a></td><td>Returns the average of the arguments excluding zeros and negatives</td><td>AverageExZeroNeg(value1,[value2]....)</td><td></td><td></td></tr><tr><td><a href="math-functions/ceiling">CEILING</a></td><td>Rounds a number to the nearest integer or to the nearest multiple of significance</td><td>CEILING(value, significance)</td><td>CEILING(COLUMN1)</td><td>Returns the ceiling of COLUMN1 to the significance of two decimal</td></tr><tr><td><a href="math-functions/count">COUNT</a></td><td>Counts the number of items in the list</td><td>COUNT (value1,value2....)</td><td>COUNT(Column1,Column2,Column3)</td><td>Returns the count of the number of items in a range</td></tr><tr><td><a href="math-functions/countif">COUNTIF</a></td><td>Returns the count of items that match the specified condition</td><td>Count(list, condition)</td><td>COUNTIF([100,500,120],"&#x3C;200") COUNTIF([[Quantity],[Units Sold]],BLANK)</td><td>Returns 2, since only two value in the given list matches the condition Returns 1,2 or 0 depending on how many blank values are in Quantity, Units Sold in each row. This value can be used to set conditional formatting or used with IF condition to fill value in another column</td></tr><tr><td><a href="math-functions/divide">DIVIDE</a></td><td>Returns the division of two values</td><td>DIVIDE(Numerator, Denominator, Alternate)</td><td>DIVIDE(COLUMN1, COLUMN2, 0)</td><td>Returns COLUMN1/COLUMN2 and if any error, returns 0</td></tr><tr><td><a href="math-functions/even">EVEN</a></td><td>Rounds to the nearest higher even number</td><td></td><td></td><td></td></tr><tr><td><a href="math-functions/exp">EXP</a></td><td>Returns e raised to the power of a given number</td><td>EXP(value)</td><td>EXP(COLUMN1)</td><td>Returns the exponential of COLUMN1</td></tr><tr><td><a href="math-functions/floor">FLOOR</a></td><td>Rounds a number (towards zero) to the nearest specified multiple of significance</td><td>FLOOR(value, significance)</td><td>FLOOR(COLUMN1)</td><td>Returns the floor of COLUMN1 to the significance of two decimal</td></tr><tr><td><a href="math-functions/indexof">INDEXOF</a></td><td>Returns the index of the first occurrence of a number in an array of numbers</td><td></td><td></td><td></td></tr><tr><td><a href="math-functions/log">LOG</a></td><td>Returns the logarithm of a number to the base specified</td><td>LOG(value,base)</td><td>LOG(COLUMN1, 10)</td><td>Returns the Log to the base 10 of COLUMN1</td></tr><tr><td><a href="math-functions/max">MAX</a></td><td>Returns the largest number in a set of values</td><td>Max(value1,[value2]....)</td><td>MAX(COLUMN1,COLUMN2,COLUMN3)</td><td>Returns the maximum of COLUMN1, COLUMN2, COLUMN3</td></tr><tr><td><a href="math-functions/min">MIN</a></td><td>Returns the smallest number in a set of values</td><td>Min(value1,[value2]....)</td><td>MIN(COLUMN1,COLUMN2,COLUMN3)</td><td>Returns the minimum of COLUMN1, COLUMN2, COLUMN3</td></tr><tr><td><a href="math-functions/mround">MROUND</a></td><td>The MROUND function rounds a number to the nearest multiple of a specified value.</td><td></td><td></td><td></td></tr><tr><td><a href="math-functions/normdist">NORMDIST</a></td><td>Calculates Normal distribution for a measure, mean, and standard deviation</td><td></td><td></td><td></td></tr><tr><td><a href="math-functions/normsdist">NORMSDIST</a></td><td>Calculates the standard normal distribution for a measure, with a mean of 0 and a standard distribution of 1</td><td></td><td></td><td></td></tr><tr><td><a href="math-functions/norminv">NORMINV</a></td><td>Calculates the inverse normal distribution for a measure, mean, and standard deviation.</td><td></td><td></td><td></td></tr><tr><td><a href="math-functions/normsinv">NORMSINV</a></td><td>Calculates the inverse standard normal distribution for a measure, with a mean of 0, and standard deviation of 1.</td><td></td><td></td><td></td></tr><tr><td><a href="math-functions/odd">ODD</a></td><td>Rounds to the nearest higher odd number</td><td></td><td></td><td></td></tr><tr><td><a href="math-functions/power">POWER</a></td><td>Returns the result of a number raised to a power</td><td>POW(value,power)</td><td>POW(COLUMN1, 2)</td><td>Returns the COLUMN1 to the power of 2</td></tr><tr><td><a href="math-functions/rand">RAND</a></td><td>Returns a random number between 0 and 1</td><td>RAND()</td><td>RAND(0,1)</td><td>Returns a random number like 0.1,0.2,..</td></tr><tr><td><a href="math-functions/randbetween">RANDBETWEEN</a></td><td>Returns a random number between two values</td><td>RANDBETWEEN(value1,value2)</td><td>RANDBETWEEN(0,100)</td><td>Returns a random number between 0 and 100</td></tr><tr><td><a href="math-functions/round">ROUND</a></td><td>Rounds a number to the specified number of decimal places</td><td>ROUND(value, significance)</td><td>ROUND(COLUMN1, 2)</td><td>Returns the round of COLUMN1 to the significance of two decimal</td></tr><tr><td><a href="math-functions/rounddown">ROUNDDOWN</a></td><td>The ROUNDDOWN function always rounds a number down, toward zero</td><td></td><td></td><td></td></tr><tr><td><a href="math-functions/roundup">ROUNDUP</a></td><td>The <strong>ROUNDUP</strong> function always rounds a number up, away from zero</td><td></td><td></td><td></td></tr><tr><td><a href="math-functions/sqrt">SQRT</a></td><td>Returns the square root of a number</td><td>SQRT(value)</td><td>SQRT(COLUMN1)</td><td>Returns the exponential of COLUMN1</td></tr><tr><td><a href="math-functions/sum">SUM</a></td><td>Returns the sum of all the numbers in the argument</td><td>Sum(value1,[value2]....)</td><td>SUM(COLUMN1, COLUMN2)</td><td>Returns the sum of COLUMN1 and COLUMN2</td></tr><tr><td><a href="math-functions/pct">PCT</a></td><td>Used for a percentage calculation</td><td>PCT(value:number)</td><td>SALES + PCT(10) = SALES + 10%</td><td>Returns percentage value</td></tr></tbody></table>

## Finance Function

<table><thead><tr><th width="273"></th><th></th></tr></thead><tbody><tr><td><a href="math-functions/pmt">PMT</a></td><td>Calculates the payment for a loan based on constant payments and a constant interest rate</td></tr></tbody></table>
