Logick├ę funkcie

This category contains the Logical functions.

Handling non-logical arguments in logical functions

Pre pr├şstup k tomuto pr├şkazu...

Insert - Function - Category Logical


ISNA

Vracia TRUE, pokia─ż bunka obsahuje chybov├║ hodnotu #N/A (hodnota nie je k dispoz├şcii).

Pokia─ż d├┤jde k chybe, funkcia vracia FALSE.

Syntax

ISNA(Hodnota)

Hodnota je hodnota alebo v├Żraz ur─Źen├Ż k testovaniu.

Example

=ISNA(D3) vracia ako v├Żsledok FALSE.

ISERROR

Returns the value if the cell does not contains an error value, or the alternative value if it does.

tip

This function is available since LibreOffice 4.0.


Syntax

IFERROR(Value; Alternate_value)

Value is the value or expression to be returned if it is not equal or results in an error.

Alternate_value is the value or expression to be returned if the expression or value of Value is equal or results in an error.

Example

=ISERROR(C8) kde bunka obsahuje =1/0 a vracia TRUE, preto┼że 1/0 je chyba.

=ISERROR(C8) kde bunka obsahuje =1/0 a vracia TRUE, preto┼że 1/0 je chyba.

IFS

IFS is a multiple IF-function.

SWITCH

SWITCH compares expression with value1 to valuen and returns the result belonging to the first value that equals expression. If there is no match and default_result is given, that will be returned.

NOT

Complements (inverts) a logical value.

Syntax

NOT(Logická hodnota)

LogicalValue is any value to be complemented.

Example

=NOT(A). If A=TRUE then NOT(A) will evaluate FALSE.

XOR

Returns true if an odd number of arguments evaluates to TRUE.

Argumenty m├┤┼żu by┼ą logick├Żmi hodnotami (TRUE, 1<5, 2+3=7, B8<10) alebo m├┤┼żu ozna─Źova┼ą oblasti (A1:C3) obsahuj├║ce logick├ę hodnoty.

tip

This function is available since LibreOffice 4.0.


Syntax

XOR(Logical 1 [; Logical 2 [; ÔÇŽ [; Logical 255]]])

Logical 1, Logical 2, ÔÇŽ , Logical 255 are boolean values, references to cells or to cell ranges of logical values.

Example

=N(FALSE) vráti 0

=N(FALSE) vráti 0

=N(FALSE) vráti 0

OR

Vracia TRUE pokia─ż je aspo┼ł jeden argument TRUE. T├íto funkcia vracia FALSE, ak v┼íetky argumenty maj├║ logick├║ hodnotu FALSE.

Argumenty m├┤┼żu by┼ą logick├Żmi hodnotami (TRUE, 1<5, 2+3=7, B8<10) alebo m├┤┼żu ozna─Źova┼ą oblasti (A1:C3) obsahuj├║ce logick├ę hodnoty.

Syntax

OR(Logical 1 [; Logical 2 [; ÔÇŽ [; Logical 255]]])

Logical 1, Logical 2, ÔÇŽ , Logical 255 are boolean values, references to cells or to cell ranges of logical values.

Example

Logick├ę hodnoty jednotliv├Żch parametrov s├║ 12<11, 13>22 a 45=45.

=ISODD(48) vráti FALSE

=N(FALSE) vráti 0

AND

Vr├íti TRUE, ak s├║ v┼íetky argumenty TRUE. Ke─Ć je jedin├Ż z argumentov FALSE, vr├íti t├íto funkcie hodnotu FALSE.

Argumenty m├┤┼żu by┼ą logick├Żmi hodnotami (TRUE, 1<5, 2+3=7, B8<10) alebo m├┤┼żu ozna─Źova┼ą oblasti (A1:C3) obsahuj├║ce logick├ę hodnoty.

Syntax

AND(Logical 1 [; Logical 2 [; ÔÇŽ [; Logical 255]]])

Logical 1, Logical 2, ÔÇŽ , Logical 255 are boolean values, references to cells or to cell ranges of logical values.

Example

Logick├ę hodnoty polo┼żiek 12<13; 14>12, a 7<6 sa maj├║ skontrolova┼ą.

=ISODD(48) vráti FALSE

=N(FALSE) vráti 0

FALSE

Vr├íti logick├║ hodnotu FALSE. Funkcia FALSE() nevy┼żaduje ┼żiadne argumenty a v┼żdy vr├íti logick├║ hodnotu FALSE.

Syntax

FALSE()

Example

=ISEVEN(33) vráti FALSE

=N(FALSE) vráti 0

TRUE

Vr├íti logick├║ hodnotu TRUE (pravda). Funkcia TRUE() nevy┼żaduje ┼żiadne argumenty a v┼żdy vr├íti logick├║ hodnotu TRUE.

Syntax

TRUE()

Example

Pokia─ż A=TRUE a B=FALSE, bud├║ plati┼ą nasleduj├║ce z├ípisy:

=ISODD(48) vráti FALSE

=ISODD(33) vráti TRUE

=ISEVEN(0) vráti TRUE

IF

┼ápecifikuje logick├Ż test, ktor├Ż m├í by┼ą vykonan├Ż.

Syntax

IF(Test [; ThenValue [; OtherwiseValue]])

Test is any value or expression that can be TRUE or FALSE.

ThenValue (optional) is the value that is returned if the logical test is TRUE.

OtherwiseValue (optional) is the value that is returned if the logical test is FALSE.

In the LibreOffice Calc functions, parameters marked as "optional" can be left out only when no parameter follows. For example, in a function with four parameters, where the last two parameters are marked as "optional", you can leave out parameter 4 or parameters 3 and 4, but you cannot leave out parameter 3 alone.

Example

=IF(A1>5;100;"too small") If the value in A1 is higher than 5, the value 100 is entered in the current cell; otherwise, the text ÔÇťtoo smallÔÇŁ (without quotes) is entered.

Please support us!