OR

  • Last update:December 29, 2024
  • Overview

    If any parameter logical value is TRUE, the function will return TRUE. Only when all parameter logical values are FALSE will the function return FALSE.

    Syntax

    OR(Logical1,Logical2,...)

    If all parameter values are false, returns 0. If any parameter value is true, returns 1.

    Parameter 1

    Logical1,Logical2,...

    Parameter

    Notes

    The parameter must be of the boolean type or numerical type.

    For true(TRUE) and false(FALSE) in the parameter, both capital and lowercase are supported and marked in blue.

    Example

    Regional Data Analysis.xlsx

    Use Payback Amount and Contract Amount in the sample data. Filter products with the contract amount larger than 500,000 or payback amount larger than 100,000.

    Use the Filter function. Click Filter, click the dropdown icon of Add Formula, and select OR Formula. Click Please Edit Formula, enter OR(Contract Amount > 500000,Payback Amount > 100000) in the pop-up box, and click OK. The data that meets the condition is filtered, as shown in the following figure. 

    image 5.png

    After the filter is completed, the following figure shows the effect.

    image 7.png

    The following table describes more examples.

    Formula

    Result

    Note

    OR(1+7=9,5+7=11)

    0


    OR(1+7=8,5+7=11)

    1



    附件列表


    主题: Advanced Data Analysis
    Previous
    Next
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    9s后關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy