PART -2
👉 LOGICAL FUNCTION
1. IF FUNCTION
Summary
The IF function can perform a logical test and return one value for a TRUE result, and another for a FALSE result. For example, to "pass" scores above 70: =IF(A1>70,"Pass","Fail"). More than one condition can be tested by nesting IF functions. The IF function can be combined with logical functions like AND and OR.
Purpose
Test for a specific condition
Return value
The values you supply for TRUE or FALSE
Syntax
=IF (logical_test, [value_if_true], [value_if_false])
Arguments
2. TRUE FUNCTION
Summary
The Excel TRUE function returns the value TRUE. TRUE is classified as a compatibility function, and not needed in most cases. It is equivalent to using the Boolean value TRUE directly in a formula.
Purpose
Generate the logical value TRUE
Return value
The logical value TRUE
Syntax
=TRUE ()
Arguments
Usage notes
The TRUE function is provided for compatibility with other spreadsheet applications and there is no need to use it in standard situations.
If you want to enter TRUE, or provide TRUE as a result in a formula, you can just use enter the word TRUE directly into a cell or formula and Excel will interpret this as the logical value TRUE. For example, these formulas are functionally identical:
Also note that logical expressions themselves will automatically generate TRUE and FALSE results. For example, the formula in cell C7 is:
=B7>90
2. FALSE FUNCTION
SummaryThe Excel FALSE function returns the value FALSE. FALSE is classified as a compatibility function, and not needed in most cases. It is equivalent to using the Boolean value FALSE directly in a formula.PurposeGenerate the logical value FALSEReturn valueThe logical value FALSESyntax=FALSE ()ArgumentsUsage notesThe FALSE function takes no arguments and generates the boolean value FALSE.For example, to return FALSE if if the value in A1 < 0, use the formula:=IF(A1<0, FALSE())Note that you can also just use enter the word FALSE directly into a cell or formula and Excel will interpret this as the logical value FALSE. For example, these formulas are functionally identical:Both formulas return FALSE if the value in A1 < 0.Microsoft labels the FALSE function a "compatibility function", in Excel for compatibility with other spreadsheet applications.
Comments
Post a Comment