๋ ผ๋ฆฌ ํจ์
This category contains the Logical functions.
Handling non-logical arguments in 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.
AND
๋ชจ๋ ์ธ์๊ฐ TRUE์ด๋ฉด TRUE๋ฅผ ๊ตฌํฉ๋๋ค. ์์ ์ค ํ๋๊ฐ FALSE์ด๋ฉด ์ด ํจ์๋ FALSE ๊ฐ์ ๊ตฌํฉ๋๋ค.
์ธ์๋ ๋ ผ๋ฆฌ ๊ฐ์ ๊ตฌํ๋ ๋ ผ๋ฆฌ์ ์์ฒด(TRUE, 1<5, 2+3=7, B8<10)์ด๊ฑฐ๋ ๋ ผ๋ฆฌ ๊ฐ์ ํฌํจํ๋ ๋ฐฐ์ด (A1:C3)์ ๋๋ค.
๊ตฌ๋ฌธ
AND(๋ ผ๋ฆฌ๊ฐ1; ๋ ผ๋ฆฌ๊ฐ2 ... ๋ ผ๋ฆฌ๊ฐ30)
LogicalValue1; LogicalValue2 ...LogicalValue30 are conditions to be checked. All conditions can be either TRUE or FALSE. If a range is entered as a parameter, the function uses all values of the range. The result is TRUE if the logical value in all cells within the cell range is TRUE.
์
12<13, 14>12 ๋ฐ 7<6 ํญ๋ชฉ์ ๋ ผ๋ฆฌ ๊ฐ์ด ๊ฒ์ฌ๋ฉ๋๋ค.
=AND(12<13;14>12;7<6)๋ FALSE ๊ฐ์ ๋ฐํํฉ๋๋ค.
=AND (FALSE;TRUE)๋ FALSE๋ฅผ ๋ฐํํฉ๋๋ค.
FALSE
๋ ผ๋ฆฌ๊ฐ FALSE๋ฅผ ๊ตฌํฉ๋๋ค. FALSE() ํจ์๋ ์ธ์๊ฐ ํ์ํ์ง ์์ผ๋ฉฐ ํญ์ ๋ ผ๋ฆฌ๊ฐ FALSE๋ฅผ ๊ตฌํฉ๋๋ค.
๊ตฌ๋ฌธ
FALSE()
์
=FALSE()๋ FALSE๋ฅผ ๋ฐํํฉ๋๋ค.
=NOT(FALSE())๋ TRUE ๊ฐ์ ๋ฐํํฉ๋๋ค.
IF
์ํํ ๋ ผ๋ฆฌ ๊ฒ์ฌ๋ฅผ ์ง์ ํฉ๋๋ค.
๊ตฌ๋ฌธ
IF(์กฐ๊ฑด๋ฌธ; ์ฐธ๊ฐ; ๊ฑฐ์ง๊ฐ)
ํ ์คํธ๋ TRUE ๋๋ FALSE๊ฐ ๋ ์ ์๋ ์์ ๊ฐ ๋๋ ์์ ๋๋ค.
์ฐธ๊ฐ์ ์กฐ๊ฑด๋ฌธ์ด TRUE(์ฐธ)์ผ ๋ ์ ์ ๋ฐํํ ๊ฐ์ ๋๋ค(์ ํ ์ฌํญ).
๊ฑฐ์ง๊ฐ์ ์กฐ๊ฑด๋ฌธ์ด 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.
์
๋ง์ผ A1 ์ ์ ๊ฐ์ด 5๋ณด๋ค ํฌ๋ค๋ฉด, =IF(A1>5;100;"๊ฐ์ด ๋๋ฌด ์์ต๋๋ค")๋ ํจ์๊ฐ ์๋ ์ ์ 100์ ์ ๋ ฅํฉ๋๋ค. ๋ง์ผ A1์ ์ ๊ฐ์ด 5๋ณด๋ค ์๊ฑฐ๋ ๊ฐ๋ค๋ฉด ์ง์ ๋ โ๊ฐ์ด ๋๋ฌด ์์ต๋๋คโ(๋ฐ์ดํ ์ ์ธ) ๋ฌธ์ฅ์ด ์ ๋ ฅ๋ฉ๋๋ค.
NOT
๋ณํํ ๋ ผ๋ฆฌ๊ฐ์ ์ฑ์๋ฃ์ผ์ญ์์.
๊ตฌ๋ฌธ
NOT(๋ ผ๋ฆฌ๊ฐ)
๋ ผ๋ฆฌ๊ฐ์ ์ด๋ ํ ๊ฐ์ด๋ผ๋ ํฌํจ๋์ด์ผ ํฉ๋๋ค.
์
=NOT(A)์ ์ํ์์์ ์ญ๊ณผ ๊ฐ์ต๋๋ค. A=TRUE(์ฐธ)์ผ ๋ NOT(A)๋ FALSE(๊ฑฐ์ง)๋ก ํ๊ฐ๋ฉ๋๋ค.
OR
์ต์ํ ํ๋ ์ด์์ ์ธ์๊ฐ TRUE์ด๋ฉด TRUE๋ฅผ ๊ตฌํฉ๋๋ค. ๋ชจ๋ ์ธ์๊ฐ ๋ ผ๋ฆฌ๊ฐ FALSE๋ฅผ ๊ฐ์ง๋ฉด FALSE ๊ฐ์ ๊ตฌํฉ๋๋ค
์ธ์๋ ๋ ผ๋ฆฌ ๊ฐ์ ๊ตฌํ๋ ๋ ผ๋ฆฌ์ ์์ฒด(TRUE, 1<5, 2+3=7, B8<10)์ด๊ฑฐ๋ ๋ ผ๋ฆฌ ๊ฐ์ ํฌํจํ๋ ๋ฐฐ์ด (A1:C3)์ ๋๋ค.
๊ตฌ๋ฌธ
OR(๋ ผ๋ฆฌ๊ฐ1; ๋ ผ๋ฆฌ๊ฐ2 ...๋ ผ๋ฆฌ๊ฐ30)
LogicalValue1; LogicalValue2 ...LogicalValue30 are conditions to be checked. All conditions can be either TRUE or FALSE. If a range is entered as a parameter, the function uses all values of the range.
์
12<11; 13>22 ๋ฐ 45=45 ํญ๋ชฉ์ ๋ ผ๋ฆฌ ๊ฐ์ด ๊ฒ์ฌ๋ฉ๋๋ค.
=OR(12<11;13>22;45=45)๋ TRUE ๊ฐ์ ๋ฐํํฉ๋๋ค.
=OR(FALSE;TRUE)์ TRUE ๊ฐ์ ๋ฐํํฉ๋๋ค.
TRUE
๋ ผ๋ฆฌ ๊ฐ์ TRUE๋ก ์ค์ ๋ฉ๋๋ค. TRUE() ํจ์๋ ์ธ์๊ฐ ํ์ํ์ง ์์ผ๋ฉฐ ํญ์ ๋ ผ๋ฆฌ๊ฐ TRUE๋ฅผ ๊ตฌํฉ๋๋ค.
๊ตฌ๋ฌธ
TRUE()
์
A=TRUE ๋ฐ B=FALSE์ด๋ฉด ๋ค์ ์๊ฐ ๋ํ๋ฉ๋๋ค.
=AND(A;B)๋ FALSE๋ฅผ ๋ฐํํฉ๋๋ค.
=OR(A;B)๋ TRUE๋ฅผ ๋ฐํํฉ๋๋ค.
=NOT(AND(A;B))๋ TRUE ๊ฐ์ ๋ฐํํฉ๋๋ค.
XOR
Returns true if an odd number of arguments evaluates to TRUE.
์ธ์๋ ๋ ผ๋ฆฌ ๊ฐ์ ๊ตฌํ๋ ๋ ผ๋ฆฌ์ ์์ฒด(TRUE, 1<5, 2+3=7, B8<10)์ด๊ฑฐ๋ ๋ ผ๋ฆฌ ๊ฐ์ ํฌํจํ๋ ๋ฐฐ์ด (A1:C3)์ ๋๋ค.
๊ตฌ๋ฌธ
OR(๋ ผ๋ฆฌ๊ฐ1; ๋ ผ๋ฆฌ๊ฐ2 ...๋ ผ๋ฆฌ๊ฐ30)
์
=AND (FALSE;TRUE)๋ FALSE๋ฅผ ๋ฐํํฉ๋๋ค.
=OR(FALSE;TRUE)์ TRUE ๊ฐ์ ๋ฐํํฉ๋๋ค.
=OR(FALSE;TRUE)์ TRUE ๊ฐ์ ๋ฐํํฉ๋๋ค.