The document describes various mathematical and logical functions that can be used in spreadsheets. Some of the mathematical functions described include ABS, which returns the absolute value of a number, INT which rounds a number down to the nearest integer, AVERAGE which returns the average of arguments, and SUM which adds numbers or cells. Logical functions described include AND which returns TRUE if all arguments are TRUE, OR which returns TRUE if at least one argument is TRUE, and IF which returns one value if a test is TRUE and another value if the test is FALSE.
2. ABS
Returns the absolute value of a number.
Syntax
ABS(Number)
Number is the value whose absolute value is to be calculated. The absolute
value of a number is its value without the +/- sign.
Example
=ABS(-56) returns 56.
=ABS(12) returns 12.
=ABS(0) returns 0.
INT
Rounds a number down to the nearest integer.
Syntax
INT(Number)
Returns Number rounded down to the nearest integer.
Example
=INT(5.7) returns 5.
3. AVERAGE
Returns the average of the arguments.
Syntax
AVERAGE(Number1; Number2; ...Number30)
Number1; Number2;...Number 0 are numerical values or ranges.
Example
=AVERAGE(A1:A50)
MIN
Returns the minimum value in a list of
arguments.
Syntax
MIN(Num1; Num2; ...Num30)
Num1; Num2;...Num30 are numerical
values or ranges.
Example
=MIN(A1:A10) returns the smallest value
in the list.
MAX
Returns the maximum value in a list of
arguments.
Syntax
MAX(Num1; Num2; ...Num30)
Num1; Num2;...Num30 are numerical
values or ranges.
Example
=MAX(A1:A10) returns the largest value in
the list.
4. SUM
1. Adds all the specified numbers.
2. Adds all the numbers in a range of cells.
Syntax
1. SUM(Number1; Number2; ...)
2. SUM(RANGE)
Number1; Number2; ... are 1 to 30 arguments whose sum is to be calculated.
Example
=SUM(A1;A3;B5) calculates the sum of the three cells.
=SUM(A1:E10) calculates the sum of all cells in the A1 to E10 cell range.
PRODUCT
Multiplies all the numbers given as arguments and returns the product.
Syntax
PRODUCT(Number1; Number2; ... Number30)
Number1; Number2; ... Number30 are 1 to 30 arguments whose product is to be
calculated.
PRODUCT returns Number1 * Number2 * Number_3 * ... Number_N
Example
=PRODUCT(2;3;4) returns 24.
5. ROUND
Returns a number rounded to a certain number of decimal places.
Syntax
ROUND(Number; Count)
Returns Number rounded to Count decimal places. If Count is omitted or zero, the
function rounds to the nearest integer.
Example
=ROUND(2.348;2) returns 2.35
=ROUND(2.348;0) returns 2.
=ROUND(2.5) returns 3.
TRUNC
Truncates a number by removing decimal places.
Syntax
TRUNC(Number; Count)
Returns Number with at most Count decimal places. Excess decimal places are simply
removed, irrespective of sign.
Example
=TRUNC(1.239;2) returns 1.23. The 9 is omitted.
=TRUNC(-1.234999;3) returns -1.234. All the 9s are omitted.
6. POWER
Returns the result of a number raised to a power.
Syntax
POWER(Base; Power) or Base ^ Power or exponent
Returns Base raised to the power of Power.
Example
=POWER(4;3) returns 64, which is 4 to the power of 3.
=4^3 also returns 4 to the power of 3.
SQRT
Returns the positive square root of a number.
Syntax
SQRT(Number)
Returns the positive square root of Number.
Number must be positive.
Example
=SQRT(16) returns 4.
=SQRT(-16) returns an invalid argument error.
7. MOD
Returns the remainder after a number is divided by a divisor.
Syntax
MOD(Dividend; Divisor)
For integer arguments this function returns Dividend modulo Divisor, that is the
remainder when Dividend is divided by Divisor.
Example
=MOD(22;3) returns 1, the remainder when 22 is divided by 3.
QUOTIENT
Returns the integer result of a division operation.
Syntax
QUOTIENT(Numerator; Denominator)
Returns the integer part of Numerator divided by Denominator.
Example
=QUOTIENT(11;3) returns 3. The remainder of 2 is omitted.
9. AND
Returns TRUE if all arguments are TRUE. If one of the elements is FALSE, this
function returns the FALSE value. The arguments are logical expressions themselves
(TRUE, 1<5, 2+3=7, B8<10) that return logical values.
Syntax
AND(LogicalValue1; LogicalValue2 ...LogicalValue30)
LogicalValue1; LogicalValue2 ...LogicalValue30 are conditions to be checked.
Example
=AND(12<13;14>12;7<6) returns FALSE.
OR
Returns TRUE if at least one argument is TRUE. This function returns the value
FALSE, if all the arguments have the logical value FALSE. The arguments are
logical expressions themselves (TRUE, 1<5, 2+3=7, B8<10) that return logical
values.
Syntax
OR(LogicalValue1; LogicalValue2 ...LogicalValue30)
LogicalValue1; LogicalValue2 ...LogicalValue30 are conditions to be checked.
Example
=OR(12<11;13>22;45=45) returns TRUE.
10. NOT
Complements (inverts) a logical value.
Syntax
NOT(LogicalValue)
LogicalValue is any value to be inversed or complemented.
Example
=NOT(A). If A=TRUE then NOT(A) will evaluate FALSE.
=NOT(7<5). Since 7<5=FALSE so NOT(7<5) will evaluate TRUE.
IF
Syntax:
IF(test; value1; value2) where:
is or refers to a logical value or expression that returns a logical value
(TRUE or FALSE).value1 is the value that is returned by the function
if test yields TRUE.value2 is the value that is returned by the function
if test yields FALSE.
If value2 is omitted it is assumed to be FALSE; if value1 is also omitted it is assumed
to be TRUE.
Example:
IF(A1>5; 100; "too small")
returns the number 100 if A1 is greater than 5, and the text "too small" otherwise.