Matematiske funksjoner

This category contains the Mathematical functions for Calc. To open the Function Wizard, choose Insert - Function.

Aggreger

This function returns an aggregate result of the calculations in the range. You can use different aggregate functions listed below. The Aggregate function enables you to omit hidden rows, errors, SUBTOTAL and other AGGREGATE function results in the calculation.

RAWSUBTRACT

Subtracts a set of numbers and gives the result without eliminating small roundoff errors.

FARGE

Return a numeric value calculated by a combination of three colors (red, green and blue) and the alpha channel, in the RGBA color system. The result depends on the color system used by your computer.

SUMMER.HVIS.SATT

Returns the sum of the values of cells in a range that meets multiple criteria in multiple ranges.

ABS

Gir absoluttverdien av et tall.

Syntax

ABS(Tall)

Number is the number whose absolute value is to be calculated. The absolute value of a number is its value without the +/- sign.

Example

=N(123) gir 123

=N(123) gir 123

=N(USANN) gir 0

AVRUND (ROUND pÄ engelsk)

Avrunder til et tall med et bestemt antall desimaler.

Syntax

AVRUND(Tall; Antall)

Gir Tall rundet opp (vekk fra null) med Antall desimaler. Hvis Antall utelates eller er null, runder funksjonen opp til et heltall. Hvis Antall er negativ, runder funksjonen opp til neste 10, 100, 1000 etc.

Denne funksjonen avrunder til det nĂŠrmeste tallet. Se AVRUND.NED og AVRUND.OPP for alternativer.

Example

=N(123) gir 123

=ROUND(-32.4834;3) returns -32.483. Change the cell format to see all decimals.

=N(123) gir 123

=N(123) gir 123

=N(123) gir 123

AVRUND.GJELDENDE.MULTIPLUM.NED (FLOOR pÄ engelsk)

Runder et tall ned til nĂŠrmeste multiplum av Trinn.

Syntax

AVRUND.GJELDENDE.MULTIPLUM.NED(Tall; Trinn; Modus)

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 Number, i.e. negative numbers are rounded towards zero. If the Mode value is equal to zero or is not given, negative numbers are rounded away from zero.

Advarselsikon

If the spreadsheet is exported to Microsoft Excel, the FLOOR function is exported as the equivalent FLOOR.MATH function that exists since Excel 2013. If you plan to use the spreadsheet with earlier Excel versions, use either FLOOR.PRECISE that exists since Excel 2010, or FLOOR.XCL that is exported as the FLOOR function compatible with all Excel versions. Note that FLOOR.XCL always rounds towards zero.


Example

=N(123) gir 123

=N(123) gir 123

=N(123) gir 123

AVRUND.GJELDENDE.MULTIPLUM.OPP (CEILING pÄ engelsk)

Runder et tall opp til det nĂŠrmeste multiplum av en angitt nĂžyaktighet.

Syntax

AVRUND.GJELDENDE.MULTIPLUM.OPP(Tall; Trinn; Tilstand)

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, i.e. negative numbers are rounded away from zero. If the Mode value is equal to zero or is not given, negative numbers are rounded towards zero.

Advarselsikon

If the spreadsheet is exported to Microsoft Excel, the CEILING function is exported as the equivalent CEILING.MATH function that exists since Excel 2013. If you plan to use the spreadsheet with earlier Excel versions, use either CEILING.PRECISE that exists since Excel 2010, or CEILING.XCL that is exported as the CEILING function compatible with all Excel versions. Note that CEILING.XCL always rounds away from zero.


Example

CELLE("COL"; D2) gir 4.

CELLE("COL"; D2) gir 4.

=N(123) gir 123

AVRUND.NED (ROUNDDOWN pÄ engelsk)

Avrunder et tall nedover mot null med en angitt presisjon.

Syntax

AVRUND.NED(Tall; Antall)

Gir Tall nedrundet (mot null) med Antall desimaler. Hvis Antall utelates eller er null, runder funksjonen ned til et heltall. Hvis Antall er negativ, runder funksjonen ned til neste 10, 100, 1000 etc.

Denne funksjonen runder mot null. Se AVRUND.OP og AVRUND for alternativer.

Example

=N(123) gir 123

