MID Function In Excel
This Excel Tutorial demonstrates how to use the Excel MID Function in Excel to extract text from a cell, with formula examples.
MID Function Description:
The MID Function Returns text from the middle of a cell, defined by a start number and the number of characters.
|99 characters||=MID(C7,D7,E7)||this text|
|Find & Mid||=MID(C8,FIND(” this”,C8),E8)||this|
Syntax and Arguments:
The Syntax for the MID Formula is:
Function Arguments ( Inputs ):
text – A string of text.
start_num – The character number from which to start your selection.
num_chars – The number of characters after the start_num to return.
If num_chars is greater than the remaining length of the text, the MID Function returns all remaining text.
MID Examples in VBA
You can also use the MID function in VBA. Type:
For the function arguments (text, etc.), you can either enter them directly into the function, or define variables to use instead.
Return to the List of all Functions in Excel
How to use the MID Function in Excel:
To use the AND Excel Worksheet Function, type the following into a cell:
After entering it in the cell, notice how the AND formula inputs appear below the cell:
You will need to enter these inputs into the function. The function inputs are covered in more detail in the next section. However, if you ever need more help with the function, after typing “=MID(” into a cell, without leaving the cell, use the shortcut CTRL + A (A for Arguments) to open the “Insert Function Dialog Box” for detailed instructions:
For more information about the MID Formula visit the