<< Go back to all functions

MID

The MID function in Google Sheets is a helpful tool for extracting a specific segment of a string. Whether you need to extract a word, a phrase, or a combination of characters, the MID function simplifies the task. Follow our step-by-step tutorial to learn how to use this function effectively.

Function Syntax and Parameters

Syntax: MID(string, starting_at, extract_length)

Parameters:

  • string: The text from which you want to extract the segment.
  • starting_at: The position of the first character you want to extract.
  • extract_length: The number of characters you want to extract.

Step-by-Step Tutorial

  1. Extracting a segment from a string:
    • Example: =MID("Hello World!", 7, 5)
    • Result: "World"

Use Cases and Scenarios

  1. Data Cleanup: Extract specific parts of a messy data string.
  2. Text Manipulation: Retrieve certain words or phrases from a long text.
  3. Data Analysis: Extract key information from a string for further analysis.

Related Articles