1. Home
  2. Functions
  3. Text
  4. MID

MID function

Returns characters from the middle of a text, given a start position and a length.

Syntax

=MID(text, start_num, num_chars)

Arguments

ArgumentRequiredDescription
textRequiredThe text
start_numRequiredPosition of the first character to take, from 1
num_charsRequiredHow many characters to take

How to use MID

MID takes 3 required arguments. Type =MID( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=MID("Fluid Flow", 1, 5)Result "Fluid"
=MID("Fluid Flow", 7, 20)Result "Flow"
=MID("Fluid Flow", 20, 5)Result "" (empty text)

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.