=N(123) gir 123

=N(123) gir 123

=N(123) gir 123

AVRUND.OPP (ROUNDUP pÄ engelsk)

Runder et tall opp, vekk fra null, ut fra en gitt presisjon.

Syntax

AVRUND.OPP(Tall; Antall)

Gir Tall rundet opp (vekk fra null) med Antall desimaler. Hvis Antall utelates eller er null, runder funksjonen opp til et heltall. Hvis Antall er negativ, runder funksjonen opp til neste 10, 100, 1000 etc.

Denne funksjonen runder vekk fra null. Se AVRUND.NED og AVRUND for alternativer.

Example

=N(123) gir 123

=N(123) gir 123

=N(123) gir 123

=N(123) gir 123

=N(123) gir 123

AVRUND.TIL.ODDETALL (ODD pÄ engelsk)

Runder et positivt tall opp til nĂŠrmeste hele oddetall og et negativt tall ned til nĂŠrmeste hele oddetall.

Syntax

AVRUND.TIL.ODDETALL(Tall)

Gir Tall rundet opp til neste hele oddetall, vekk fra null.

Example

=N(123) gir 123

=ERODDE_ADD(5) gir 1.

=ERODDE_ADD(5) gir 1.

=ERODDE_ADD(5) gir 1.

AVRUND.TIL.PARTALL (EVEN pÄ engelsk)

Runder et positivt tall opp til nĂŠrmeste hele og et negativt tall ned til nĂŠrmeste partall.

Syntax

AVRUND.TIL.PARTALL(Tall)

Gir Tall rundet opp til det nĂŠrmeste partall, vekk fra null.

Example

=N(123) gir 123

=N(123) gir 123

ERPARTALL_ADD(5) gir 0.

ERPARTALL_ADD(5) gir 0.

CEILING.MATH

Rounds a number up to the nearest multiple of Significance.

Syntax

