Skip to main content
You are viewing help content for pre-release software. This document and the features it describes are subject to change.
All docs
V26.2
  • Logical Functions in Formulas

    • 2 minutes to read

    This document describes logical functions supported by DevExpress Spreadsheet Document API.

    Name Description Syntax
    AND Returns TRUE if all arguments are TRUE; returns FALSE if one or more arguments evaluate to FALSE. AND(logical1, [logical2], …)
    FALSE Returns the logical value FALSE. FALSE()
    IF Checks a condition and returns one result if the condition is TRUE and another result if the condition is FALSE. IF(logical_test, [value_if_true], [value_if_false])
    IFS Checks one or more conditions and returns a value that corresponds to the first TRUE condition. If no conditions are TRUE, the function returns the #N/A error. IFS([logical_test, value_if_true, ,…)
    IFERROR Returns a value that you specify if a formula evaluates to an error; otherwise, returns the formula result. IFERROR(value, value_if_error)
    IFNA Returns a value that you specify if a formula returns the #N/A error value; otherwise, returns the formula result. IFNA(value, value_if_na)
    NOT Reverses the logical value of the argument. NOT(logical)
    OR Returns TRUE if at least one argument is TRUE; returns FALSE if all arguments are FALSE. OR(logical1, [logical2], …)
    SWITCH Evaluates an expression against a list of values and returns the result that corresponds to the first matching value. You can specify a default value that the function returns if no value matches. If no value matches and you do not specify a default value, the function returns the #N/A error. SWITCH(expression, value1, result1, default_or_value2, result2,…)
    TRUE Returns the logical value TRUE. TRUE()
    XOR Returns a logical exclusive OR of all arguments. XOR(logical1, [logical2],…)