How to Use Excel MID Function (Examples + Video)

Excel MID Function (Example + Video)

Excel MID Function

When to use Excel MID Function

MID function can be used to extract a specified number of characters from a string.

What it Returns

It returns the sub-string from a string.

Syntax

=MID(text, start_num, num_chars)

Input Arguments

  • text – the text from which you want to extract the string.
  • start_num – the starting position within the text argument, from where the extraction should begin.
  • num_chars – the total number of characters that you want to extract.

Additional Notes

  • Spaces are counted as characters.
    • To remove extra spaces, use TRIM function.
  • If the start number is greater than the length of the text, MID returns “” (empty text).
  • Returns an error if:
    • The start number is less than 1.
    • The number of characters is a negative number.

Excel MID Function – Live Example

Excel MID Function – Video Tutorial

Related Excel Functions:

You may also like the following Excel tutorials:

Hey! I'm Sumit Bansal, founder of stg-trumpexcel-te08mar2026.kinsta.cloud and a Microsoft Excel MVP. I started this site in 2013 because I genuinely love Microsoft Excel (yes, really!) and wanted to share that passion through easy Excel tutorials, tips, and Excel training videos. My goal is straightforward: help you master Excel skills so you can work smarter, boost productivity, and maybe even enjoy spreadsheets along the way!

1 thought on “How to Use Excel MID Function (Examples + Video)”

Leave a Comment

Free-Excel-Tips-EBook-Sumit-Bansal-1.png

FREE EXCEL E-BOOK

Get 51 Excel Tips Ebook to skyrocket your productivity and get work done faster

FREE EXCEL E-BOOK

Get 51 Excel Tips Ebook to skyrocket your productivity and get work done faster

FREE EXCEL E-BOOK

Get 51 Excel Tips Ebook to skyrocket your productivity and get work done faster

Free-Excel-Tips-EBook-Sumit-Bansal-1.png

FREE EXCEL E-BOOK

Get 51 Excel Tips Ebook to skyrocket your productivity and get work done faster

Free-Excel-Tips-EBook-Sumit-Bansal-1.png

FREE EXCEL E-BOOK

Get 51 Excel Tips Ebook to skyrocket your productivity and get work done faster

Free Excel Tips EBook Sumit Bansal

FREE EXCEL E-BOOK

Get 51 Excel Tips Ebook to skyrocket your productivity and get work done faster