List of Excel Logical Functions with Syntax and Arguments

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 FunctionDescriptionSyntax with ArgumentsSyntax onlyArguments only
1ANDCheck if all conditions in a test are TRUE=AND (logical1logical1 [required]: The first logical condition., [logical2logical2 [optional]: Additional logical condition.], ...)=AND (logical1, [logical2], ...)
  • logical1 (required): The first logical condition.
  • logical2 (optional): Additional logical condition.
2FALSEReturns the logical value FALSE=FALSE()=FALSE()
    3IFMake 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]
    • logical_test (required): Logical test/ condition.
    • value_if_true (optional): Value if condition is met.
    • value_if_false (optional): Value if condition is not met.
    4IFERRORReturns 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)
    • value_if_error (required): The value to return if the formula evaluates to an error.
    • value (required): The argument that is checked for an error.
    5IFNAReturns 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)
    • value (required): The argument that is checked for the #N/A error value.
    • value_if_na (required): The value to return if the formula evaluates to the #N/A error value.
    6IFSChecks 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])
    • logical_test1 (required): Logical test/ condition.
    • value_if_true1 (required): Value if condition is met.
    • logical_test2, value_if_true2 (optional): Additioanl logical tests and values if condition is met
    7NOTReturns the opposite of a logical value=NOT(logicallogical [required]: Logical expression to check for NOT condition)=NOT(logical)
    • logical (required): Logical expression to check for NOT condition
    8ORCheck if if any conditions in a test are TRUE=OR(logical1logical1 [required]: The first logical condition., [logical2logical2 [optional]: Additional logical condition.])=OR(logical1, [logical2])
    • logical1 (required): The first logical condition.
    • logical2 (optional): Additional logical condition.
    9SWITCHEvaluates 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]
    • expression (required): Expression (such as a number, date or some text) that will be compared against values
    • value1 (required): First value that will be compared against expression.
    • result1 (required): First result to be returned when the corresponding value matches expression
    • default_or_value2, result2 (optional): Optional default value if no matches are found, or additional optional values/ result
    10TRUEReturns the logical value TRUE=TRUE()=TRUE()
      11XORReturns a logical Exclusive Or of all arguments=XOR(logical1logical1 [required]: The first logical condition., [logical2logical2 [optional]: Additional logical condition.], ...)=XOR(logical1, [logical2], ...)
      • logical1 (required): The first logical condition.
      • logical2 (optional): Additional logical condition.

       

      0 Comments for '(Excel) - List of Excel Logical Functions with Syntax and Arguments'   

       
      Email me replies   

      Please kindly review and accept Terms of Use and Cookie & Policy Policy