Get help

Help center

Guides and answers

Contact support

Write to our team

Sign in to

Workflows

Build processes with your team

Automations

Connect files and automate tasks

One system, four parts

AI agents

Virtual Employees that work 24/7

Automations

Connect files and automate tasks

Workflows

Build processes with your team

Data Space

Trusted data sharing and control

Solutions by department

Finance

Reports, budgets, and reconciliations

Inventory and manufacturing

Stock, orders, and production in one view

HR

Timesheets, attendance, and reviews

Project management

Status and workload across projects

Sales and CRM

Leads and deals kept up to date

Education

Student records and school data

Finance

Turn manual finance work into reports that update themselves.

What Finance teams automate

  • Track payables and receivables
  • Build cash flow statements
  • Compare budget against actuals

Inventory and manufacturing

See stock levels and automate ordering.

What inventory and manufacturing teams automate

  • Track inventory across multiple sites
  • Connect sales, purchasing, and warehouse data
  • Link a barcode scanner to your sheet

HR

Run recruitment, attendance, and OKR tracking from your sheets.

What HR teams automate

  • Track recruitment and onboarding
  • Record team OKRs and results
  • Track check-ins, check-outs, and leave

Project management

Assign tasks and track hours without manual updates.

What project teams automate

  • Assign tasks and track status changes
  • Estimate effort and log hours worked
  • Track milestones across projects

Sales and CRM

Track leads and sales performance with automated reports.

What sales teams automate

  • Track and convert leads
  • Set sales goals and track team metrics
  • Monitor sales KPIs on dashboards

Education

Automate attendance, grades, and school purchasing.

What schools automate

  • Track attendance and notify parents
  • Record and compare class grades
  • Track inventory lent to students and staff

Find a use case

By department

How each team uses Sheetgo

By industry

How each industry uses Sheetgo

By company size

Small, medium-sized, or large

Learn

Blog

Guides and product news

Customer stories

How teams like yours use Sheetgo

Help center

Guides and answers

Why Sheetgo

Compare

How Sheetgo compares with other tools

Security

How we protect your data

Trust center

Our compliance details

Sign in to

Workflows

Build processes with your team

Automations

Connect files and automate tasks

One system, four parts

AI agents

Virtual Employees that work 24/7

Automations

Connect files and automate tasks

Workflows

Build processes with your team

Data Space

Trusted data sharing and control

Solutions by department

Finance

Reports, budgets, and reconciliations

Inventory and manufacturing

Stock, orders, and production in one view

HR

Timesheets, attendance, and reviews

Project management

Status and workload across projects

Sales and CRM

Leads and deals kept up to date

Education

Student records and school data

Find a use case

By department

How each team uses Sheetgo

By industry

How each industry uses Sheetgo

By company size

Small, medium-sized, or large

Get started

Templates

Ready-made workflows to start from

Learn

Blog

Guides and product news

Customer stories

How teams like yours use Sheetgo

Help center

Guides and answers

Why Sheetgo

Compare

How Sheetgo compares with other tools

Security

How we protect your data

Trust center

Our compliance details

Help center

Guides and answers

Contact support

Write to our team

Workflows

Build processes with your team

Automations

Connect files and automate tasks

How to use the MID formula in Google Sheets

You can use spreadsheets not only for number crunching but for operating with text-based data as well. Google Sheets has a built-in support system to easily convert, trim and combine text strings. You may already be familiar with formulas like LEFT and RIGHT that help extract substrings from the left and right sides of a string respectively.

What if you need to extract something in between? You can do so using the MID formula in Google Sheets.

39

One tool to merge, split, and filter all your spreadsheet data

Find out how

Syntax

=MID(string, starting_at, extract_length)
  • string – is the input text that you need to extract a substring from.
  • starting_at – is the position from the left of string from which to begin extracting. Notate the first character of the string with position 1.
  • extract_length – specifies the number of characters to extract from the position defined by starting_at.

Usage: MID function in Google Sheets

Nothing beats examples when it comes to understanding the concepts. So, I’ll dive right in to reinforce what you’ve learned from the syntax.

Take a look at the image below.

MID Google Sheets example 1

To understand these examples easily, think of the output values as a segment cut out from an input string. In the first example, the formula picked the result “dom” from “Random text” by going to the 4th character and extracting the text for a length of 3 characters. A similar process was repeated in the next two examples.

What if the formula reaches the end of the string before it extracts the extract_length completely? The formula simply returns characters from starting_at to the end of the string. So instead of generating an error, it just stops at the end of the string. I demonstrated this in the final example. The total length of the string “Consistent” is 10. I wanted the formula to start at the 7th position, and extract 6 characters after that. That implies that the formula should go until 12th character, which doesn’t exist. So the formula just returned “tent”, because that is what is available until the end of the input string.

Combining MID with the LEN function

It’s very useful to combine text functions together to dynamically extract information. While this is often done with the LEFT and RIGHT functions, you can also use MID to accomplish this.

In the example below, I have names embedded in sentences. I use the MID and LEN functions to extract the names only, with the formula =MID(A2,LEN("My name is "),30).

MID google sheets with LEN 2

The LEN function determines the length of the first part of the phrase, then tells the MID function where to start extracting the substring. I set the extract_length to 30 to be sure to get the full length of the name.

That’s it! While MID is a fairly simple function, I hope you can now use it to make your own spreadsheets more efficient.

Editor’s note: This is a revised version of a previous post that has been updated for accuracy and comprehensiveness.

39

Automate data transfers beyond Importrange

Find out how

You may also like…

google sheets features and formulas

How to find nominal interest rate using Google Sheets

Sarah is a young professional making significant financial decisions. From credit cards to mortgages, student loans, and investment...
google sheets features and formulas

Pull Google Calendar data into Google Sheets using Apps Script

This post was originally published in our community forum. Objective : This guide demonstrates how to use Google Apps Script to pull data...
google sheets features and formulas

Using the PROPER function to capitalize the first letter of each word in Google Sheets

Note: This post was originally published in our community forum. Ever found yourself needing to clean up a list of names, titles, or any...