Extracting Content After Repeated Specified Characters

  • Last update:January 29, 2026
  • Overview

    Expected Effect

    You may need to extract characters at specified positions following a particular character that appears multiple times within a field value.

    For instance, you may need to extract the substrings after the last underscores (_) within variable-length strings, as shown in the following figure.


    Alternatively, you may need to extract the values of the field B in the A|B|C field. For example, you may need to extract all educational background information, as shown in the following figure.


    Implementation Method

    You can extract the character(s) either through the one-click splitting by separator or through a combination of functions such as INDEXOF, FIND, MID, SUBSTITUTE, and RIGHT.

    Extracting the Character(s) After the Last Specified Character

    Example data: Extracting Content After Repeated Specified Characters.xlsx

    You can upload the example data to FineBI, as shown in the following figure.

    Creating an Analysis Subject

    For details about how to create an analysis subject, see Creating an Analysis Subject.

    Extracting Specified Characters

    Click Formula Column, set Name of the Added Formula Column to Characters After the Last Underscore (_), enter the formula INDEXOF(SPLIT(Field,"_"),LEN(SPLIT(Field,"_"))-1), and click OK, as shown in the following figure. INDEXOF(SPLIT(a_b_c,"_"),LEN(SPLIT(a_b_c,"_"))-1)  

    The following table describes the formula in detail.

    Formula

    Description

    Result

    SPLIT(Field,"_"

    The formula is used to split field values into groups according to the underscore(_).

    Before splitting: a_b_c

    After splitting: a,b,c

    LEN(SPLIT(Field,"_"))-1

    The formula is used to calculate the number of characters in the array after the field is split by underscores (_) and then subtract 1.

    For example, LEN(SPLIT(a_b_c,"_"))-1 returns 2.

    INDEXOF(SPLIT(Field,"_"),LEN(SPLIT(Field,"_"))-1)

    The formula returns the last character of the array after the array is split by the SPLIT function.

    For example,INDEXOF(SPLIT(a_b_c,"_"),LEN(SPLIT(a_b_c,"_"))-1)    returns c.

    Method Three

    1. Click Formula Column, set Name of the Added Formula Column to Counting the Characters After the Array is Split by the Underscores, enter the formulaLEN(SPLIT(Field,"_")), and click OK. For example, LEN(SPLIT(a_b_c,"_")) returns 3, as shown in the following figure.

    2. Click Formula Column, set Name of the Added Formula Column to Replacing the Last Underscore with a Hyphen, enter the formula SUBSTITUTE(Field,"_","-",LEN(SPLIT(Field,"_"))-1), and click OK, as shown in the following figure.


    3. Click Formula Column, set Name of the Added Formula Column to Position of the Hyphen Starting from the First Character, enter the formula FIND("-",SUBSTITUTE(Field,"_","-",LEN(SPLIT(Field,"_"))-1),1), and click OK, as shown in the following figure.

    4. Click Formula Column, set Name of the Added Formula Column to Counting the Characters After the Last Hyphen, enter the formula LEN(Field)-FIND("-",SUBSTITUTE(Field,"_","-",LEN(SPLIT(Field,"_"))-1),1), and click OK, as shown in the following figure.


    5. Click Formula Column, set Name of the Added Formula Column to Extracting Specified Characters, enter the formula RIGHT(Field,LEN(Field)-FIND("-",SUBSTITUTE(Field,"_","-",LEN(SPLIT(Field,"_"))-1),1)), and click OK, as shown in the following figure.

    Effect Display

    For details, see the "Expected Effect" section.

    Extracting the Values of the Field B in the A|B|C Field

    iconNote:
    The length of each value of field B is inconsistent.

    Example data: Recruitment Information.xlsx

    Upload the example data to FineBI, as shown in the following figure.

    Creating an Analysis Subject

    For details about how to create an analysis subject, see Creating an Analysis Subject.

    Extracting Specified Characters

    Method One

    Choose More > Split Field on the data editing page to enter the function page, as shown in the following figure.

    Split the field by the separator (|) and enter 2 in Split Result, as shown in the following figure.

    Method Two

    Click Formula Column, set Name of the Added Formula Column to Extracting the Middle Characters, enter the formula INDEXOF(SPLIT(RegionEducationCount,"|"),1), and click OK, as shown in the following figure.

    The following table describes the formula in detail.

    Formula

    Description

    SPLIT(RegionEducationCount,"|")

    The formula is used to split the values of RegionEducationCount into three separate arrays by the separator (|).

    For example, SPLIT(Shenzhen|Bachelor's degree|5 openings,"|") returns Shenzhen,Bachelor's degree,5 openings.

    INDEXOF(SPLIT(RegionEducationCount,"|"),1))

    The formula is used to return the second array after splitting.

    For example,  INDEXOF(Shenzhen,Bachelor's degree,5 openings,1)) returns Bachelor's degree.

    Effect Display

    For details, see the "Expected Effect" section.

    For details about extracting specific field content, see Data Merging and Splitting.

    附件列表


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