Removing Certain Characters in a String

  • Last update:January 29, 2026
  • Overview

    Expected Effect

    Sometimes, you need to remove unnecessary characters from the data.

    For example, you can remove the square brackets ([]) and the content inside them from a table, as shown in the following figure.


    Implementation Method

    First, you can use the FIND function to locate the positions of "[" and "]" within the string, then use the REPLACE function to substitute a specified portion of the string with empty values based on the determined character positions.

    Procedure

    You can download the example data Contract Table.xlsx

    Creating an Analysis Subject

    Create an analysis subject and upload the example data with all fields selected by default, as shown in the following figure.

    1.png

    Adding a Column

    Click Formula Column, set Name of Added Formula Column to Ranking One, enter the formula REPLACE(Ranking,FIND("[",Ranking,1),(FIND("]",Ranking,1)-FIND("[",Ranking,1)+1),""), and click OK, as shown in the following figure.

    2.png

    Two functions are used in this formula. For details, see Overview of Text Functions.

    Formula description

    1. REPLACE

    You can use REPLACE(old_text, start_num, num_chars, new_text) to replace a specified number of characters in a string with new characters.

    For example, REPLACE("0123456789",5,4,"*") returns 0123*89, replacing the 4-character substring starting at position 5 in 0123456789 with *.

    2: FIND

    You can use FIND(find_text, within_text, start_num) to return the index at which the specified substring (find_text) first appears within the string (within_text), starting from the specified index (start_num).

    For example, FIND("i","Information") returns 9.

    Effect Display

    After you click OK, the square brackets ([]) and the content inside them in the new column are not displayed, as shown in the following figure.

    3.png

    附件列表


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