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.

Syntaks

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.

Eksempel

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

Syntaks

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.

Eksempel

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

Syntaks

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.


Eksempel

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

Syntaks

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.


Eksempel

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.

Syntaks

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.

Eksempel

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

Syntaks

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.

Eksempel

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

Syntaks

AVRUND.TIL.ODDETALL(Tall)

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

Eksempel

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

Syntaks

AVRUND.TIL.PARTALL(Tall)

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

Eksempler

=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

Syntaks

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.

Eksempel

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.

Syntaks

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

Eksempel

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

Syntaks

COS(Tall)

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

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

Eksempler

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

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

Open file with example:

COSH

Gir hyperbolsk cosinus til et tall.

Syntaks

COSH(Tall)

Gir den hyperbolske tangens av Tall.

Eksempel

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

Open file with example:

COT

Gir cotangens til den gitte vinkelen (i radianer).

Syntaks

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.

Open file with example:

COTH

Gir hyperbolsk cotangens til et gitt tall (vinkel).

Syntaks

COTH(Tall)

Gir den hyperbolske tangens av Tall.

Eksempel

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

Open file with example:

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

Syntaks

COSH(Tall)

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

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

Eksempler

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

Open file with example:

CSCH

Gir hyperbolsk cosinus til et tall.

Syntaks

COSH(Tall)

Gir den hyperbolske tangens av Tall.

Eksempel

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

Open file with example:

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.

Syntaks

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.

Eksempel

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.

Syntaks

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.

Syntaks

EXP(Tall)

Number is the power to which e is to be raised.

Eksempel

=EXP(1) returns 2.71828182845904, the mathematical constant e to Calc's accuracy.

FAKULTET (FACT på engelsk)

Returns the factorial of a number.

Syntaks

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.

Eksempel

=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

Syntaks

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.

Eksempel

=N(123) gir 123

FORKORT (TRUNC på engelsk)

Forkorter et tall ved å fjerne desimaler.

Syntaks

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.


Eksempel

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

Syntaks

FORTEGN(Tall)

Number is the number whose sign is to be determined.

Eksempel

=N(SANN) gir 1

=N(SANN) gir 1

GCD_EXCEL2003

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

Merknadsikon

The functions whose names end with _ADD or _EXCEL2003 return the same results as the corresponding Microsoft Excel 2003 functions without the suffix. Use the functions without suffix to get results based on international standards.


Syntaks

GCD_EXCEL2003(Number(s))

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

Eksempel

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

GRADER (DEGREES på engelsk)

Gjør om radianer til grader.

Syntaks

GRADER(Tall)

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

Eksempel

=DEGREES(PI()) returns 180 degrees.

HELTALL (INT på engelsk)

Runder av et tall ned til nærmeste heltall.

Syntaks

HELTALL(Tall)

Gir Tall rundet ned til nærmeste heltall.

Negative tall rundes ned til heltallet under.

Eksempel

=N(SANN) gir 1

=N(123) gir 123

INVERS.COS (ACOS på engelsk)

Gir invers hyperbolsk cosinus til et tall.

Syntaks

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.

Eksempel

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

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

Open file with example:

INVERS.COSH (ACOSH på engelsk)

Gir invers hyperbolsk cosinus til et tall.

Syntaks

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.

Eksempel

=N(USANN) gir 0

CELLE("COL"; D2) gir 4.

Open file with example:

INVERS.COT (ACOT på engelsk)

Gir invers hyperbolsk cotangens til et tall.

Syntaks

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.

Eksempel

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

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

Open file with example:

INVERS.COTH (ACOTH på engelsk)

Gir invers hyperbolsk cotangens til et tall.

Syntaks

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.

Eksempel

=ACOTH(1.1) returns inverse hyperbolic cotangent of 1.1, approximately 1.52226.

Open file with example:

INVERS.SIN (ASIN på engelsk)

Gir invers hyperbolsk sinus til et tall.

Syntaks

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.

Eksempel

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.

Open file with example:

INVERS.SINH (ASINH på engelsk)

Gir invers hyperbolsk sinus til et tall.

Syntaks

INVERS.SINH(Tall)

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

Eksempel

=ASINH(-90) returns approximately -5.1929877.

=ERODDE_ADD(5) gir 1.

Open file with example:

INVERS.TAN (ATAN på engelsk)

Gir invers hyperbolsk tangens av et tall.

Syntaks

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.

Eksempel

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

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

Open file with example:

INVERS.TAN (ATAN på engelsk)

