Funksionet statistikore

This category contains the Logical functions.

Handling non-logical arguments in logical functions

To access this command...

Insert - Function - Category Logical


JO

Complements (inverts) a logical value.

Syntax

JO logjike

LogicalValue is any value to be complemented.

Example

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

DHE

Returns TRUE if all arguments are TRUE. If one of the elements is FALSE, this function returns the FALSE value.

The arguments are either logical expressions themselves (TRUE, 1<5, 2+3=7, B8<10) that return logical values, or arrays (A1:C3) containing logical values.

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

The logical values of entries 12<13; 14>12, and 7<6 are to be checked:

Hyrja e karaktereve alfanumerike

Hyrja e karaktereve alfanumerike

OSE

Returns TRUE if at least one argument is TRUE. This function returns the value FALSE, if all the arguments have the logical value FALSE.

The arguments are either logical expressions themselves (TRUE, 1<5, 2+3=7, B8<10) that return logical values, or arrays (A1:C3) containing logical values.

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

The logical values of entries 12<11; 13>22, and 45=45 are to be checked.

Hyrja e karaktereve alfanumerike

Hyrja e karaktereve alfanumerike

PASAKTĂ‹

Returns the logical value FALSE. The FALSE() function does not require any arguments, and always returns the logical value FALSE.

Syntax

Pasaktë

Example

Hyrja e karaktereve alfanumerike

Hyrja e karaktereve alfanumerike

XOR

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

The arguments are either logical expressions themselves (TRUE, 1<5, 2+3=7, B8<10) that return logical values, or arrays (A1:C3) containing logical values.

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

Hyrja e karaktereve alfanumerike

Hyrja e karaktereve alfanumerike

Hyrja e karaktereve alfanumerike

NËSE

Specifies a logical test to be performed.

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.

Në funksionet Calc LibreOffice, parametrat e shënuar "opsional" mund të mos plotësohen kur nuk ndiqen nga ndonjë parametër. Për shembull, në një funksion me katër parametra, ku dy të fundit janë shënuar si "opsionalë", mund të mos e plotësoni parametrin 4 ose parametrat 3 dhe 4, por nuk mund të mos plotësosh vetëm parametrin 3.

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.

SAKTĂ‹

The logical value is set to TRUE. The TRUE() function does not require any arguments, and always returns the logical value TRUE.

Syntax

Saktë

Example

If A=TRUE and B=FALSE the following examples appear:

Hyrja e karaktereve alfanumerike

Hyrja e karaktereve alfanumerike

Hyrja e karaktereve alfanumerike