This category contains the Logical functions.
Zero (0) is equivalent to FALSE and all other numbers are equivalent to TRUE.
Empty cells and text in cells are ignored.
A #VALUE error is raised if all arguments are ignored.
A #VALUE error is raised if one argument is direct text (not text in a cell).
Errors as argument lead to an error.
ត្រឡប់ TRUE បើអាគុយម៉ង់ទាំងអស់ TRUE ។ បើធាតុមួយនៃធាតុទាំងអស់គឺ FALSE នោះអនុគមន៍នេះត្រឡប់តម្លៃ FALSE ។
អាគុយម៉ង់ជាកន្សោមតក្កវិជ្ជាខ្លួនឯង (TRUE, 1<5, 2+3=7, B8<10) ដែលត្រឡប់តម្លៃតក្កវិជ្ជា ឬជាអារេ (A1:C3) ដែលមានតម្លៃតក្កវិជ្ជា ។
AND(Logical 1 [; Logical 2 [; … [; Logical 255]]])
តម្លៃតក្កនៃធាតុបញ្ចូល 12<13; 14>12 និង 7<6 ដែលនឹងត្រូវបានពិនិត្យ ៖
=AND(12<13;14>12;7<6) ត្រឡប់ FALSE ។
=AND(FALSE();TRUE()) returns FALSE.
The array formula {=AND(B1:B10;C1:C10)} yields a one-dimensional value of TRUE when all components of B1:B10 and C1:C10 are TRUE. The array expression above does not produce the logical AND per element, and thus does not produce an array of logical values. To compute a logical AND of arrays per element use the * operator in array context. In the example, enter {=B1:B10*C1:C10}.
ត្រឡប់តម្លៃតក្ក មិនពិត ។ អនុគមន៍ FALSE() មិនទាមទារអាគុយម៉ង់ទេ និងតែងតែត្រឡប់តម្លៃតក្ក មិនពិត ។
FALSE()
=FALSE() ត្រឡប់ FALSE
=NOT(FALSE()) ត្រឡប់ TRUE
បញ្ជាក់លម្អិតការពិសោធន៍តក្កវិជ្ជាមួយ ដែលត្រូវប្រតិបត្តិ ។
IF(Test [; [ThenValue] [; [OtherwiseValue]]])
សាកល្បង ជាតម្លៃ ឬកន្សោមណាមួយដែលអាច ពិត ឬមិនពិត ។
តម្លៃស្រប (ស្រេចចិត្ត) ជាតម្លៃដែលត្រូវបានត្រឡប់ បើការសាកល្បង ពិត ។
តម្លៃផ្ទុយ (ស្រេចចិត្ត) ជាតម្លៃដែលនឹងត្រូវបានត្រឡប់ បើការសាកល្បងតក្ក មិនពិត ។
In the LibreOfficeDev 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.
=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.
Complements (inverts) a logical value.
NOT(តម្លៃតក្ក)
LogicalValue គឺជាតម្លៃដែលត្រូវបង្គត់ ។
=NOT(A). If A=TRUE then NOT(A) នឹងចេញ FALSE ។
ត្រឡប់ ពិត បើមានអាគុយម៉ង់យ៉ាងហោចណាស់មួយ ពិត ។ អនុគមន៍នេះត្រឡប់តម្លៃ មិនពិត បើអាគុយម៉ង់ទាំងអស់មានតម្លៃតក្ក មិនពិត ។
អាគុយម៉ង់ជាកន្សោមតក្កវិជ្ជាខ្លួនឯង (TRUE, 1<5, 2+3=7, B8<10) ដែលត្រឡប់តម្លៃតក្កវិជ្ជា ឬជាអារេ (A1:C3) ដែលមានតម្លៃតក្កវិជ្ជា ។
OR(Logical 1 [; Logical 2 [; … [; Logical 255]]])
តម្លៃតក្កនៃធាតុបញ្ចូល 12<11; 13>22 និង 45=45 នឹងត្រូវបានពិនិត្យ ។
=OR(12<11;13>22;45=45) ត្រឡប់ TRUE ។
=OR(FALSE();TRUE()) returns TRUE.
The array formula {=OR(B1:B10;C1:C10)} yields a one-dimensional value of FALSE when all components of B1:B10 and C1:C10 are FALSE. The array expression above does not produce the logical OR per element, and thus does not produce an array of logical values. To compute a logical OR of arrays per element use the + operator in array context. In the example, enter {=B1:B10+C1:C10}.
តម្លៃតក្កត្រូវបានកំណត់ជា ពិត ។ អនុគមន៍ TRUE() មិនទាមទារទេ ហើយតែងតែត្រឡប់តម្លៃតក្ក ពិត ។
TRUE()
បើ A=TRUE និង B=FALSE ឧទាហរណ៍ខាងក្រោមនឹងលេចឡើង ៖
=AND(A;B) ត្រឡប់ FALSE
=OR(A;B) ត្រឡប់ TRUE
=NOT(AND(A;B)) ត្រឡប់ TRUE
ត្រឡប់តម្លៃពិតប្រសិនបើលេខសេសរបស់អាគុយម៉ង់វាយតម្លៃថា TRUE ។
អាគុយម៉ង់គឺជាកន្សោមតក្កវិជ្ជារបស់ខ្លួនវា (TRUE, 1<5, 2+3=7, B8<10) ដែលត្រឡប់តម្លៃតក្កវិជ្ជា ឬអារេ (A1:C3) ដែលមានតម្លៃតក្កវិជ្ជា។
XOR(Logical 1 [; Logical 2 [; … [; Logical 255]]])
=XOR(TRUE();TRUE()) returns FALSE
=XOR(TRUE();TRUE();TRUE()) returns TRUE
=XOR(FALSE();TRUE()) returns TRUE