MID - Returning a Substring from the Specified Position of a Text String

  • Last update: May 30, 2025
  • Overview

    Syntax

    MID(Text, Starting position, Character count)

    Returns a specific number of characters from a text string based on the number and position you specify.

    Parameter 1

    Text

    The text string containing the characters to be extracted

    Parameter 2

    Starting position

    The starting point to extract characters. The starting position is 1 at the first character in text, 2 at the second character, and so on.

    Parameter 3

    Character count

    The number of characters to be extracted

    Notes

    Notes

    • The MID() function supports three parameters. The first one is of the text type and the other two are of the numeric type.

    • If the value of Starting position is greater than the length of text, the MID() function returns "" (empty text).

    • If the value of Starting position is less than the length of text, but the value of Starting position plus character count is greater than the length of the text, the MID() function returns the characters up to the end of text.

    • If the value of Starting position is less than 1, the MID() function returns no result.

    • If the character count is less than 0, the MID() function returns no result.

    • If any parameter value is NULL, the result is NULL.

    Example

    FormulaResultNote

    MID("Finemoresoftware",9,8)

    software

    /

    附件列表


    主题: Data Development - Scheduled Task
    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