ENDWITH - Determining Whether the Given String Ends with the Specified Substring

  • Last update:July 25, 2023
  • Overview

    Grammar

    ENDWITH(str1, str2)

    Determines whether str1 ends with str2.

    Parameter 1

    str1

    Character string

    Parameter 2

    str2

    Character string

    Notes

    • Both str1 and str2 are case-sensitive.

    • The function supports any two parameters.

    • The ENDWITH function can only read texts.

    Example

    For example, if you want to determine whether the strings in the province column end with "Autonomous Region", you can enter the formula ENDWITH(Province,"Autonomous Region"), as shown in the following figure.

    ENDWITH1.png

    Drag the field "Province" into Dimensions and "Autonomous Region or Not" into Indicators. The function returns 1 for autonomous regions and returns 0 otherwise, as shown in the following figure.

    ENDWITH2.png

    More examples:

    FormulaResultNotes
    ENDWITH("FineReport","Report")1-
    ENDWITH("FineReport","Fine")0-
    ENDWITH("FineReport","report")0-


    附件列表


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

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

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

    不再提示

    10s後關閉

    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