diff --git a/helpcontent2/source/text/scalc/01/04060106.xhp b/helpcontent2/source/text/scalc/01/04060106.xhp index 14153fe1d5..7843cbd727 100644 --- a/helpcontent2/source/text/scalc/01/04060106.xhp +++ b/helpcontent2/source/text/scalc/01/04060106.xhp @@ -1,14 +1,15 @@ + - - + + + Mathematical Functions /text/scalc/01/04060106.xhp - -Sun Microsystems, Inc. -UFI: fixed #i25926#, added missing head2 lines, -also fixed #i24074#, also fixed #i18230# -discovered all internal links were empty, so deleted them with FPEs approval.; dedr: reviewed - mathematical functions Function Wizard; mathematical functions; mathematical functions trigonometric functions -mw added "trigonometric..." -Mathematical Functions +mw added "trigonometric..."Mathematical Functions This category contains the Mathematical functions for Calc. To open the Function Wizard, choose Insert - Function. @@ -64,820 +59,826 @@ discovered all internal links were empty, so deleted them with FPEs approval.; d absolute values values;absolute mw added two entries - -ABS +ABS Returns the absolute value of a number. -Syntax: +Syntax ABS(Number) Number is the number 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.see also SIGN +Example + +=ABS(-56) returns 56. + +=ABS(12) returns 12. + +=ABS(0) returns 0.see also SIGN
COUNTBLANK function counting;empty cells empty cells;counting mw added two entries - -COUNTBLANK +COUNTBLANK Returns the number of empty cells. -Syntax: -COUNTBLANK(range) - Returns the number of empty cells in the cell range range. -Example: -COUNTBLANK (A1:B2) returns 4 if cells A1, A2, B1, and B2 are all empty.see also COUNTIF -
+Syntax +COUNTBLANK(Range) + Returns the number of empty cells in the cell range Range. +Example + +=COUNTBLANK(A1:B2) returns 4 if cells A1, A2, B1, and B2 are all empty.see also COUNTIF
ACOS function - -ACOS +ACOS Returns the inverse trigonometric cosine of a number. -Syntax: +Syntax ACOS(Number) - This function returns the inverse trigonometric cosine of Number, that is the angle (in radians) whose cosine is Number. The angle returned is between 0 and PI. + This function returns the inverse trigonometric cosine of Number, that is the angle (in radians) whose cosine is Number. The angle returned is between 0 and PI. To return the angle in degrees, use the DEGREES function. -Example: -ACOS(-1) returns 3.14159265358979 (PI radians) -DEGREES(ACOS(0.5)) returns 60. The cosine of 60 degrees is 0.5.see also COS, SIN, TAN, COT, -ASIN, ATAN, ATAN2, ACOT -
+Example + +=ACOS(-1) returns 3.14159265358979 (PI radians) + +=DEGREES(ACOS(0.5)) returns 60. The cosine of 60 degrees is 0.5.see also COS, SIN, TAN, COT, +ASIN, ATAN, ATAN2, ACOT
ACOSH function - -ACOSH +ACOSH Returns the inverse hyperbolic cosine of a number. -Syntax: +Syntax ACOSH(Number) - This function returns the inverse hyperbolic cosine of Number, that is the number whose hyperbolic cosine is Number. - -Number must be greater than or equal to 1. -Example: -ACOSH(1) returns 0. -ACOSH(COSH(4)) returns 4.see also ASINH, ATANH, ACOTH, -COSH, SINH, TANH, COTH -
+ This function returns the inverse hyperbolic cosine of Number, that is the number whose hyperbolic cosine is Number. + Number must be greater than or equal to 1. +Example + +=ACOSH(1) returns 0. + +=ACOSH(COSH(4)) returns 4.see also ASINH, ATANH, ACOTH, +COSH, SINH, TANH, COTH
ACOT function - -ACOT +ACOT Returns the inverse cotangent (the arccotangent) of the given number. -Syntax: +Syntax ACOT(Number) - This function returns the inverse trigonometric cotangent of Number, that is the angle (in radians) whose cotangent is Number. The angle returned is between 0 and PI. + This function returns the inverse trigonometric cotangent of Number, that is the angle (in radians) whose cotangent is Number. The angle returned is between 0 and PI. To return the angle in degrees, use the DEGREES function. -Example: -ACOT(1) returns 0.785398163397448 (PI/4 radians). - DEGREES(ACOT(1 )) returns 45. The tangent of 45 degrees is 1. see also COS, SIN, TAN, COT, -ACOS, ASIN, ATAN, ATAN2 -
+Example + +=ACOT(1) returns 0.785398163397448 (PI/4 radians). + +=DEGREES(ACOT(1)) returns 45. The tangent of 45 degrees is 1. see also COS, SIN, TAN, COT, +ACOS, ASIN, ATAN, ATAN2
ACOTH function - -ACOTH +ACOTH Returns the inverse hyperbolic cotangent of the given number. -Syntax: +Syntax ACOTH(Number) - -This function returns the inverse hyperbolic cotangent of Number, that is the number whose hyperbolic cotangent is Number. -An error results if Number is between -1 and 1 inclusive. -Example: -ACOTH(1.1) returns inverse hyperbolic cotangent of 1.1, approximately 1.52226.see also ACOSH, ASINH, ATANH, -COSH, SINH, TANH, COTH -
+ Thisfunction returns the inverse hyperbolic cotangent of Number, that is the number whose hyperbolic cotangent is Number. +An error results if Number is between -1 and 1 inclusive. +Example + +=ACOTH(1.1) returns inverse hyperbolic cotangent of 1.1, approximately 1.52226.see also ACOSH, ASINH, ATANH, +COSH, SINH, TANH, COTH
ASIN function - -ASIN +ASIN Returns the inverse trigonometric sine of a number. -Syntax: -ASIN (Number) - This function returns the inverse trigonometric sine of Number, that is the angle (in radians) whose sine is Number. The angle returned is between -PI/2 and +PI/2. +Syntax +ASIN(Number) + This function returns the inverse trigonometric sine of Number, that is the angle (in radians) whose sine is Number. The angle returned is between -PI/2 and +PI/2. To return the angle in degrees, use the DEGREES function. -Example: -ASIN(0) returns 0. -ASIN(1) returns 1.5707963267949 (PI/2 radians). -DEGREES(ASIN(0.5)) returns 30. The sine of 30 degrees is 0.5.see also COS, SIN, TAN, COT, -ACOS, ATAN, ATAN2, ACOT -
+Example + +=ASIN(0) returns 0. + +=ASIN(1) returns 1.5707963267949 (PI/2 radians). + +=DEGREES(ASIN(0.5)) returns 30. The sine of 30 degrees is 0.5.see also COS, SIN, TAN, COT, +ACOS, ATAN, ATAN2, ACOT
ASINH function - -ASINH +ASINH Returns the inverse hyperbolic sine of a number. -Syntax: +Syntax ASINH(Number) - This function returns the inverse hyperbolic sine of Number, that is the number whose hyperbolic sine is Number. -Example: -ASINH(-90) returns approximately -5.1929877. -ASINH(SINH(4)) returns 4.see also ACOSH, ATANH, ACOTH, -COSH, SINH, TANH, COTH -
+ This function returns the inverse hyperbolic sine of Number, that is the number whose hyperbolic sine is Number. +Example + +=ASINH(-90) returns approximately -5.1929877. + +=ASINH(SINH(4)) returns 4.see also ACOSH, ATANH, ACOTH, +COSH, SINH, TANH, COTH
ATAN function - -ATAN +ATAN Returns the inverse trigonometric tangent of a number. -Syntax: +Syntax ATAN(Number) - This function returns the inverse trigonometric tangent of Number, that is the angle (in radians) whose tangent is Number. The angle returned is between -PI/2 and PI/2. + This function returns the inverse trigonometric tangent of Number, that is the angle (in radians) whose tangent is Number. The angle returned is between -PI/2 and PI/2. To return the angle in degrees, use the DEGREES function. -Example: -ATAN(1) returns 0.785398163397448 (PI/4 radians). -DEGREES(ATAN(1)) returns 45. The tangent of 45 degrees is 1.see also COS, SIN, TAN, COT, -ACOS, ASIN, ATAN2, ACOT -
+Example + +=ATAN(1) returns 0.785398163397448 (PI/4 radians). + +=DEGREES(ATAN(1)) returns 45. The tangent of 45 degrees is 1.see also COS, SIN, TAN, COT, +ACOS, ASIN, ATAN2, ACOT
ATAN2 function - -ATAN2 +ATAN2 Returns the inverse trigonometric tangent of the specified x and y coordinates. -Syntax: -ATAN2(Number_x; number_y) +Syntax +ATAN2(NumberX; NumberY) -Number_x is the value of the x coordinate. +NumberX is the value of the x coordinate. -Number_y is the value of the y coordinate. -ATAN2 returns the inverse trigonometric tangent, that is, the angle (in radians) between the x-axis and a line from point number_x, number_y to the origin. The angle returned is between -PI and PI. +NumberY is the value of the y coordinate. +ATAN2 returns the inverse trigonometric tangent, that is, the angle (in radians) between the x-axis and a line from point NumberX, NumberY to the origin. The angle returned is between -PI and PI. To return the angle in degrees, use the DEGREES function. -Example: -ATAN2(20; 20) returns 0.785398163397448 (PI/4 radians). -DEGREES(ATAN2(12.3; 12.3)) returns 45. The tangent of 45 degrees is 1.see also COS, SIN, TAN, COT, -ACOS, ASIN, ATAN, ACOT -
+Example + +=ATAN2(20;20) returns 0.785398163397448 (PI/4 radians). + +=DEGREES(ATAN2(12.3;12.3)) returns 45. The tangent of 45 degrees is 1.see also COS, SIN, TAN, COT, +ACOS, ASIN, ATAN, ACOT
ATANH function - -ATANH +ATANH Returns the inverse hyperbolic tangent of a number. -Syntax: +Syntax ATANH(Number) - This function returns the inverse hyperbolic tangent of Number, that is the number whose hyperbolic tangent is Number. - -Number must obey the condition -1 < number < 1. -Example: -ATANH(0) returns 0.see also ACOSH, ASINH, ACOTH, -COSH, SINH, TANH, COTH -
+ This function returns the inverse hyperbolic tangent of Number, that is the number whose hyperbolic tangent is Number. + Number must obey the condition -1 < number < 1. +Example + +=ATANH(0) returns 0.see also ACOSH, ASINH, ACOTH, +COSH, SINH, TANH, COTH
COS function - -COS +COS Returns the cosine of the given angle (in radians). -Syntax: +Syntax COS(Number) Returns the (trigonometric) cosine of Number, the angle in radians. To return the cosine of an angle in degrees, use the RADIANS function. -Examples: -COS(PI()/2) returns 0, the cosine of PI/2 radians. -COS(RADIANS(60)) returns 0.5, the cosine of 60 degrees.see also SIN, TAN, COT, -ACOS, ASIN, ATAN, ATAN2, ACOT -
+Examples + +=COS(PI()/2) returns 0, the cosine of PI/2 radians. + +=COS(RADIANS(60)) returns 0.5, the cosine of 60 degrees.see also SIN, TAN, COT, +ACOS, ASIN, ATAN, ATAN2, ACOT
COSH function - -COSH +COSH Returns the hyperbolic cosine of a number. -Syntax: +Syntax COSH(Number) Returns the hyperbolic cosine of Number. -Example: -COSH(0) returns 1, the hyperbolic cosine of 0.see also SINH, TANH, COTH, -ACOSH, ASINH, ATANH, ACOTH, -
+Example + +=COSH(0) returns 1, the hyperbolic cosine of 0.see also SINH, TANH, COTH, +ACOSH, ASINH, ATANH, ACOTH,
COT function - -COT +COT Returns the cotangent of the given angle (in radians). -Syntax: +Syntax COT(Number) Returns the (trigonometric) cotangent of Number, the angle in radians. To return the cotangent of an angle in degrees, use the RADIANS function. The cotangent of an angle is equivalent to 1 divided by the tangent of that angle. Examples: -COT(PI()/4) returns 1, the cotangent of PI/4 radians. -COT(RADIANS(45)) returns 1, the cotangent of 45 degrees.see also COS, SIN, TAN, -ACOS, ASIN, ATAN, ATAN2, ACOT -
+ +=COT(PI()/4) returns 1, the cotangent of PI/4 radians. + +=COT(RADIANS(45)) returns 1, the cotangent of 45 degrees.see also COS, SIN, TAN, +ACOS, ASIN, ATAN, ATAN2, ACOT
COTH function - -COTH +COTH Returns the hyperbolic cotangent of a given number (angle). -Syntax: +Syntax COTH(Number) - Returns the hyperbolic cotangent ofNumber. -Example: -COTH(1) returns the hyperbolic cotangent of 1, approximately 1.3130.see also COSH, SINH, TANH, -ACOSH, ASINH, ATANH, ACOTH, -
+ Returns the hyperbolic cotangent of Number. +Example + +=COTH(1) returns the hyperbolic cotangent of 1, approximately 1.3130.see also COSH, SINH, TANH, +ACOSH, ASINH, ATANH, ACOTH,
DEGREES function converting;radians, into degrees mw added one entry - -DEGREES +DEGREES Converts radians into degrees. -Syntax: +Syntax DEG(Number) Number is the angle in radians to be converted to degrees. -Example: -DEGREES(PI()) returns 180 degrees.see also RADIANS -
+Example + +=DEGREES(PI()) returns 180 degrees.see also RADIANS
EXP function - -EXP +EXP Returns e raised to the power of a number. The constant e has a value of approximately 2.71828182845904. -Syntax: -EXP(number) +Syntax +EXP(Number) Number is the power to which e is to be raised. -Example: -EXP(1) returns 2.71828182845904, the mathematical constant e to Calc's accuracy.see also POWER, LN, -
+Example + +=EXP(1) returns 2.71828182845904, the mathematical constant e to Calc's accuracy.see also POWER, LN,
FACT function factorials;numbers mw added one entry - -FACT +FACT Returns the factorial of a number. -Syntax: -FACT(number) - Returns number!, the factorial of number, calculated as 1*2*3*4* ... * number. -FACT(0) returns 1 by definition. +Syntax +FACT(Number) + Returns Number!, the factorial of Number, calculated as 1*2*3*4* ... * Number. +=FACT(0) returns 1 by definition. The factorial of a negative number returns the "invalid argument" error. -Example: -FACT(3) returns 6. -FACT(0) returns 1.see also FACTDOUBLE, MULTINOMIAL, PRODUCT -
+Example + +=FACT(3) returns 6. + +=FACT(0) returns 1.see also FACTDOUBLE, MULTINOMIAL, PRODUCT
INT function numbers;rounding down to next integer rounding;down to next integer mw added two entries - -INT +INT Rounds a number down to the nearest integer. -Syntax: -INT(number) -Returns number rounded down to the nearest integer. +Syntax +INT(Number) +Returns Number rounded down to the nearest integer. Negative numbers round down to the integer below. -Example: -INT(5.7) returns 5. -INT(-1.3) returns -2.see also TRUNC, ROUND, ROUNDDOWN, ROUNDUP, -CEILING, FLOOR, EVEN, ODD, MROUND, -
+Example + +=INT(5.7) returns 5. + +=INT(-1.3) returns -2.see also TRUNC, ROUND, ROUNDDOWN, ROUNDUP, +CEILING, FLOOR, EVEN, ODD, MROUND,
EVEN function numbers;rounding up/down to even integers rounding;up/down to even integers mw added two entries - -EVEN +EVEN Rounds a positive number up to the next even integer and a negative number down to the next even integer. -Syntax: -EVEN(number) - Returns number rounded to the next even integer up, away from zero. -Examples: -EVEN(2.3) returns 4. -EVEN(2) returns 2. -EVEN(0) returns 0. -EVEN(-0.5) returns -2.see also CEILING, FLOOR, ODD, MROUND, -INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP -
+Syntax +EVEN(Number) + Returns Number rounded to the next even integer up, away from zero. +Examples + +=EVEN(2.3) returns 4. + +=EVEN(2) returns 2. + +=EVEN(0) returns 0. + +=EVEN(-0.5) returns -2.see also CEILING, FLOOR, ODD, MROUND, +INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP
GCD function greatest common divisor mw added one entry - -GCD +GCD Returns the greatest common divisor of two or more integers. The greatest common divisor is the positive largest integer which will divide, without remainder, each of the given integers. -Syntax: -GCD(integer 1 to 30) +Syntax +GCD(Integer1; Integer2; ...; Integer30) -Integer 1 to 30 are up to 30 integers whose greatest common divisor is to be calculated. -Example: -GCD(16;32;24) gives the result 8, because 8 is the largest number that can divide 16, 24 and 32 without a remainder. -GCD(B1:B3) where cells B1, B2, B3 contain 9, 12, 9 gives 3. +Integer1 To 30 are up to 30 integers whose greatest common divisor is to be calculated. +Example + +=GCD(16;32;24) gives the result 8, because 8 is the largest number that can divide 16, 24 and 32 without a remainder. + +=GCD(B1:B3) where cells B1, B2, B3 contain 9, 12, 9 gives 3.
GCD_ADD function - -GCD_ADD +GCD_ADD The result is the greatest common divisor of a list of numbers. Syntax GCD_ADD(Number(s)) -Number(s): a list of up to 30 numbers. +Number(s) is a list of up to 30 numbers. Example -=GCD_ADD(5;15;25) returns 5. + +=GCD_ADD(5;15;25) returns 5.
ISEVEN function even integers mw added one entry - -ISEVENlink from Information cat +ISEVENlink from Information cat Returns TRUE if the value is an even integer, or FALSE if the value is odd. -Syntax: -ISEVEN(value) +Syntax +ISEVEN(Value) Value is the value to be checked. -If value is not an integer any digits after the decimal point are ignored. The sign of value is also ignored. -Example: -ISEVEN(48) returns TRUE -ISEVEN(33) returns FALSE -ISEVEN(0) returns TRUE -ISEVEN(-2.1) returns TRUE -ISEVEN(3.999) returns FALSEsee also ISODD -
+If Value is not an integer any digits after the decimal point are ignored. The sign of Value is also ignored. +Example + +=ISEVEN(48) returns TRUE + +=ISEVEN(33) returns FALSE + +=ISEVEN(0) returns TRUE + +=ISEVEN(-2.1) returns TRUE + +=ISEVEN(3.999) returns FALSEsee also ISODD
ISODD function odd integers mw added one entry - -ISODDlink from Information cat +ISODDlink from Information cat Returns TRUE if the value is odd, or FALSE if the number is even. -Syntax: +Syntax ISODD(value) Value is the value to be checked. -If value is not an integer any digits after the decimal point are ignored. The sign of value is also ignored. -Example: -ISODD(33) returns TRUE -ISODD(48) returns FALSE -ISODD(3.999) returns TRUE -ISODD(-3.1) returns TRUEsee also ISEVEN -
+If Value is not an integer any digits after the decimal point are ignored. The sign of Value is also ignored. +Example + +=ISODD(33) returns TRUE + +=ISODD(48) returns FALSE + +=ISODD(3.999) returns TRUE + +=ISODD(-3.1) returns TRUEsee also ISEVEN
LCM function least common multiples lowest common multiples mw added two entries - -LCM +LCM Returns the least common multiple of one or more integers. -Syntax: -LCM(integer 1 to 30) +Syntax +LCM(Integer1; Integer2; ...; Integer30) -Integer 1 to 30 are up to 30 integers whose lowest common multiple is to be calculated. -Example: -If you enter the numbers 512;1024 and 2000 in the Integer 1;2 and 3 text boxes, 128000 will be returned as the result. +Integer1 to 30 are up to 30 integers whose lowest common multiple is to be calculated. +Example +If you enter the numbers 512;1024 and 2000 in the Integer 1;2 and 3 text boxes, 128000 will be returned as the result.
LCM_ADD function - -LCM_ADD +LCM_ADD The result is the lowest common multiple of a list of numbers. Syntax -LCM_ADD (Number(s)) -Number(s): a list of up to 30 numbers. +LCM_ADD(Number(s)) + +Number(s) is a list of up to 30 numbers. Example -=LCM_ADD(5;15;25) returns 75. + +=LCM_ADD(5;15;25) returns 75.
COMBIN function number of combinations mw added one entry - -COMBINshould be statistical-->add a link there +COMBINshould be statistical-->add a link there Returns the number of combinations of a subset of items. -Syntax: -COMBIN(count_1; count_2) +Syntax +COMBIN(Count1; Count2) -count_1 is the number of items in the set. +Count1 is the number of items in the set. -count_2 is the number of items to choose from the set. +Count2 is the number of items to choose from the set. COMBIN returns the number of ways to choose these items. For example if there are 3 items A, B and C in a set, you can choose 2 items in 3 different ways, namely AB, AC and BC. -COMBIN implements the formula: count_1!/(count_2!*(count_1-count_2)!) -Example: -COMBIN(3;2) returns 3.see also COMBINA -
+COMBIN implements the formula: Count1!/(Count2!*(Count1-Count2)!) +Example + +=COMBIN(3;2) returns 3.see also COMBINA
COMBINA function number of combinations with repetitions mw added one entry - -COMBINAshould be statistical-->add a link there +COMBINAshould be statistical-->add a link there Returns the number of ordered combinations of a subset of items. -Syntax: -COMBINA(count_1; count_2) +Syntax +COMBINA(Count1; Count2) -count_1 is the number of items in the set. +Count1 is the number of items in the set. -count_2 is the number of items to choose from the set. +Count2 is the number of items to choose from the set. COMBINA returns the number of ways to choose these items, where the order of choosing is important. For example if there are 3 items A, B and C in a set, you can choose 2 items in 6 different ways, namely AB, BA, AC, CA, BC and CB. -COMBINA implements the formula: count_1!/(count_1-count_2)! -Example: -COMBINA(3;2) returns 6.see also COMBIN -
+COMBINA implements the formula: Count1!/(Count1-Count2)! +Example + +=COMBINA(3;2) returns 6.see also COMBIN
TRUNC function decimal places;cutting off mw added one entry - -TRUNC +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. +Syntax +TRUNC(Number; Count) +Returns Number with at most Count decimal places. Excess decimal places are simply removed, irrespective of sign. -TRUNC(number; 0) behaves as INT(number) for positive numbers, but effectively rounds towards zero for negative numbers. +TRUNC(Number; 0) behaves as INT(Number) for positive numbers, but effectively rounds towards zero for negative numbers. The visible decimal places of the result are specified in Tools - Options - %PRODUCTNAME Calc - Calculate. -Example: -TRUNC(1.239; 2) returns 1.23. The 9 is lost. -TRUNC(-1.234999; 3) returns -1.234. All the 9s are lost.see also INT, ROUND, ROUNDDOWN, ROUNDUP, -CEILING, FLOOR, EVEN, ODD, MROUND -
+Example + +=TRUNC(1.239;2) returns 1.23. The 9 is lost. + +=TRUNC(-1.234999;3) returns -1.234. All the 9s are lost.see also INT, ROUND, ROUNDDOWN, ROUNDUP, +CEILING, FLOOR, EVEN, ODD, MROUND
LN function natural logarithm mw added one entry - -LN +LN Returns the natural logarithm based on the constant e of a number. The constant e has a value of approximately 2.71828182845904. -Syntax: -LN(number) +Syntax +LN(Number) Number is the value whose natural logarithm is to be calculated. -Example: -LN(3) returns the natural logarithm of 3 (approximately 1.0986). -LN(EXP(321)) returns 321.see also LOG, LOG10, EXP, -
+Example + +=LN(3) returns the natural logarithm of 3 (approximately 1.0986). + +=LN(EXP(321)) returns 321.see also LOG, LOG10, EXP,
LOG function logarithms mw added one entry - -LOG +LOG Returns the logarithm of a number to the specified base. -Syntax: -LOG(number; base) +Syntax +LOG(Number; Base) Number is the value whose logarithm is to be calculated. Base is the base for the logarithm calculation. -Example: -LOG(10; 3) returns the logarithm to base 3 of 10 (approximately 2.0959). -LOG(7^4; 7) returns 4.see also LOG10, LN, POWER, -
+Example + +=LOG(10;3) returns the logarithm to base 3 of 10 (approximately 2.0959). + +=LOG(7^4;7) returns 4.see also LOG10, LN, POWER,
LOG10 function base-10 logarithm mw added one entry - -LOG10 +LOG10 Returns the base-10 logarithm of a number. -Syntax: -LOG10(number) -Returns the logarithm to base 10 of number. -Example: -LOG10(5) returns the base-10 logarithm of 5 (approximately 0.69897).see also LOG, LN, POWER -
+Syntax +LOG10(Number) +Returns the logarithm to base 10 of Number. +Example + +=LOG10(5) returns the base-10 logarithm of 5 (approximately 0.69897).see also LOG, LN, POWER
CEILING function rounding;up to multiples of significance mw added one entry - -CEILING +CEILING Rounds a number up to the nearest multiple of Significance. -Syntax: +Syntax CEILING(Number; Significance; Mode) Number is the number that is to be rounded up. Significance is the number to whose multiple the value is to be rounded up. -Mode is an optional value. If the Mode value is given and not equal to zero, and if Number and Significance are negative, then rounding is done based on the absolute value of Number. This parameter is ignored when exporting to MS Excel as Excel does not know any third parameter. -If both parameters Number and Significance are negative and the Mode value is equal to zero or is not given, the results in $[officename] and Excel will differ after the import has been completed. If you export the spreadsheet to Excel, use Mode=1 to see the same results in Excel as in Calc. -Example: -=CEILING( -11; -2) returns -10 -=CEILING( -11; -2; 0) returns -10 -=CEILING( -11; -2; 1) returns -12see also FLOOR, EVEN, ODD, MROUND, -INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP -
+Mode is an optional value. If the Mode value is given and not equal to zero, and if Number and Significance are negative, then rounding is done based on the absolute value of Number. This parameter is ignored when exporting to MS Excel as Excel does not know any third parameter. +If both parameters Number and Significance are negative and the Mode value is equal to zero or is not given, the results in $[officename] and Excel will differ after the import has been completed. If you export the spreadsheet to Excel, use Mode=1 to see the same results in Excel as in Calc. +Example + +=CEILING(-11;-2) returns -10 + +=CEILING(-11;-2;0) returns -10 + +=CEILING(-11;-2;1) returns -12see also FLOOR, EVEN, ODD, MROUND, +INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP
PI function - -PI +PI Returns 3.14159265358979, the value of the mathematical constant PI to 14 decimal places. -Syntax: +Syntax PI() -Example: -=PI() returns 3.14159265358979. +Example + +=PI() returns 3.14159265358979.
MULTINOMIAL function - -MULTINOMIAL +MULTINOMIAL Returns the factorial of the sum of the arguments divided by the product of the factorials of the arguments. Syntax -MULTINOMIAL (Number(s)) -Number(s): a list of up to 30 numbers. +MULTINOMIAL(Number(s)) + +Number(s) is a list of up to 30 numbers. Example -=MULTINOMIAL(F11:H11) returns 1260, if F11 to H11 contain the values 2, 3 and 4. This corresponds to the formula =(2+3+4)! / (2!*3!*4!) + +=MULTINOMIAL(F11:H11) returns 1260, if F11 to H11 contain the values 2, 3 and 4. This corresponds to the formula =(2+3+4)! / (2!*3!*4!)
POWER function - -POWER +POWER Returns a number raised to a power. -Syntax: -POWER(base; power) or base ^ power -Returns base raised to the power of power. +Syntax +POWER(Base; Power) +Returns Base raised to the power of Power. The same result may be achieved by using the exponentiation operator ^: - -base^power + +Base^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.see also EXP, LOG, SQRT -
+Example + +=POWER(4;3) returns 64, which is 4 to the power of 3. +=4^3 also returns 4 to the power of 3.see also EXP, LOG, SQRT
SERIESSUM function - -SERIESSUM +SERIESSUM Sums the first terms of a power series. SERIESSUM(x;n;m;coefficients) = coefficient_1*x^n + coefficient_2*x^(n+m) + coefficient_3*x^(n+2m) +...+ coefficient_i*x^(n+(i-1)m) Syntax -SERIESSUM(x; n; m; coefficients) -x: the input value for the power series. -n: the initial power -m: the increment to increase n -coefficients: a series of coefficients. For each coefficient the series sum is extended by one section. +SERIESSUM(X; N; M; Coefficients) + +X is the input value for the power series. + +N is the initial power + +M is the increment to increase N + +Coefficients is a series of coefficients. For each coefficient the series sum is extended by one section.
PRODUCT function numbers;multiplying multiplying;numbers mw added two entries - -PRODUCT +PRODUCT Multiplies all the numbers given as arguments and returns the product. -Syntax: -PRODUCT(number 1 to 30) +Syntax +PRODUCT(Number1; Number2; ...; Number30) -Number 1 to number 30 are up to 30 arguments whose product is to be calculated. +Number1 to 30 are up to 30 arguments whose product is to be calculated. PRODUCT returns number1 * number2 * number3 * ... -Example: -PRODUCT(2; 3; 4) returns 24.see also FACT, SUM -
+Example + +=PRODUCT(2;3;4) returns 24.see also FACT, SUM
SUMSQ function square number additions sums;of square numbers mw added two entries - -SUMSQ +SUMSQ If you want to calculate the sum of the squares of numbers (totaling up of the squares of the arguments), enter these into the text fields. -Syntax: -SUMSQ(number 1 to 30) +Syntax +SUMSQ(Number1; Number2; ...; Number30) -Number 1 to number 30 are up to 30 arguments the sum of whose squares is to be calculated. -Example: -If you enter the numbers 2; 3 and 4 in the Number 1; 2 and 3 text boxes, 29 is returned as the result. +Number1 to 30 are up to 30 arguments the sum of whose squares is to be calculated. +Example +If you enter the numbers 2; 3 and 4 in the Number 1; 2 and 3 text boxes, 29 is returned as the result.
MOD function remainders of divisions mw added one entry - -MOD +MOD Returns the remainder when one integer is divided by another. -Syntax: +Syntax MOD(Dividend; Divisor) - For integer arguments this function returns Dividend modulo Divisor, that is the remainder when Dividend is divided by Divisor. -This function is implemented as Dividend - Divisor * INT(Dividend / Divisor) , and this formula gives the result if the arguments are not integer. -Example: -MOD(22; 3) returns 1, the remainder when 22 is divided by 3. -MOD(11.25; 2.5) returns 1.25.see also QUOTIENT, INT, -
+ For integer arguments this function returns Dividend modulo Divisor, that is the remainder when Dividend is divided by Divisor. +This function is implemented as Dividend - Divisor * INT(Dividend/Divisor) , and this formula gives the result if the arguments are not integer. +Example + +=MOD(22;3) returns 1, the remainder when 22 is divided by 3. + +=MOD(11.25;2.5) returns 1.25.see also QUOTIENT, INT,
QUOTIENT function divisions mw added one entry - -QUOTIENT +QUOTIENT Returns the integer part of a division operation. Syntax -QUOTIENT(Numerator;Denominator) -Returns the integer part of numerator divided by denominator. +QUOTIENT(Numerator; Denominator) +Returns the integer part of Numerator divided by Denominator. QUOTIENT is equivalent to INT(numerator/denominator), except that it may report errors with different error codes. Example -=QUOTIENT(11;3) returns 3. The remainder of 2 is lost.see also MOD, INT -
+ +=QUOTIENT(11;3) returns 3. The remainder of 2 is lost.see also MOD, INT
RADIANS function converting;degrees, into radians mw added one entry - -RADIANS +RADIANS Converts degrees to radians. -Syntax: -RADIANS(number) +Syntax +RADIANS(Number) -number is the angle in degrees to be converted to radians. -Example: -RADIANS(90) returns 1.5707963267949, which is PI/2 to Calc's accuracy.see also DEGREES -
+Number is the angle in degrees to be converted to radians. +Example + +=RADIANS(90) returns 1.5707963267949, which is PI/2 to Calc's accuracy.see also DEGREES
ROUND function - -ROUND +ROUND Rounds a number 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. If count is negative, the function rounds to the nearest 10, 100, 1000, etc. +Syntax +ROUND(Number; Count) +Returns Number rounded to Count decimal places. If Count is omitted or zero, the function rounds to the nearest integer. If Ccunt is negative, the function rounds to the nearest 10, 100, 1000, etc. This function rounds to the nearest number. See ROUNDDOWN and ROUNDUP for alternatives. -Example: -ROUND(2.348; 2) returns 2.35 -=ROUND(-32.4834; 3) returns -32.483. Change the cell format to see all decimals. -ROUND(2.348; 0) returns 2. -ROUND(2.5) returns 3. -ROUND(987.65; -2) returns 1000.see also INT, TRUNC, ROUNDDOWN, ROUNDUP, -CEILING, FLOOR, EVEN, ODD, MROUND -
+Example + +=ROUND(2.348;2) returns 2.35 + +=ROUND(-32.4834;3) returns -32.483. Change the cell format to see all decimals. + +=ROUND(2.348;0) returns 2. + +=ROUND(2.5) returns 3. + +=ROUND(987.65;-2) returns 1000.see also INT, TRUNC, ROUNDDOWN, ROUNDUP, +CEILING, FLOOR, EVEN, ODD, MROUND
ROUNDDOWN function - -ROUNDDOWN +ROUNDDOWN Rounds a number down, toward zero, to a certain precision. -Syntax: -ROUNDDOWN(number; count) -Returns number rounded down (towards zero) to count decimal places. If count is omitted or zero, the function rounds down to an integer. If count is negative, the function rounds down to the next 10, 100, 1000, etc. +Syntax +ROUNDDOWN(Number; Count) +Returns Number rounded down (towards zero) to Count decimal places. If Count is omitted or zero, the function rounds down to an integer. If Count is negative, the function rounds down to the next 10, 100, 1000, etc. This function rounds towards zero. See ROUNDUP and ROUND for alternatives. -Example: -ROUNDDOWN(1.234; 2) returns 1.23. -ROUNDDOWN(45.67; 0) returns 45. -ROUNDDOWN(-45.67) returns -45. -ROUNDDOWN(987.65; -2) returns 900.see also INT, TRUNC, ROUND, ROUNDUP, -CEILING, FLOOR, EVEN, ODD, MROUND -
+Example + +=ROUNDDOWN(1.234;2) returns 1.23. + +=ROUNDDOWN(45.67;0) returns 45. + +=ROUNDDOWN(-45.67) returns -45. + +=ROUNDDOWN(987.65;-2) returns 900.see also INT, TRUNC, ROUND, ROUNDUP, +CEILING, FLOOR, EVEN, ODD, MROUND
ROUNDUP function - -ROUNDUP +ROUNDUP Rounds a number up, away from zero, to a certain precision. -Syntax: -ROUNDUP(number; count) -Returns number rounded up (away from zero) to count decimal places. If count is omitted or zero, the function rounds up to an integer. If count is negative, the function rounds up to the next 10, 100, 1000, etc. +Syntax +ROUNDUP(Number; Count) +Returns Number rounded up (away from zero) to Count decimal places. If Count is omitted or zero, the function rounds up to an integer. If Count is negative, the function rounds up to the next 10, 100, 1000, etc. This function rounds away from zero. See ROUNDDOWN and ROUND for alternatives. -Example: -ROUNDUP(1.1111; 2) returns 1.12. -ROUNDUP(1.2345; 1) returns 1.3. -ROUNDUP(45.67; 0) returns 46. -ROUNDUP(-45.67) returns -46. -ROUNDUP(987.65; -2) returns 1000.see also INT, TRUNC, ROUND, ROUNDDOWN, -CEILING, FLOOR, EVEN, ODD, MROUND -
+Example + +=ROUNDUP(1.1111;2) returns 1.12. + +=ROUNDUP(1.2345;1) returns 1.3. + +=ROUNDUP(45.67;0) returns 46. + +=ROUNDUP(-45.67) returns -46. + +=ROUNDUP(987.65;-2) returns 1000.see also INT, TRUNC, ROUND, ROUNDDOWN, +CEILING, FLOOR, EVEN, ODD, MROUND
SIN function - -SIN +SIN Returns the sine of the given angle (in radians). -Syntax: -SIN(number) -Returns the (trigonometric) sine of number, the angle in radians. +Syntax +SIN(Number) +Returns the (trigonometric) sine of Number, the angle in radians. To return the sine of an angle in degrees, use the RADIANS function. -Example: -SIN(PI()/2) returns 1, the sine of PI/2 radians. -SIN(RADIANS(30)) returns 0.5, the sine of 30 degrees.see also COS, TAN, COT, -ACOS, ASIN, ATAN, ATAN2, ACOT -
+Example + +=SIN(PI()/2) returns 1, the sine of PI/2 radians. + +=SIN(RADIANS(30)) returns 0.5, the sine of 30 degrees.see also COS, TAN, COT, +ACOS, ASIN, ATAN, ATAN2, ACOT
SINH function - -SINH +SINH Returns the hyperbolic sine of a number. -Syntax: -SINH(number) -Returns the hyperbolic sine ofnumber. -Example: -SINH(0) returns 0, the hyperbolic sine of 0.see also COSH, TANH, COTH, -ACOSH, ASINH, ATANH, ACOTH -
+Syntax +SINH(Number) +Returns the hyperbolic sine of Number. +Example + +=SINH(0) returns 0, the hyperbolic sine of 0.see also COSH, TANH, COTH, +ACOSH, ASINH, ATANH, ACOTH
SUM function adding;numbers in cell ranges mw added one entry - -SUM +SUM Adds all the numbers in a range of cells. -Syntax: -SUM(number1; number 2; ...; number 30) +Syntax +SUM(Number1; Number2; ...; Number30) -Number 1 to number 30 are up to 30 arguments whose sum is to be calculated. -Example: -If you enter the numbers 2; 3 and 4 in the Number 1; 2 and 3 text boxes, 9 will be returned as the result. -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. +Number 1 to Number 30 are up to 30 arguments whose sum is to be calculated. +Example +If you enter the numbers 2; 3 and 4 in the Number 1; 2 and 3 text boxes, 9 will be returned as the result. + +=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. Conditions linked by AND can be used with the function SUM() in the following manner: -Example assumption: You have entered invoices into a table. Column A contains the date value of the invoice, column B the amounts. You want to find a formula that you can use to return the total of all amounts only for a specific month, e.g. only the amount for the period >=1.1.99 to <1.2.99. The range with the date values covers A1:A40, the range containing the amounts to be totaled is B1:B40. C1 contains the start date, 1.1.99, of the invoices to be included and C2 the date, 1.2.99, that is no longer included. +Example assumption: You have entered invoices into a table. Column A contains the date value of the invoice, column B the amounts. You want to find a formula that you can use to return the total of all amounts only for a specific month, e.g. only the amount for the period >=2008-01-01 to <2008-02-01. The range with the date values covers A1:A40, the range containing the amounts to be totaled is B1:B40. C1 contains the start date, 2008-01-01, of the invoices to be included and C2 the date, 2008-02-01, that is no longer included. Enter the following formula as an array formula: -=SUM((A1:A40>=C1)*(A1:A40<C2)*B1:B40) + +=SUM((A1:A40>=C1)*(A1:A40<C2)*B1:B40) + In order to enter this as an array formula, you must press the Shift Command + Ctrl + Enter key instead of simply pressing the Enter key to close the formula. The formula will then be shown in the Formula bar enclosed in braces. {=SUM((A1:A40>=C1)*(A1:A40<C2)*B1:B40)} -The formula is based on the fact that the result of a comparison is 1, if the criterion is met and 0 if it is not. The individual comparison results will be treated as an array and used in matrix multiplication, and at the end the individual values will be totaled to give the result matrix. +The formula is based on the fact that the result of a comparison is 1 if the criterion is met and 0 if it is not met. The individual comparison results will be treated as an array and used in matrix multiplication, and at the end the individual values will be totaled to give the result matrix.
SUMIF function adding;specified numbers mw added one entry - -SUMIF +SUMIF Adds the cells specified by a given criteria. This function is used to browse a range when you search for a certain value. -Syntax: -SUMIF(range; criteria; sum_range) +Syntax +SUMIF(Range; Criteria; SumRange) Range is the range to which the criteria are to be applied. Criteria is the cell in which the search criterion is shown, or the search criterion itself. If the criteria is written into the formula, it has to be surrounded by double quotes. -Sum_range is the range from which values are summed. If this parameter has not been indicated, the values found in the Range are summed. -Example: -To sum up only negative numbers: SUMIF(A1:A10;"<0") -=SUMIF(A1:A10;">0";B1:10) - sums values from the range B1:B10 only if the corresponding values in the range A1:A10 are >0. +SumRange is the range from which values are summed. If this parameter has not been indicated, the values found in the Range are summed. +Example +To sum up only negative numbers: =SUMIF(A1:A10;"<0") + + +=SUMIF(A1:A10;">0";B1:10) - sums values from the range B1:B10 only if the corresponding values in the range A1:A10 are >0. See COUNTIF() for some more syntax examples that can be used with SUMIF().
TAN function - -TAN +TAN Returns the tangent of the given angle (in radians). -Syntax: -TAN(number) -Returns the (trigonometric) tangent of number, the angle in radians. +Syntax +TAN(Number) +Returns the (trigonometric) tangent of Number, the angle in radians. To return the tangent of an angle in degrees, use the RADIANS function. -Example: -TAN(PI()/4) returns 1, the tangent of PI/4 radians. -TAN(RADIANS(45)) returns 1, the tangent of 45 degrees.see also COS, SIN, COT, -ACOS, ASIN, ATAN, ATAN2, ACOT -
+Example + +=TAN(PI()/4) returns 1, the tangent of PI/4 radians. + +=TAN(RADIANS(45)) returns 1, the tangent of 45 degrees.see also COS, SIN, COT, +ACOS, ASIN, ATAN, ATAN2, ACOT
TANH function - -TANH +TANH Returns the hyperbolic tangent of a number. -Syntax: -TANH(number) -Returns the hyperbolic tangent of number. -Example: -TANH(0) returns 0, the hyperbolic tangent of 0.see also COSH, SINH, COTH, -ACOSH, ASINH, ATANH, ACOTH -
+Syntax +TANH(Number) +Returns the hyperbolic tangent of Number. +Example + +=TANH(0) returns 0, the hyperbolic tangent of 0.see also COSH, SINH, COTH, +ACOSH, ASINH, ATANH, ACOTH
AutoFilter function; subtotals sums;of filtered data filtered data; sums SUBTOTAL function mw made "sums..." a two level entry - -SUBTOTAL +SUBTOTAL Calculates subtotals. If a range already contains subtotals, these are not used for further calculations. Use this function with the AutoFilters to take only the filtered records into account. -Syntax: -SUBTOTAL(function; range) +Syntax +SUBTOTAL(Function; Range) Function is a number that stands for one of the following functions: @@ -978,28 +979,28 @@ ACOSH, ASINH, ATANH, ACOTH
- Range is the range whose cells are included. -Example: +Example You have a table in the cell range A1:B5 containing cities in column A and accompanying figures in column B. You have used an AutoFilter so that you only see rows containing the city Hamburg. You want to see the sum of the figures that are displayed; that is, just the subtotal for the filtered rows. In this case the correct formula would be: -=SUBTOTAL(9; B2:B5) + +=SUBTOTAL(9;B2:B5) +
Euro; converting in CONVERT function - -CONVERTinsert link in financial +CONVERTinsert link in financial Converts old European national currency to and from Euros. - -Syntax: + +Syntax -CONVERT(value;"currency1"; "currency2") +CONVERT(Value; "Currency1"; "Currency2") -value is the amount of the currency to be converted. +Value is the amount of the currency to be converted. -currency1 and currency2 are the currency units to convert from and to respectively. These must be text, the official abbreviation for the currency (for example, "EUR"), as shown in the table below. The rates (shown per Euro) were set by the European Commission. +Currency1 and Currency2 are the currency units to convert from and to respectively. These must be text, the official abbreviation for the currency (for example, "EUR"), as shown in the table below. The rates (shown per Euro) were set by the European Commission. @@ -1184,74 +1185,77 @@ ACOSH, ASINH, ATANH, ACOTH
- -Either currency1 or currency2 must be specified as Euros. - -Examples: +Either Currency1 or Currency2 must be specified as Euros. + +Examples -=CONVERT(100;"ATS";"EUR") converts 100 Austrian Schillings into Euros. -=CONVERT(100;"EUR";"DEM") converts 100 Euros into German Marks. + +=CONVERT(100;"ATS";"EUR") converts 100 Austrian Schillings into Euros. + +=CONVERT(100;"EUR";"DEM") converts 100 Euros into German Marks.
ODD function rounding;up/down to nearest odd integer mw added one entry - -ODD +ODD Rounds a positive number up to the nearest odd integer and a negative number down to the nearest odd integer. -Syntax: -ODD(number) - Returns number rounded to the next odd integer up, away from zero. -Example: -ODD(1.2) returns 3. -ODD(1) returns 1. -ODD(0) returns 1. -ODD(-3.1) returns -5.see also CEILING, FLOOR, EVEN, MROUND, -INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP -
+Syntax +ODD(Number) + Returns Number rounded to the next odd integer up, away from zero. +Example + +=ODD(1.2) returns 3. + +=ODD(1) returns 1. + +=ODD(0) returns 1. + +=ODD(-3.1) returns -5.see also CEILING, FLOOR, EVEN, MROUND, +INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP
FLOOR function rounding;down to nearest multiple of significance mw added one entry - -FLOOR +FLOOR Rounds a number down to the nearest multiple of Significance. -Syntax: +Syntax FLOOR(Number; Significance; Mode) Number is the number that is to be rounded down. Significance is the value to whose multiple the number is to be rounded down. -Mode is an optional value. If the Mode value is given and not equal to zero, and if Number and Significance are negative, then rounding is done based on the absolute value of the number. This parameter is ignored when exporting to MS Excel as Excel does not know any third parameter. -If both parameters Number and Significance are negative, and if the Mode value is equal to zero or is not specified, then the results in $[officename] Calc and Excel will differ after exporting. If you export the spreadsheet to Excel, use Mode=1 to see the same results in Excel as in Calc. -Example: -=FLOOR( -11; -2) returns -12 -=FLOOR( -11; -2; 0) returns -12 -=FLOOR( -11; -2; 1) returns -10see also CEILING, EVEN, ODD, MROUND, -INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP, -
+Mode is an optional value. If the Mode value is given and not equal to zero, and if Number and Significance are negative, then rounding is done based on the absolute value of the number. This parameter is ignored when exporting to MS Excel as Excel does not know any third parameter. +If both parameters Number and Significance are negative, and if the Mode value is equal to zero or is not specified, then the results in $[officename] Calc and Excel will differ after exporting. If you export the spreadsheet to Excel, use Mode=1 to see the same results in Excel as in Calc. +Example + +=FLOOR( -11;-2) returns -12 + +=FLOOR( -11;-2;0) returns -12 + +=FLOOR( -11;-2;1) returns -10see also CEILING, EVEN, ODD, MROUND, +INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP,
SIGN function algebraic signs mw added one entry - -SIGN +SIGN Returns the sign of a number. Returns 1 if the number is positive, -1 if negative and 0 if zero. -Syntax: -SIGN(number) +Syntax +SIGN(Number) Number is the number whose sign is to be determined. -Example: -SIGN(3.4) returns 1. -SIGN(-4.5) returns -1.see also ABS -
+Example + +=SIGN(3.4) returns 1. + +=SIGN(-4.5) returns -1.see also ABS
MROUND function nearest multiple mw added one entry - -MROUND +MROUND Returns a number rounded to the nearest multiple of another number. Syntax @@ -1259,95 +1263,96 @@ INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP, Returns Number rounded to the nearest multiple of Multiple. An alternative implementation would be Multiple * ROUND(Number/Multiple). Example -MROUND(15.5; 3) returns 15, as 15.5 is closer to 15 ( = 3*5) than to 18 ( = 3*6). -MROUND(1.4; 0.5) returns 1.5 ( = 0.5*3).see also CEILING, FLOOR, EVEN, ODD, -INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP -
+ +=MROUND(15.5;3) returns 15, as 15.5 is closer to 15 (= 3*5) than to 18 (= 3*6). + +=MROUND(1.4;0.5) returns 1.5 (= 0.5*3).see also CEILING, FLOOR, EVEN, ODD, +INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP
SQRT function square roots;positive numbers mw added one entry - -SQRT +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.see also SQRTPI, POWER -
+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.see also SQRTPI, POWER
SQRTPI function square roots;products of Pi mw added one entry - -SQRTPI +SQRTPI Returns the square root of (PI times a number). Syntax SQRTPI(Number) -Returns the positive square root of (PI multiplied by number). -This is equivalent to SQRT(PI()*number). +Returns the positive square root of (PI multiplied by Number). +This is equivalent to SQRT(PI()*Number). Example -SQRTPI(2) returns the squareroot of (2PI), approximately 2.506628.see also SQRT -
+ +=SQRTPI(2) returns the squareroot of (2PI), approximately 2.506628.see also SQRT
random numbers; between limits RANDBETWEEN function mw changed "random numbers;" - -RANDBETWEEN +RANDBETWEEN Returns an integer random number in a specified range. Syntax RANDBETWEEN(Bottom; Top) -Returns an integer random number between integers bottom and top (both inclusive). +Returns an integer random number between integers Bottom and Top (both inclusive). This function produces a new random number each time Calc recalculates. To force Calc to recalculate manually press Shift+Ctrl+F9. -To generate random numbers which never recalculate, copy cells containing this function, and use Edit - Paste Special (with Paste All and Formulas not marked and Numbers marked). +To generate random numbers which never recalculate, copy cells containing this function, and use Edit - Paste Special (with Paste All and Formulas not marked and Numbers marked). Example -=RANDBETWEEN(20;30) returns an integer of between 20 and 30.see also RAND -
+ +=RANDBETWEEN(20;30) returns an integer of between 20 and 30.see also RAND
RAND function random numbers;between 0 and 1 mw added one entry - -RAND +RAND Returns a random number between 0 and 1.The value of 0 can be returned, the value of 1 not.this is really true after issue 53642 will be fixed -Syntax: +Syntax RAND() This function produces a new random number each time Calc recalculates. To force Calc to recalculate manually press Shift+Ctrl+F9. -To generate random numbers which never recalculate, copy cells each containing =RAND(), and use Edit - Paste Special (with Paste All and Formulas not marked and Numbers marked). -Example: -RAND() returns a random number between 0 and 1.see also RANDBETWEEN - -
+To generate random numbers which never recalculate, copy cells each containing =RAND(), and use Edit - Paste Special (with Paste All and Formulas not marked and Numbers marked). +Example + +=RAND() returns a random number between 0 and 1.see also RANDBETWEEN +
COUNTIF function counting;specified cells mw added one entry - -COUNTIF +COUNTIF Returns the number of cells that meet with certain criteria within a cell range. -Syntax: -COUNTIF(range; criteria) +Syntax +COUNTIF(Range; Criteria) Range is the range to which the criteria are to be applied. -Criteria indicates the criteria in the form of a number, an expression or a character string. These criteria determine which cells are counted. You may also enter a search text in the form of a regular expression, e.g. "b.*" for all words that begin with b. You may also indicate a cell range that contains the search criterion. If you search for literal text, enclose the text in double quotes. -Example: -A1:A10 is a cell range containing the numbers 2000 to 2009. Cell B1 contains the number 2006. In cell B2, you enter a formula: -=COUNTIF(A1:A10;2006) - this returns 1 -=COUNTIF(A1:A10;B1) - this returns 1 -=COUNTIF(A1:A10;">=2006") - this returns 3 -=COUNTIF(A1:A10;"<"&B1) - when B1 contains 2006, this returns 6 -=COUNTIF(A1:A10;C2) where cell C2 contains the text ">2006" (without the double quotes) - counts the number of cells in the range A1:A10 which are > 2006 -To count only negative numbers: COUNTIF(A1:A10;"<0") +Criteria indicates the criteria in the form of a number, an expression or a character string. These criteria determine which cells are counted. You may also enter a search text in the form of a regular expression, e.g. b.* for all words that begin with b. You may also indicate a cell range that contains the search criterion. If you search for literal text, enclose the text in double quotes. +Example +A1:A10 is a cell range containing the numbers 2000 to 2009. Cell B1 contains the number 2006. In cell B2, you enter a formula: + +=COUNTIF(A1:A10;2006) - this returns 1 + +=COUNTIF(A1:A10;B1) - this returns 1 + +=COUNTIF(A1:A10;">=2006") - this returns 3 + +=COUNTIF(A1:A10;"<"&B1) - when B1 contains 2006, this returns 6 + +=COUNTIF(A1:A10;C2) where cell C2 contains the text >2006 counts the number of cells in the range A1:A10 which are >2006 +To count only negative numbers: =COUNTIF(A1:A10;"<0") +
-
- +