Gir invers hyperbolsk tangens av et tall.

Syntaks

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.

Eksempel

=N(USANN) gir 0

Open file with example:

INVERS.TAN2

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

Syntaks

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.

Eksempel

=ATAN2(20;20) returns 0.785398163397448 (PI/4 radians).

=DEGREES(ATAN2(12.3;12.3)) returns 45. The tangent of 45 degrees is 1.

Open file with example:

ISO.CEILING

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

Syntaks

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.

Eksempel

CELLE("COL"; D2) gir 4.

KOMBINASJON

Gir antall kombinasjoner for elementer uten gjentagelse.

Syntaks

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

Eksempel

CELLE("COL"; D2) gir 4.

KOMBINASJONA

Gir antall kombinasjoner for en delmengde av elementer deriblant gjentagelser.

Syntaks

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

Eksempel

CELLE("COL"; D2) gir 4.

KVOTIENT (QUOTIENT på engelsk)

Gir heltallsresultatet av en divisjon.

Syntaks

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

Eksempel

=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

The functions whose names end with _ADD or _EXCEL2003 return the same results as the corresponding Microsoft Excel 2003 functions without the suffix. Use the functions without suffix to get results based on international standards.


Syntaks

LCM_EXCEL2003(Number(s))

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

Eksempel

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

Syntaks

LN(Tall)

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

Eksempel

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

Syntaks

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.

Eksempel

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

Syntaks

LOG10(Tall)

Gir titallslogaritmen av Tall.

Eksempel

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

Syntaks

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

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

Eksempel

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.

Syntaks

MRUND(Verdi; Multiplum)

Gir Verdi avrundet til det nærmeste multiplum av Multiplum.

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

Eksempel

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

Syntaks

MULTINOMINELL(Tall)

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

Eksempel

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

Syntaks

POWER(Base; Exponent)

Returns Base raised to the power of Exponent.

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

Base^Exponent

Eksempel

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

Syntaks

PI()

Eksempel

=PI() returns 3.14159265358979.

PRODUKT (PRODUCT på engelsk)

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

Syntaks

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

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

PRODUKT gir Tall1 * Tall2 * Tall3 * ...

Eksempel

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

RADIANER (RADIANS på engelsk)

Gjør om grader til radianer.

Syntaks

RADIANER(Tall)

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

Eksempel

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

Syntaks

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.

Eksempel

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

Syntaks

ROT(Tall)

Gir den positive kvadratrota av Tall.

Tall må være positivt.

Eksempel

=N(SANN) gir 1

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

ROTPI (SQRTPI på engelsk)

Gir kvadratrota av (pi gange et tall).

Syntaks

ROTPI (Tall)

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

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

Eksempel

=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

Syntaks

SIN(Tall)

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

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

Eksempler

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

Open file with example:

SECH

Gir hyperbolsk sinus til et tall.

Syntaks

SINH(Tall)

Gir den hyperbolske tangens av Tall.

Eksempel

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

Open file with example:

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.

Syntaks

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

Integer1 To 30 are up to 30 integers whose greatest common divisor is to be calculated.

Eksempel

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

Syntaks

SIN(Tall)

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

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

Eksempel

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

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

Open file with example:

SINH

Gir hyperbolsk sinus til et tall.

Syntaks

SINH(Tall)

Gir den hyperbolske tangens av Tall.

Eksempel

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

Open file with example:

SUM

Legg sammen alle tallene i et celleområde.

Syntaks

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

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

Eksempel

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» etterfølgt av hvilket tegn som helst. 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å i LibreOffice Calc → Regn ut.

Syntaks

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.


Eksempel

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)

Syntaks

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

Syntaks

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

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

Eksempel

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

Syntaks

TAN(Tall)

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

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

Eksempel

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

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

Open file with example:

TANH

Gir hyperbolsk tangens til et tall.

Syntaks

TANH(Tall)

Gir den hyperbolske tangens av Tall.

Eksempel

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

Open file with example:

TILFELDIG (RAND på engelsk)

Gir et tilfeldig tall mellom 0 og 1.

Syntaks

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

Eksempel

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

TILFELDIGMELLOM (RANDBETWEEN på engelsk)

Gir et tilfeldig heltall i et angitt område.

Syntaks

TILFELDIGMELLOM (Bunn; Topp)

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

Denne funksjonen produserer ett nytt tilfeldig tall, hver gang Calc omberegner. For å manuelt tvinge Calc til å omberegne, trykke på «Skift++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).

Eksempel

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