CEILING.MATH(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, i.e. negative numbers are rounded away from zero. If the Mode value is equal to zero or is not given, negative numbers are rounded towards zero.

Advarselsikon

This function exists for interoperability with Microsoft Excel 2013 or newer.


Example

=CEILING.MATH(-10;-3) returns -9

=CEILING.MATH(-10;-3;0) returns -9

=CEILING.MATH(-10;-3;1) returns -12

CEILING.PRECISE

Rounds a number up to the nearest multiple of Significance, regardless of sign of Significance

Syntax

CEILING.PRECISE(Number; Significance)

Number (required) is the number that is to be rounded up.

Significance (optional) is the number to whose multiple the value is to be rounded up.

Example

CELLE("COL"; D2) gir 4.

CEILING.XCL

Rounds a number away from zero to the nearest multiple of Significance.

Syntax

CEILING.XCL(Number; Significance)

Number is the number that is to be rounded.

Significance is the number to whose multiple the value is to be rounded.

Advarselsikon

This function exists for interoperability with Microsoft Excel 2007 or older versions.


Example

=CEILING.XCL(1;3) returns 3

=CEILING.XCL(7;4) returns 8

=CEILING.XCL(-10;-3) returns -12

CONVERT_OOO

Converts a value from one unit of measurement to another unit of measurement. The conversion factors are given in a list in the configuration.

At one time the list of conversion factors included the legacy European currencies and the Euro (see examples below). We suggest using the new function EUROCONVERT for converting these currencies.

Syntax

CONVERT_OOO(value;"text";"text")

Example

=CONVERT_OOO(100;"ATS";"EUR") returns the Euro value of 100 Austrian Schillings.

=CONVERT_OOO(100;"EUR";"DEM") converts 100 Euros into German Marks.

COS

Gir cosinus av den gitte vinkelen (i radianer).

Syntax

COS(Tall)

Gir (den trigonometriske) sinusen av Tall, vinkelen i radianer.

For Ă„ returnere sinusen av en vinkel i grader kan du bruke funksjonen RADIANER.

Example

=COS(PI()*2) returns 1, the cosine of 2*PI radians.

=COS(RADIANS(60)) returns 0.5, the cosine of 60 degrees.

COSH

Gir hyperbolsk cosinus til et tall.

Syntax

COSH(Tall)

Gir den hyperbolske tangens av Tall.

Example

=COSH(0) returns 1, the hyperbolic cosine of 0.

COT

Gir cotangens til den gitte vinkelen (i radianer).

Syntax

COT(Tall)

Gir (den trigonometriske) cotangens av Tall, vinkelen i radianer.

For Ă„ returnere cotangens av en vinkel i grader, bruk RADIANER-funksjonen.

Cotangens av en vinkel svarer til 1 dividert med tangens til vinkelen.

Eksempler:

=COT(PI()/4) returns 1, the cotangent of PI/4 radians.

=COT(RADIANS(45)) returns 1, the cotangent of 45 degrees.

COTH

Gir hyperbolsk cotangens til et gitt tall (vinkel).

Syntax

COTH(Tall)

Gir den hyperbolske tangens av Tall.

Example

=COTH(1) returns the hyperbolic cotangent of 1, approximately 1.3130.

CSC

Returns the cosecant of the given angle (in radians). The cosecant of an angle is equivalent to 1 divided by the sine of that angle

Syntax

COSH(Tall)

Gir (den trigonometriske) sinusen av Tall, vinkelen i radianer.

For Ă„ returnere sinusen av en vinkel i grader kan du bruke funksjonen RADIANER.

Example

=CSC(PI()/4) returns approximately 1.4142135624, the inverse of the sine of PI/4 radians.

=CSC(RADIANS(30)) returns 2, the cosecant of 30 degrees.

CSCH

Gir hyperbolsk cosinus til et tall.

Syntax

COSH(Tall)

Gir den hyperbolske tangens av Tall.

Example

=CSCH(1) returns approximately 0.8509181282, the hyperbolic cosecant of 1.

DELSUM

Regner ut delsummer. Hvis et dataomrÄde allerede inneholder delsummer, vil ikke disse bli brukt for videre beregninger. Hvis du bruker denne funksjonen sammen med automatiske filtre vil bare de filtrerte postene bli tatt med.

Syntax

DELSUM(Funksjon; OmrÄde)

Function is a number that stands for one of the following functions:

Funksjonsindeks

(includes hidden values)

Function index

(ignores hidden values)

Funksjon

1

101

GJENNOMSNITT (AVERAGE pÄ engelsk)

2

102

ANTALL (COUNT pÄ engelsk)

3

103

ANTALLA (COUNTA pÄ engelsk)

4

104

MAKS (MAX pÄ engelsk)

5

105

MIN

6

106

PRODUKT (PRODUCT pÄ engelsk)

7

107

STDAV (STDEV pÄ engelsk)

8

108

STDAVP (STDEVP pÄ engelsk)

9

109

SUMMER

10

110

VARIANS

11

111

VARIANSP (VARP pÄ engelsk)


Use numbers 1-11 to include manually hidden rows or 101-111 to exclude them; filtered-out cells are always excluded.

Range is the range whose cells are included.

Example

You have a table in the cell range A1:B6 containing a bill of material for 10 students. Row 2 (Pen) is manually hidden. 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:

A

B

1

ITEM

QUANTITY

2

Pen

10

3

Pencil

10

4

Notebook

10

5

Rubber

10

6

Sharpener

10


=SUBTOTAL(9;B2:B6) returns 50.

=SUBTOTAL(109;B2:B6) returns 40.

EUROKONVERTER (CONVERT pÄ engelsk)

GjĂžr om eldre europeiske, nasjonale valutaer til og fra Euro.

Syntax

EUROCONVERT(Value; "From_currency"; "To_currency", full_precision, triangulation_precision)

Value is the amount of the currency to be converted.

From_currency and To_currency are the currency units to convert from and to respectively. These must be text, the official abbreviation for the currency (for example, "EUR"). The rates (shown per Euro) were set by the European Commission.

Full_precision is optional. If omitted or False, the result is rounded according to the decimals of the To currency. If Full_precision is True, the result is not rounded.

Triangulation_precision is optional. If Triangulation_precision is given and >=3, the intermediate result of a triangular conversion (currency1,EUR,currency2) is rounded to that precision. If Triangulation_precision is omitted, the intermediate result is not rounded. Also if To currency is "EUR", Triangulation_precision is used as if triangulation was needed and conversion from EUR to EUR was applied.

Eksempler:

=EUROCONVERT(100;"ATS";"EUR") converts 100 Austrian Schillings into Euros.

=EUROCONVERT(100;"EUR";"DEM") converts 100 Euros into German Marks.

EXP

Gir den naturlige logaritmen til et tall basert pÄ konstanten e. Verdien av e er ca. 2,71828182845904.

Syntax

EXP(Tall)

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.

FAKULTET (FACT pÄ engelsk)

Returns the factorial of a number.

Syntax

FAKULTET(Tall)

Returns Number!, the factorial of Number, calculated as 1*2*3*4* ... * Number.

=FAKULTET(0) gir per definisjon 1.

The factorial of a negative number returns the "invalid argument" error.

Example

=N(SANN) gir 1

=N(SANN) gir 1

FLOOR.PRECISE

Rounds a number down to the nearest multiple of Significance, regardless of sign of Significance

Syntax

FLOOR.PRECISE(Number; Significance)

Number is the number that is to be rounded down.

Significance is the value to whose multiple the number is to be rounded down.

Example

=N(123) gir 123

FORKORT (TRUNC pÄ engelsk)

Forkorter et tall ved Ă„ fjerne desimaler.

Syntax

FORKORT(Tall; Antall)

Gir Tall med hĂžyst Antall desimal. Ekstra desimaler vil simpelthen fjernes uten hensyn til fortegn.

TRUNC(Number; 0) behaves as INT(Number) for positive numbers, but effectively rounds towards zero for negative numbers.

Advarselsikon

The visible decimal places of the result are specified in - LibreOffice 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.

FORTEGN (SIGN pÄ engelsk)

Gir fortegnet av et tall. Gir 1 hvis tallet er positivt, -1 hvis det er negativt og 0 hvis det er null.

Syntax

FORTEGN(Tall)

Number is the number whose sign is to be determined.

Example

=N(SANN) gir 1

=N(SANN) gir 1

GCD_EXCEL2003

The result is the greatest common divisor of a list of numbers.

Merknadsikon

Funksjonene hvis navn slutter med _ADD eller _EXCEL2003 returnerer de samme resultatene som de tilsvarende Microsoft Excel 2003-funksjonene uten suffikset. Bruk funksjonene uten suffiks for Ä fÄ resultater basert pÄ internasjonale standarder.


Syntax

GCD_EXCEL2003(Number(s))

Number(s) is a list of up to 30 numbers.

Example

=GCD_EXCEL2003(5;15;25) returns 5.

GRADER (DEGREES pÄ engelsk)

GjĂžr om radianer til grader.

Syntax

GRADER(Tall)

Number is the angle in radians to be converted to degrees.

Example

=DEGREES(PI()) returns 180 degrees.

HELTALL (INT pÄ engelsk)

Runder av et tall ned til nĂŠrmeste heltall.

Syntax

HELTALL(Tall)

Gir Tall rundet ned til nĂŠrmeste heltall.

Negative tall rundes ned til heltallet under.

Example

=N(SANN) gir 1

=N(123) gir 123

INVERS.COS (ACOS pÄ engelsk)

Gir invers hyperbolsk cosinus til et tall.

Syntax

INVERS.COS(Tall)

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.

For Ă„ returnere vinkelen i grader, bruk bruk GRADER-funksjonen.

Example

=ACOS(-1) returns 3.14159265358979 (PI radians)

=DEGREES(ACOS(0.5)) returns 60. The cosine of 60 degrees is 0.5.

INVERS.COSH (ACOSH pÄ engelsk)

Gir invers hyperbolsk cosinus til et tall.

Syntax

INVERS.COSH(Tall)

This function returns the inverse hyperbolic cosine of Number, that is the number whose hyperbolic cosine is Number.

Tall mÄ vÊre stÞrre enn eller lik 1.

Example

=N(USANN) gir 0

CELLE("COL"; D2) gir 4.

INVERS.COT (ACOT pÄ engelsk)

Gir invers hyperbolsk cotangens til et tall.

Syntax

INVERS.COT(Tall)

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.

For Ă„ returnere vinkelen i grader, bruk bruk GRADER-funksjonen.

Example

=ACOT(1) returns 0.785398163397448 (PI/4 radians).

=DEGREES(ACOT(1)) returns 45. The tangent of 45 degrees is 1.

INVERS.COTH (ACOTH pÄ engelsk)

Gir invers hyperbolsk cotangens til et tall.

Syntax

INVERS.COTH(Tall)

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.

INVERS.SIN (ASIN pÄ engelsk)

Gir invers hyperbolsk sinus til et tall.

Syntax

INVERS.SIN (Tall)

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.

For Ă„ returnere vinkelen i grader, bruk bruk GRADER-funksjonen.

Example

ERPARTALL_ADD(5) gir 0.

=ASIN(1) returns 1.5707963267949 (PI/2 radians).

=DEGREES(ASIN(0.5)) returns 30. The sine of 30 degrees is 0.5.

INVERS.SINH (ASINH pÄ engelsk)

Gir invers hyperbolsk sinus til et tall.

Syntax

INVERS.SINH(Tall)

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.

=ERODDE_ADD(5) gir 1.

INVERS.TAN (ATAN pÄ engelsk)

Gir invers hyperbolsk tangens av et tall.

Syntax

INVERS.TAN(Tall)

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.

For Ă„ returnere vinkelen i grader, bruk bruk GRADER-funksjonen.

Example

=ATAN(1) returns 0.785398163397448 (PI/4 radians).

=DEGREES(ATAN(1)) returns 45. The tangent of 45 degrees is 1.

INVERS.TAN (ATAN pÄ engelsk)

Gir invers hyperbolsk tangens av et tall.

Syntax

INVERS.TANH(Tall)

This function returns the inverse hyperbolic tangent of Number, that is the number whose hyperbolic tangent is Number.

Tall mÄ oppfylle betingelsen -1 < Tall < 1.

Example

=N(USANN) gir 0

INVERS.TAN2

Returns the inverse trigonometric tangent of the specified x and y coordinates.

Syntax

INVERS.TAN2(TallX; TallY)

Tekst er teksten som tilsvarer et romertall.

Tekst er teksten som tilsvarer et romertall.

INVERS.TAN2 gir den inverse trigonometriske tangens, det vil si vinkelen (i radianer) mellom x-aksen og en linje fra punktet TallX, TallY til origo. Den returnerte vinkelen er mellom -pi og pi.

For Ă„ returnere vinkelen i grader, bruk bruk GRADER-funksjonen.

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.

ISO.CEILING

Rounds a number up to the nearest multiple of Significance, regardless of sign of Significance

Syntax

ISO.CEILING(Number; Significance)

Number (required) is the number that is to be rounded up.

Significance (optional) is the number to whose multiple the value is to be rounded up.

Example

CELLE("COL"; D2) gir 4.

KOMBINASJON

Gir antall kombinasjoner for elementer uten gjentagelse.

Syntax

KOMBINASJON(Antall_1; Antall_2)

Count1 is the number of items in the set.

Count2 is the number of items to choose from the set.

KOMBINASJON gir antall sorterte mÄter Ä velge disse elementene. Hvis det er for eksempel 3 elementer, A, B og C i en mengde, kan du velge 2 elementer pÄ 3 forskjellige mÄter, nemlig AB, AC og BC.

KOMBINASJON implementerer formelen: Antall1!/(Antall2!*(Antall1-Antall2)!)

Example

CELLE("COL"; D2) gir 4.

KOMBINASJONA

Gir antall kombinasjoner for en delmengde av elementer deriblant gjentagelser.

Syntax

KOMBINASJONA(Antall1; Antall2)

Count1 is the number of items in the set.

Count2 is the number of items to choose from the set.

COMBINA returns the number of unique ways to choose these items, where the order of choosing is irrelevant, and repetition of items is allowed. For example if there are 3 items A, B and C in a set, you can choose 2 items in 6 different ways, namely AA, AB, AC, BB, BC and CC.

KOMBINASJONA implementerer formelen: (Antall1+Antall2-1)! / (Antall2! (Antall1-1)!)

Example

CELLE("COL"; D2) gir 4.

KVOTIENT (QUOTIENT pÄ engelsk)

Gir heltallsresultatet av en divisjon.

Syntax

KVOTIENT(Teller; Nevner)

Gir heltallsdelen av Teller dividert med Nevner.

QUOTIENT is equivalent to INT(numerator/denominator) for same-sign numerator and denominator, except that it may report errors with different error codes. More generally, it is equivalent to INT(numerator/denominator/SIGN(numerator/denominator))*SIGN(numerator/denominator).

Example

=QUOTIENT(11;3) returns 3. The remainder of 2 is lost.

LCM_EXCEL2003

The result is the lowest common multiple of a list of numbers.

Merknadsikon

Funksjonene hvis navn slutter med _ADD eller _EXCEL2003 returnerer de samme resultatene som de tilsvarende Microsoft Excel 2003-funksjonene uten suffikset. Bruk funksjonene uten suffiks for Ä fÄ resultater basert pÄ internasjonale standarder.


Syntax

LCM_EXCEL2003(Number(s))

Number(s) is a list of up to 30 numbers.

Example

=LCM_EXCEL2003(5;15;25) returns 75.

LN

Gir den naturlige logaritmen til et tall basert pÄ konstanten e. Verdien av e er ca. 2,71828182845904.

Syntax

LN(Tall)

Number is the value whose natural logarithm is to be calculated.

Example

=LN(3) returns the natural logarithm of 3 (approximately 1.0986).

=N(123) gir 123

LOG

Gir logaritmen av et tall med det angitte grunntallet.

Syntax

LOG(Tall; Grunntall)

Number is the value whose logarithm is to be calculated.

Base (optional) is the base for the logarithm calculation. If omitted, Base 10 is assumed.

Example

=LOG(10;3) returns the logarithm to base 3 of 10 (approximately 2.0959).

=N(SANN) gir 1

LOG10

Gir logaritmen (grunntall 10) til et tall.

Syntax

LOG10(Tall)

Gir titallslogaritmen av Tall.

Example

=LOG10(5) returns the base-10 logarithm of 5 (approximately 0.69897).

MFM (LCM pÄ engelsk)

Gir den minste felles faktoren til ett eller flere heltall.

Syntax

MFM(Heltall1; Heltall2; ...; Heltall30)

Integer1 to 30 are up to 30 integers whose lowest common multiple is to be calculated.

Example

Hvis du skriver inn tallene 512; 1024 og 2000 i tekstfeltene Heltall1; 2 og 3, blir resultatet 128000 returnert.

MRUND (MROUND pÄ engelsk)

Gir et tall avrundet til det nĂŠrmeste multiplum av et annet tall.

Syntax

MRUND(Verdi; Multiplum)

Gir Verdi avrundet til det nĂŠrmeste multiplum av Multiplum.

En alternativ implementering ville vĂŠrt Multiplum * AVRUND(Verdi/Multiplum).

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).

