SheetRocks
Documentation/Formulas/MID

MID

Returns a substring from the middle of a given string.

Syntax

MID(string, start_num, num_chars)

Arguments

Argument Description Required
string The string from which to extract characters. Required
start_num The position of the first character to extract (1-based). Required
num_chars The number of characters to extract. Required

Examples

Extract substring from middle

=MID("Hello World", 7, 5)
Result ⇒ World

Extract from beginning

=MID("Hello", 1, 3)
Result ⇒ Hel

Extract from cell text

=MID(A1, 5, 3)
Result ⇒ 123
A
1 Data123End

Related Functions

Other Text functions:


← Back to Formula Reference