This reference table lists all officially documented Logical Functions. It is based on the Excel Help documentation and linked in each row when clicking on the function name. Export the table and/or display additional columns via the symbols to the top right of the table. Please report errors or inconsistencies via the comment function at the bottom of this page. Also check the main table with List of all Excel Functions.
# | Excel Function | Description | Syntax with Arguments | Syntax only | Arguments only |
---|---|---|---|---|---|
1 | AND | Check if all conditions in a test are TRUE | =AND (logical1logical1 [required]: The first logical condition., [logical2logical2 [optional]: Additional logical condition.], ...) | =AND (logical1, [logical2], ...) |
|
2 | FALSE | Returns the logical value FALSE | =FALSE() | =FALSE() | |
3 | IF | Make logical comparisons between a value and what you expect | =IF(logical_testlogical_test [required]: Logical test/ condition.,[value_if_truevalue_if_true [optional]: Value if condition is met.], [value_if_falsevalue_if_false [optional]: Value if condition is not met.] | =IF(logical_test,[value_if_true], [value_if_false] |
|
4 | IFERROR | Returns a value you specify if a formula evaluates to an error; otherwise, it returns the result of the formula | =IFERROR(valuevalue [required]: The argument that is checked for an error., value_if_errorvalue_if_error [required]: The value to return if the formula evaluates to an error.) | =IFERROR(value, value_if_error) |
|
5 | IFNA | Returns the value specified if a formula returns the #N/A error value; otherwise it returns the result of the formula | =IFNA(valuevalue [required]: The argument that is checked for the #N/A error value., value_if_navalue_if_na [required]: The value to return if the formula evaluates to the #N/A error value.) | =IFNA(value, value_if_na) |
|
6 | IFS | Checks whether one or more conditions are met, and returns a value that corresponds to the first TRUE condition | ==ifs(logical_test1logical_test1 [required]: Logical test/ condition., value_if_true1value_if_true1 [required]: Value if condition is met., [logical_test2, value_if_true2logical_test2, value_if_true2 [optional]: Additioanl logical tests and values if condition is met]) | ==ifs(logical_test1, value_if_true1, [logical_test2, value_if_true2]) |
|
7 | NOT | Returns the opposite of a logical value | =NOT(logicallogical [required]: Logical expression to check for NOT condition) | =NOT(logical) |
|
8 | OR | Check if if any conditions in a test are TRUE | =OR(logical1logical1 [required]: The first logical condition., [logical2logical2 [optional]: Additional logical condition.]) | =OR(logical1, [logical2]) |
|
9 | SWITCH | Evaluates one expression against a list of values, and returns the result corresponding to the first matching value. | =SWITCH(expressionexpression [required]: Expression (such as a number, date or some text) that will be compared against values, value1value1 [required]: First value that will be compared against expression., result1result1 [required]: First result to be returned when the corresponding value matches expression, [default_or_value2, result2default_or_value2, result2 [optional]: Optional default value if no matches are found, or additional optional values/ result] | =SWITCH(expression, value1, result1, [default_or_value2, result2] |
|
10 | TRUE | Returns the logical value TRUE | =TRUE() | =TRUE() | |
11 | XOR | Returns a logical Exclusive Or of all arguments | =XOR(logical1logical1 [required]: The first logical condition., [logical2logical2 [optional]: Additional logical condition.], ...) | =XOR(logical1, [logical2], ...) |
|
Advertising for Consideration:
Ads for Consideration:
Please kindly review and accept Terms of Use and Cookie & Policy Policy