ལས་འགན་གཏན་ཚིག་ཅན་ཚུ།

This category contains the Logical functions.

Handling non-logical arguments in logical functions

བརྡ་བཀོད་འདི་འཛུལ་སྤྱོད་འབད་ནི་ལུ...

Insert - Function - Category Logical


ISNA

ནང་ཐིག་ནང་ན་ #N/A (འཐོབ་མ་ཚུགས་པའི་གནས་གོང་) གནས་གོང་འཛོལ་བ་ ཤོམ་ཏེ་ཡོད་པ་ཅིན་ TRUE སླར་ལོག་འབདཝ་ཨིན།

If an error occurs, the function returns FALSE.

Syntax

ISNA(གནས་གོང་།)

གནས་གོང་འདི་ བརྟག་ཞིབ་འབད་ནི་ཨིན་པའི་ གནས་གོང་ཡང་ན་གསལ་བརྗོད་ཨིན།

Example

=ISNA(D3) returns FALSE as a result.

ISERROR

Returns the value if the cell does not contain 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

=IFERROR(C8;C9) where cell C8 contains =1/0 returns the value of C9, because 1/0 is an error.

=IFERROR(C8;C9) where cell C8 contains 13 returns 13, the value of C8, which is not an error.

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.

AND

སྒྲུབ་རྟགས་ཚུ་ཆ་མཉམ་རང་ TRUE ཨིན་པ་ཅིན་ TRUE སླར་ལོག་འབདཝ་ཨིན། ཆ་ཤས་གཅིག་ FALSE ཨིན་པ་ཅིན་ FALSE གནས་གོང་སླར་ལོག་འབདཝ་ཨིན།

སྒྲུབ་རྟགས་ཚུ་ ཁོང་ར་ གཏན་ཚིག་ཅན་གནས་གོང་ཚུ་སླར་ལོག་འབད་མི་ གཏན་ཚིག་ཅན་གསལ་བརྗོད་ཚུ་ཨིནམ་དང་ ཡང་ན་ (TRUE, 1<5, 2+3=7, B8<10) ནང་ན་གཏན་ཚིག་ཅན་ གནས་གོང་ཚུ་ཤོམ་ཏེ་ཡོད་པའི་ ཨེ་རེ་ (A1:C3) ཚུ་ཨིན།

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.

note

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.


Example

གནས་གོང་གཏན་ཚིག་ཅན་ཚུའི་ཐོ་བཀོད་ 12<13; 14>12 དང་ 7<6 ཚུ་ཞིབ་དཔྱད་འབད་ནི་ཨིན།

=AND(12<13;14>12;7<6) returns FALSE.

=AND(FALSE();TRUE()) returns FALSE.

FALSE

གནས་གོང་གཏན་ཚིག་ཅན་ FALSE སླར་ལོག་འབདཝ་ཨིན། FALSE() ལས་འགན་གྱིས་ སྒྲུབ་རྟགས་ཚུ་དགོས་མཁོ་མེདཔ་མ་ཚད་ ཨ་རྟག་རང་གནས་གོང་གཏན་ཚིག་ཅན་ FALSE སླར་ལོག་འབདཝ་ཨིན།

Syntax

FALSE()

Example

=FALSE() returns FALSE

=NOT(FALSE()) returns TRUE

IF

ལཱ་འགན་འགྲུབ་ནི་ཨིན་པའི་ བརྟག་ཞིབ་གཏན་ཚིག་ཅན་ཅིག་གསལ་བཀོད་འབདཝ་ཨིན།

Syntax

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

བརྟག་ཞིབ་ འདི་ TRUE ཡང་ན་ FALSE འོང་སྲིད་པའི་ གནས་གོང་གང་རུང་ཡང་ན་ གསལ་བརྗོད་ཨིན།

Then_value (གདམ་ཁ་ཅན་) འདི་ གཏན་ཚིག་ཅན་བརྟག་ཞིབ་འདི་ TRUE ཨིན་པ་ཅིན་ སླར་ལོག་འབད་ཡོད་པའི་གནས་གོང་།

