LibreOffice 24.2 žinynas
Aptarsime pateiktą lentelę
| A | B | C | |
|---|---|---|---|
| 1 | Produkto pavadinimas | Pardavimai | Pajamos | 
| 2 | pieštukas | 20 | 65 | 
| 3 | plunksna | 35 | 85 | 
| 4 | užrašinė | 20 | 190 | 
| 5 | knyga | 17 | 180 | 
| 6 | pieštuko veiksena | neigimas | neigimas | 
Žemiau pateiktuose pavyzdžiuose skaičiavimo sritys apima #6 eilutę, kurios nepaisoma, nes joje yra tekstas.
Func_Range; Range1; Criterion[; Range2; Criterion2][; … ; [Range127; Criterion127]]
Kriterijams galima naudoti loginę operaciją AND (konjunkciją). Kitais žodžiai, jei tenkinamas tik duotas kriterijus, į skaičiavimą įtraukiama atitinkamo langelio duotos Funkcijos srities reikšmė.
Funkcijos sritis ir 1 sritis, 2 sritis... turi būti tokio paties dydžio, kitaip funkciją grąžina „Klaida:502“ – neteisingas argumentas.
1 sritis – būtinas argumentas. Duomenų, kuriems taikomas kriterijus, langelių sritis, pavadintų langelių pavadinimas, stulpelio ar eilutės žymė.
Criterion: A criterion is a single cell Reference, Number or Text. It is used in comparisons with cell contents.
A reference to an empty cell is interpreted as the numeric value 0.
A matching expression can be:
A Number or Logical value. A matching cell content equals the Number or Logical value.
A value beginning with a comparator (<, <=, =, >, >=, <>).
For =, if the value is empty it matches empty cells.
For <>, if the value is empty it matches non-empty cells.
For <>, if the value is not empty it matches any cell content except the value, including empty cells.
Note: "=0" does not match empty cells.
For = and <>, if the value is not empty and can not be interpreted as a Number type or one of its subtypes and the property Search criteria = and <> must apply to whole cells is checked, comparison is against the entire cell contents, if unchecked, comparison is against any subpart of the field that matches the criteria. For = and <>, if the value is not empty and can not be interpreted as a Number type or one of its subtypes applies.
Other Text value. If the property Search criteria = and <> must apply to whole cells is true, the comparison is against the entire cell contents, if false, comparison is against any subpart of the field that matches the criteria. The expression can contain text, numbers, regular expressions or wildcards (if enabled in calculation options).
2 sritis – neprivaloma. 2 sritis ir visos paskesnė aprašomos taip pat, kaip ir 1 sritis.
Criterion2 – Optional. Criterion2 and all the following mean the same as Criterion.
Funkcija gali turėti iki 255 argumentų, tai reiškia, kad galite nurodyti 127 kriterijų sritis ir jų kriterijus.
Jei langelyje yra reikšmė TRUE, tai traktuojama kaip 1, o FALSE – kaip 0 (nulis).