MULTINOMINELL

Returns the factorial of the sum of the arguments divided by the product of the factorials of the arguments.

Syntax

MULTINOMINELL(Tall)

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!)

OPPHØY (POWER pÄ engelsk)

Returns a number raised to another number.

Syntax

POWER(Base; Exponent)

Returns Base raised to the power of Exponent.

Det samme resultatet kan oppnÄs ved Ä bruke eksponentoperatoren ^:

Base^Exponent

Example

=POWER(4;3) returns 64, which is 4 to the power of 3.

4^3 gir ogsÄ 4 opphÞyd i 3. potens.

PI

Gir 3,14159265358979, verdien av den matematiske konstanten Pi med 14 desimaler.

Syntax

PI()

Example

=PI() returns 3.14159265358979.

PRODUKT (PRODUCT pÄ engelsk)

Multipliserer alle tallene gitt som argumenter og gir produktet som resultat.

Syntax

PRODUKT(Tall1; Tall2; ...; Tall30)

Number1 to 30 are up to 30 arguments whose product is to be calculated.

PRODUKT gir Tall1 * Tall2 * Tall3 * ...

Example

=SUMMERPRODUKT(A1:B3; C1:D3) gir 397.

RADIANER (RADIANS pÄ engelsk)

GjĂžr om grader til radianer.

