Skip to content

MID

TextExcel 2007

A run of characters from the middle of a string.

Syntax

MID(text, start_num, num_chars)

Arguments

text
The string.
start_num
Position of the first character (1-based).
num_chars
How many characters to return.

Examples

=MID("DL-05-2019-1234567", 4, 2)

05The RTO code.

Related functions

More Text functions

← All 510 functions

Syntax follows Microsoft’s documentation. Examples are written to be pasted into a cell and checked. Argument separators may be ; in your locale. The AI explainer runs on a free community model — verify anything important.