Otherwise_value (གདམ་ཁ་ཅན་) འདི་གཏན་ཚིག་ཅན་བརྟག་ཞིབ་འདི་ 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 greater than 5, the value 100 is returned; otherwise, the text too small is returned.

=IF(A1>5;;"too small") If the value in A1 is greater than 5, the value 0 is returned because empty parameters are considered to be 0; otherwise, the text too small is returned.

=IF(A1>5;100;) If the value in A1 is less than 5, the value 0 is returned because the empty OtherwiseValue is interpreted as 0; otherwise 100 is returned.

NOT

Complements (inverts) a logical value.

Syntax

NOT(གནས་གོང་གཏན་ཚིག་ཅན།)

LogicalValue is any value to be complemented.

Example

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

OR

ཉུང་མཐའ་རང་ སྒྲུབ་རྟགས་གཅིག་ TRUE ཨིན་པ་ཅིན་ TRUE སླར་ལོག་འབདཝ་ཨིན། སྒྲུབ་རྟགས་ཆ་མཉམ་ལུ་ གནས་གོང་གཏན་ཚིག་ཅན་ FALSE ཡོད་པ་ཅིན་ འ་ནི་ལས་འགན་གྱིས་ གནས་གོང་ FALSE སླར་ལོག་འབདཝ་ཨིན།

སྒྲུབ་རྟགས་ཚུ་ ཁོང་ར་ གཏན་ཚིག་ཅན་གནས་གོང་ཚུ་སླར་ལོག་འབད་མི་ གཏན་ཚིག་ཅན་གསལ་བརྗོད་ཚུ་ཨིནམ་དང་ ཡང་ན་ (TRUE, 1<5, 2+3=7, B8<10) ནང་ན་གཏན་ཚིག་ཅན་ གནས་གོང་ཚུ་ཤོམ་ཏེ་ཡོད་པའི་ ཨེ་རེ་ (A1:C3) ཚུ་ཨིན།

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.

note

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.


Example

ཐོ་བཀོད་ཚུའི་གནས་གོང་གཏན་ཚིག་ཅན་ 12<11; 13>22 དང་ 45=45 ཚུ་ཞིབ་དཔྱད་འབད་ནི་ཨིན།

=OR(12<11;13>22;45=45) returns TRUE.

=OR(FALSE();TRUE()) returns TRUE.

TRUE

གཏན་ཚིག་ཅན་གནས་གོང་དེ་ TRUE ལུ་གཞི་སྒྲིག་འབད་ཡོད། TRUE() ལས་འགན་ལུ་ སྒྲུབ་རྟགས་ཚུ་དགོས་མ་མཁོ་བའི་ཁར་ ཨ་རྟག་རང་ གཏན་ཚིག་ཅན་གནས་གོང་ TRUE སླར་ལོག་འབདཝ་ཨིན།

Syntax

TRUE()

Example

A=TRUE དང་ B=FALSE ཨིན་པ་ཅིན་ འོག་གི་དཔེ་ཚུ་བྱུངམ་ཨིན:

=AND(A;B) returns FALSE

=OR(A;B) returns TRUE

=NOT(AND(A;B)) returns TRUE

XOR

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

སྒྲུབ་རྟགས་ཚུ་ ཁོང་ར་ གཏན་ཚིག་ཅན་གནས་གོང་ཚུ་སླར་ལོག་འབད་མི་ གཏན་ཚིག་ཅན་གསལ་བརྗོད་ཚུ་ཨིནམ་དང་ ཡང་ན་ (TRUE, 1<5, 2+3=7, B8<10) ནང་ན་གཏན་ཚིག་ཅན་ གནས་གོང་ཚུ་ཤོམ་ཏེ་ཡོད་པའི་ ཨེ་རེ་ (A1:C3) ཚུ་ཨིན།

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

=XOR(TRUE();TRUE()) returns FALSE

=XOR(TRUE();TRUE();TRUE()) returns TRUE

=XOR(FALSE();TRUE()) returns TRUE

Please support us!