Syntax

RADIANER(Tall)

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.

REST (MOD pÄ engelsk)

Gir resten ved divisjon av et heltall med et annet.

Syntax

REST(Teller; Nevner)

For integer arguments this function returns Dividend modulo Divisor, that is the remainder when Dividend is divided by Divisor.

Denne funksjonen er implementert som Teller - Nevner * HELTALL(Teller/Nevner), og denne formelen gir resultatet hvis argumentene ikke er heltall.

Example

=MOD(22;3) returns 1, the remainder when 22 is divided by 3.

=N(123) gir 123

ROT (SQRT pÄ engelsk)

Gir den positive kvadratrota av et tall.

Syntax

ROT(Tall)

Gir den positive kvadratrota av Tall.

Tall mÄ vÊre positivt.

Example

=N(SANN) gir 1

=SQRT(-16) returns an invalid argument error.

ROTPI (SQRTPI pÄ engelsk)

Gir kvadratrota av (pi gange et tall).

Syntax

ROTPI (Tall)

Gir den positive kvadratrota av (PI ganget med Tall).

Dette er det samme som ROT(PI()*Tal).

Example

=SQRTPI(2) returns the squareroot of (2PI), approximately 2.506628.

SEC

Returns the secant of the given angle (in radians). The secant of an angle is equivalent to 1 divided by the cosine of that angle

