INDEXOF - Returning the Character at a Specified Position in Text

  • Last update:August 22, 2023
  • Overview

    Grammar

    INDEXOF(str1,index)

    Returns the character in str1 at the position specified by index.

    Parameter 1

    str1

    Character string 1

    Parameter 2

    index

    Position of the returned character.

    Notes

    • The value of index starts from 0.

    • The INDEXOF function returns text-type data.

    • The function supports two parameters, between which the first is of any type and the second is a number.

    Example

    For example, if you want to filter out the Store Code field that end with 3, the INDEXOF function can be used.

    INDEXOF1.png

    Choose Filter > Add Formula, and enter INDEX(Store Code,6)="3", as shown in the following figure.


    iconNote:
    The INDEXOF function returns text-type data, so the value 3 in the filter formula needs to be enclosed in double quotes as the text type.



    INDEXOF2.png

    More examples:

    FormulaResultNotes
    INDEXOF("FineBI",0)F
    INDEXOF("FineBI",2)n
    INDEXOF("FineBI",5)I
    INDEXOF(["a","b","c"], 1)b



    附件列表


    主题: 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