Module
Contents
Index 🔎︎

# Formula

Opens a submenu, from which you can insert a formula into the cell of a table. Place the cursor in a cell in the table or at the position in the document where you want the result to appear. Click the Formula icon and choose the desired formula from the submenu.

The formula appears in the input line. To specify a range of cells in a table, select the desired cells with the mouse. The corresponding cell references also appear in the input line. Enter additional parameters, as necessary, and click Apply to confirm your entry. You can also enter the formula directly if you know the appropriate syntax. This is necessary, for example, in the Insert Fields and Edit Fields dialogs.

Formula

## Summary of Formula Options

### Pamata aprēķināšanas funkcijas

Saskaitīšana | + | Calculates the total. Example: <A1> + 8
Atņemšana | - | Calculates the difference Example: 10 - <B5>
Reizināšana | MUL or * | Calculates the product. Example: 7 MUL 9
Dalīšana | DIV or / | Calculates the quotient Example: 100 DIV 15

### Basic Functions in the Submenu

Summa | SUM | Calculates the sum of the selected cells. Example: SUM <A2:C2> displays the sum of the values in cells A2 to C2
Apaļošana | ROUND | Rounds a number to the specified decimal places. Example: 15.678 ROUND 2 displays 15.68
Procents | PHD | Calculates a percentage Example: 10 + 15 PHD displays 10.15
Kvadrātsakne | SQRT | Calculates the square root. Example: SQRT 25 displays 5.00
Pakāpe | POW | Calculates the power of a number. Example: 2 POW 8 displays 256.00

### Operatori

You can insert various operators in your formula. Choose from the following functions:

Saraksta atdalītājs | | | Separates the elements in a list. Saraksta lietošanas piemērs: MIN 10|20|50|<C6>|<A2:B6>|20
Vienāds | EQ vai == | Checks if selected values are equal. If they are unequal, the result is zero, otherwise 1 (true) appears. Example: <A1> EQ 2 displays 1, if the content of A1 equals 2.
Nav vienāds | NEQ or != | Tests for inequality between selected values. Example: <A1> NEQ 2 displays 0 (wrong), if the content of A1 equals 2.
Mazāks kā vai vienāds | LEQ | Tests for values less than or equal to a specified value. Example: <A1> LEQ 2 displays 1 (true), if the content of A1 is less than or equal to 2.
Lielāks vai vienāds | GEQ | Tests for values greater than or equal to a specified value Example: <A1> GEQ 2 displays 1 (true), if the content of A1 is greater than or equal to 2.
Mazāks | L | Tests for values less than a specified value Example: <A1> L 2 displays 1 (true), if the content of A1 is less than 2.
Lielāks | G | Tests for values greater than a specified value Example: <A1> G 2 displays 1 (true), if the content of A1 is greater than 2.
Loģiskais VAI | OR | Tests for values matching the Boolean OR Example: 0 OR 0 displays 0 (false), anything else results in 1 (true)
Boolean X Or | XOR | Tests for values matching the Boolean exclusive OR Example: 1 XOR 0 displays 1 (true)
Loģiskais UN | AND | Tests for values matching the Boolean AND Example: 1 AND 2 displays 1 (true)
Loģiskais NE | NOT | Tests for values matching the Boolean NOT Example: NOT 1 (true) displays 0 (false)

### Statistiskās funkcijas

You can choose from the following statistical functions:

Vidējais | MEAN | Calculates the arithmetic mean of the values in an area or a list. Piemērs: MEAN 10|30|20 attēlo 20
Minimuma vērtība | MIN | Calculates the minimum value in an area or a list. Piemērs: MIN 10|30|20 attēlo 10
Maksimuma vērtība | MAX | Calculates the maximum value in an area or a list. Piemērs: MAX 10|30|20 attēlo 30.00

### Trigonometriskās funkcijas

You can choose from the following trigonometric functions:

Sinuss | SIN | Calculates the sine in radians Piemērs: SIN (PI/2)
Kosinuss | COS | Calculates the cosine in radians. Piemērs: COS 1
Tangenss | TAN | Calculates the tangent in radians. Piemērs: TAN <A1>
Arksinuss | ASIN | Calculates the arc sine in radians. Piemērs: ASIN 1
Arkkosinuss | ACOS | Calculates the arc cosine in radians. Piemērs: ACOS 1
Arktangenss | ATAN | Calculates the arc tangent in radians. Piemērs: ATAN 1

### Mainīgie dokumenta īpašībām

The following document properties are also found under File - Properties - Statistics.

CHAR | Rakstzīmju skaits dokumentā
WORD | Vārdu skaits dokumentā
PARA | Rindkopu skaits dokumentā
GRAPH | Grafiku skaits dokumentā
TABLES | Tabulu skaits dokumentā
OLE | OLE objektu skaits dokumentā
PAGE | Kopējais lappušu skaits dokumentā

### More Defined Values

PI | PI | 3.1415...
Eilera konstante | E | 2.71828...
Patiess | TRUE | nav vienāds ar 0
Aplams | FALSE | 0