Syntax

SIN(Tall)

Gir (den trigonometriske) sinusen av Tall, vinkelen i radianer.

For Ă„ returnere sinusen av en vinkel i grader kan du bruke funksjonen RADIANER.

Example

=SEC(PI()/4) returns approximately 1.4142135624, the inverse of the cosine of PI/4 radians.

=SEC(RADIANS(60)) returns 2, the secant of 60 degrees.

SECH

Gir hyperbolsk sinus til et tall.

Syntax

SINH(Tall)

Gir den hyperbolske tangens av Tall.

Example

=SECH(0) returns 1, the hyperbolic secant of 0.

SFF (GCD pÄ engelsk)

Gir den stĂžrste felles faktoren til to eller flere heltall.

The greatest common divisor is the positive largest integer which will divide, without remainder, each of the given integers.

Syntax

SFF(Heltall1; Heltall2; ...; Heltall30)

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.

SIN

Gir sinus av den gitte vinkelen (i radianer).

Syntax

SIN(Tall)

Gir (den trigonometriske) sinusen av Tall, vinkelen i radianer.

For Ă„ returnere sinusen av en vinkel i grader kan du bruke funksjonen RADIANER.

Example

=SIN(PI()/2) returns 1, the sine of PI/2 radians.

=SIN(RADIANS(30)) returns 0.5, the sine of 30 degrees.

