# Basic arithmetic operations and simple functions in Calc

Template:TopMenu/en Template:Menu/en

## Contents

## Foreword

This description refers to the LibreOffice 6.4.

The videos shows how ″Basic arithmetic operations and simple functions in Calc ″ can be done under LibreOffice and links to this page here, which offers further information and details.

## Links to the Videos

Link to the Video in DE-German: Grundrechenarten in Calc

Limk to the Video in DE-German: Einfache Funktionen in Calc

## Basic arithmetic operations in Calc

This video shows how that Basic arithmetics Overview in Calc can be applied (+, -, x, ÷).

We open Calc and the file "Basic arithmetic operations in Calc V6.ods".

### Operators

We are in the "Basic arithmetic operations" table. The colored table shows the operators in the school view and how they are used in Calc.

### Calculate values directly in the formula

The number 40 is in cell E9. If we click in this cell, we see in the "Formula bar" the formula that calculates the displayed value. "=30+10" was entered in the cell, thus a formula with directly entered values. It is a simple addition of two numbers. Corresponding calculations of direct values with subtraction "=30-10", multiplication "=30*10" and division "=30/10" are contained in cells E10 to E12.

### Calculate values from other cells

In cell G9 the same numbers are added, but with values from other cells. In the formula bar we now see the formula "=I11+I9". We click above in the formula bar and the two reference cells are displayed blue-red marked. We leave the formula bar with ` Escape`. The cells G10 to G12 are again corresponding calculations "=I11-I9", "=I11*I9", "=I11/I9" with values from other cells.

### Generate totals with the function “Sum”

Sums can be calculated over several contiguous cells that have a number content. This can be done in a column or row. We place the cursor in cell I14 and click on the "Sum" symbol. The numbers above in I9 to I13 blue marked are displayed. We press `Return`. The sum of the cells, I9 to I13, is displayed in I14. It should be noted that negative numbers, as in I13, are also calculated accordingly. We now place the cursor in N9 and click the ∑ symbol (sum) again. The numbers I9 to M9 to the left of it are shown in blue on the line. We press `Return`.

### Copy sum formula

In the next step we copy the sum formula in I14, to K14, with `Strg`+`C` and `Strg`+`V`. The sum of the fields K9 to K13 is now displayed in cell K14.

## Simple functions in Calc

This video shows how simple functions can be used in Calc. We open Calc and the file "Simple functions in Calc V6.ods".

### Function: CODE

We click on the tab "F = CODE". We click in cell "B4" and see in the "Formula bar" the formula that leads to the displayed value. The "CODE" function supplies the code of the first character of a text. In this example, the first character from cell "C4" is an "M" from "Martha".

### Functions: ROMAN and ARABIC

Below we select the tab "F = ROMAN and ARABIC". The function "ROMAN" converts a number into a Roman number. This is the case in cells "B4" and "C4". The "ARABIC" function calculates the value of a Roman number. We see this in cells "B6" and "C6".

### Function: DATEVALUE

We click on the tab "DATE VALUE" and in the cell "B4". The function determines an internal number from a text in a possible date format. Cell "B4" shows the internal number for "04/01/2018". And cell "C4" shows the internal number for the "day zero" this is the "12/30/1899", so the **default value** in Calc.

### Function: ISBLANK

We click on the tab "ISBLANK" and in the cell "B4". The "ISBLANK" function queries whether the specified cell is empty and displays "TRUE" if this is the case.

### Function: ISFORMULA

We click on the tab "ISFORMULA" and in the cell "B4". The "ISFORMULA" function queries whether the specified cell is a formula cell and displays "TRUE" if this is the case. In this example, cell "C4" is a formula cell or a cell that contains a formula.

### Function: NOW

We click on the tab "NOW" and in the cell "B4". The "NOW" function shows the current time of the computer. With "F9" the time in the cell is updated. The prerequisite is that the computer time has the correct time zone. With modern computers, the time is usually set via the Internet.

### Function: WEEKNUM

We click on the ″WEEKNUM" tab and in cell "D4". The "WEEKNUM" function shows the calendar week for a given date. In our example, "D4" shows "13" for 04/01/2018.

### Insert a function (UPPER)

We click on the "Insert function" tab. In the cell "C4" we write "anna" . We insert into the one function by clicking on the function assistant in the calculation bar. The dialog box "Function Assistant" opens and in the "Functions" tab we can select a function under "Function". We select the "UPPER" function by double-clicking on "UPPER". In the "Text" field we enter C4 and . The Function assistant in Calc offers a wealth of functions for the calculation.

### Take a look around

Have a look around the functions and try out which functions can help you with the calculations in Calc.

## Working files

File:"Basic arithmetic operations in Calc V6.ods"

File:"Simple functions in Calc V6.ods"