FormulaCamp
Completed
← All functions
Text

MID

n characters starting at a position.

Syntax

MID(text, start_num, num_chars)

Example: =MID(A2,4,3)

Available in: All versions

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in D2: =MID(A5,5,4)

Example spreadsheet for MID
ABCD
1TextOtherResult
2Alice Johnsonalice johnson2026
3[email protected][email protected]
4 extra spaces
5SKU-2026-0415
6iced coffee, tea, sugar
7Order 417 shipped
Result in D2: 2026
Practice this in a lesson: Splitting Strings

More in Text