SINH

Gir hyperbolsk sinus til et tall.

Syntax

SINH(Tall)

Gir den hyperbolske tangens av Tall.

Example

=SINH(0) returns 0, the hyperbolic sine of 0.

SUM

Legg sammen alle tallene i et celleomrÄde.

Syntax

SUMMER(Tall1; Tall2; ...; Tall30)

Number 1 to Number 30 are up to 30 arguments whose sum is to be calculated.

Example

Hvis du skriver inn tallene 2, 3 og 4 i tekstfeltene Tall1, Tall2 og Tall3, vil resultatet 9 bli returnert.

=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.

Betingelser lenket sammen med OG kan brukes med funksjonen SUM() pÄ fÞlgende mÄte:

Eksempel: Du har skrevet inn fakturaer i en tabell. Kolonne A inneholder datoverdien av fakturaen, kolonne B inneholder belÞpet. Du vil finne et skjema, som du skal bruke for Ä beregne totalbelÞpet for en spesifikk mÄned, for eksempel summen av fakturaer i perioden >=2008-01-01 til <2008-02-01. OmrÄdet med datovÊrdierne dÊkker A1:A40. OmrÄdet, som indeholder fakturabelÞp, som skal opsummeres, er i B1:B40. C1 inneholder startdatoen, 2008-01-01, hvor fakturaer skal vÊre inkludert, og C2 datoen, 2008-02-01, som ikke lengre skal inkluderes.

Skriv inn den fĂžlgende formelen som en matriseformel:

=SUM((A1:A40>=C1)*(A1:A40<C2)*B1:B40)

