FormulaCraft

MID

MID returns a substring beginning at a given start position and running for a given number of characters. It is the tool for pulling a segment out of a structured code.

Excel
=MID(A2, 5, 3)
Google Sheets
=MID(A2, 5, 3)

Verified example

Computed by a real spreadsheet engine on the sample data below.

SKU
PRD-ABC-01

=MID(A2, 5, 3)ABC

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1A2 holds the text.
  2. 25 is the start position (the 5th character).
  3. 33 is the length; "PRD-ABC-01" returns "ABC".

Need a version for your data?

Try: “Pull 3 characters starting at position 5 from the SKU in A2

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: