MID function
Returns a specific number of characters from a text string starting at the position you specify
Returns a specific number of characters from a text string starting at the position you specify.
Syntax
MID(text, start_num, num_chars)Square brackets indicate optional arguments.
Arguments
| Argument | Required | Meaning |
|---|---|---|
| text | Yes | The text string containing the characters you want to extract."Univer" |
| start_num | Yes | The position of the first character you want to extract in text.1 |
| num_chars | Yes | Specifies the number of characters you want MID to extract.3 |
Try MID
Extract three characters from position two
=MID(B2,2,3)Extract three characters from position two. The result is checked against a separately authored expected value for the supplied table. You can edit the data to explore the rule.
Inspect the current formula
Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.
Read the formula, one argument at a time
Explore the written function calls and their inputs. The calculation result belongs to the complete formula.
MID · top-level call
=MID(B2,2,3)Follow the cells behind a result
Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.
The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.
Practice a complete task
Reference and compatibility
Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.