Excel Mid Function

This post will guide you how to use Excel MID function with syntax and examples in Microsoft excel.


The Excel MID function returns a substring from a text string at the position that you specify.

The MID function is a build-in function in Microsoft Excel and it is categorized as a Text Function.

The MID function is available in Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000, Excel 2011 for Mac.


The syntax of the MID function is as below:

= MID (text, start_num, num_chars)

Where the MID function arguments are:
text -This is a required argument. The text string that you want to extract substring from.
start_num-This is a required argument.  The position of the first character that you want to extract in text string.
num_chars-This is a required argument.  The number of the characters that you want to extract from a text string.

Note: If start_num is greater than the length of text, the MID function will return empty text.
If start_num is less than 1, the MID function will return the #VALUE! Error value.
If num_chars is negative, MID will return the #VALUE!  Error value.


The below examples will show you how to use Excel MID Text function to extract a substring from a text string.

#1 To extract 10 characters from the text string in B1, starting at the 5th character, just using the following formula:=MID(B1,5,10).

excel mid function example1


So empty here ... leave a comment!

Leave a Reply

Your email address will not be published. Required fields are marked *