1. Home
  2. Functions
  3. Text
  4. MIDB
TextCompatibility

MIDB function

Same as MID, counting bytes; without a double byte language set as default each character counts as one byte.

Syntax

=MIDB(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 MIDB

MIDB is kept so older workbooks keep working. It calculates the same way as MID, which is the name to use in new formulas.

MIDB takes 3 required arguments. Type =MIDB( 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.