MID

Returns a specific number of characters from a text string, starting at the position you specify.

Syntax

MID(text,start_num,num_chars)

Text   is the text string containing the characters you want to extract.

Start_num   is the position of the first character you want to extract in text. The first character in text has start_num 1, and so on.

Num_chars   specifies how many characters to return from text. If num_chars is negative, MID returns the #VALUE! error value.

Examples

MID("Fluid Flow", 1, 5) equals "Fluid"

MID("Fluid Flow", 7, 20) equals "Flow"

MID("1234", 5, 5) equals "" (empty text)

Also see the examples for CODE and FIND.