MIDB Function Explained

The MIDB function in Microsoft Excel returns a specific number of characters from a text string, starting at the position you specify, and based on the number of bytes you specify. It takes three arguments: text, start_num, and num_bytes. text is the text string from which you want to extract characters. start_num is the position of the first character you want to extract in the text string. num_bytes is the number of characters you want to extract.

MIDB Function Syntax

MIDB(text, start_num, num_chars)

  • text: The text string from which you want to extract the characters.
  • start_num: The position of the first character you want to extract in the text string.
  • num_chars: The number of characters you want to extract.