For Ä skrive inn dette som en matriseformel, kan du trykke «Shift+Enter» i stedet for Ä bare trykke «Enter» for Ä lukke formelen. Formelen vil sÄ bli vist i Formellinjen omgitt av klammeparenteser.

{=SUMMER((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 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

Legg til cellene som er angitt av et visst kriterium. Du kan bruke denne funksjonen til Ä bla igjennom et dataomrÄde nÄr du sÞker etter en bestemt verdi.

SĂžket har stĂžtte for regulĂŠre uttrykk. Du kan for eksempel skrive inn «all.*» for Ă„ finne den fĂžrste forekomsten av «all» etterfulgt av hvilket som helst tegn . Hvis du vil sĂžke etter en tekst som ogsĂ„ er et uttrykk, mĂ„ du skrive inn \ foran hvert tegn i sĂžkeordet. Du kan slĂ„ den automatiske evalueringen av uttrykk, av og pĂ„ →LibreOffice Calc → Kalkuler.

Syntax

SUMMER.HVIS(OmrÄde; Kriterier; SumOmrÄde)

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.

SumRange is the range from which values are summed. If this parameter has not been indicated, the values found in the Range are summed.

Merknadsikon

SUMMER.HVIS operatÞren for referansesammentrekning (~) i parameteren Kriterier, og bare hvis den valgfrie parameteren SummerOmrÄde ikke er gitt.


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.

Se TELL.HVIS() for flere eksempler pÄ syntaks som kan brukes med SUMMER.HVIS().

SUMMER.REKKE

Summerer de fĂžrste elementene av en serie med potenser.

SUMMER.REKKE(X;N;m;Koeffisienter) = koeffisient_1*X^N + koeffisient_2*X^(N+m) + koeffisient_3*X^(N+2m) +...+ koeffisient_i*X^(N+(i-1)m)

Syntax

SUMMER.REKKE(X; N; M; Koeffisienter)

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.

SUMMERKVADRAT

Regner ut summen av kvadratene av tallene som du skriver inn (summerer opp kvadratene av alle argumentene).

Syntax

SUMMERKVADRAT(Tal1; Tal2; ...; Tal30)

Number1 to 30 are up to 30 arguments the sum of whose squares is to be calculated.

Example

Hvis du skriver inn tallene 2; 3 og 4 i tekstfeltene Tall1;Tall2 og Tall3, vil 29 bli returnert som resultat.

TAN

Gir tangens av den gitte vinkelen (i radianer).

Syntax

TAN(Tall)

Gir (den trigonometriske) tangens av Tall, vinkelen i radianer.

For Ă„ returnere tangens av en vinkel i grader kan du bruke funksjonen RADIANER.

Example

=TAN(PI()/4) returns 1, the tangent of PI/4 radians.

=TAN(RADIANS(45)) returns 1, the tangent of 45 degrees.

TANH

Gir hyperbolsk tangens til et tall.

Syntax

TANH(Tall)

Gir den hyperbolske tangens av Tall.

Example

=TANH(0) returns 0, the hyperbolic tangent of 0.

TILFELDIG (RAND pÄ engelsk)

Gir et tilfeldig tall mellom 0 og 1.

Syntax

RAND()

This function produces a new random number each time Calc recalculates. To force Calc to recalculate manually press F9.

For Ă„ lage tilfeldige tall som aldri omberegnes, kan du kopiere celler som hver inneholder =TILFELDIG() og bruke Rediger → Lim inn utvalg (med Sett inn alt og Formler ikke merket og Tall merket).

Example

=RAND() returns a random number between 0 and 1.

TILFELDIGMELLOM (RANDBETWEEN pÄ engelsk)

Gir et tilfeldig heltall i et angitt omrÄde.

Syntax

TILFELDIGMELLOM (Bunn; Topp)

Gir et tilfeldig heltall mellom heltallene Bunn og Topp (begge inklusive).

This function produces a new random number each time Calc recalculates. To force Calc to recalculate manually press F9.

For Ă„ lage tilfeldige tall som aldri omberegnes, kopier cellene som inneholder denne funksjonen, og bruk Rediger → Sett inn Spesiell (med Sett inn alt og ikke Formler merket og Tall merket).

Example

=RANDBETWEEN(20;30) returns an integer of between 20 and 30.