Introduction
If you’ve ever needed to extract a specific part of text from a cell in Excel, the MID formula is your go-to function. In fact, it helps you pull out a set number of characters from the middle of a text string. In this guide, we will break down how to use the MID formula effectively. Moreover, we will provide clear steps and practical examples to enhance your learning.
What is the MID Formula in Excel?
The MID function in Excel allows you to extract a portion of text from a larger string, starting at a specified position and for a defined length. Specifically, the syntax for the MID function is:
=MID(text, start_num, num-chuks)
- text: The original string from which you want to extract characters.
- start_num: The position where you want to begin extracting.
- num-chuks: The number of characters you want to extract.
Sample Dataset

Step-by-Step Guide to Using the MID Formula
Step 1: Open Your Excel Worksheet to Use the MID Formula in Excel
First, open Microsoft Excel and create a new or existing worksheet. Then, enter sample text into any cell to work with. For example, type Excel Tutorial
into cell A1.
Step 2: Apply the MID Formula in Excel to Extract Text
Now, let’s extract specific characters using the MID function. Follow these steps:
- Click on a blank cell where you want the extracted text to appear, such as B1.
- Enter the following formula in B1:
=MID(A1, 6, 4)
- Press Enter to execute the formula.
Step 3: Understand the Result of the MID Formula in Excel
Once you press Enter, you should see Tuto
appear in cell B1. Here’s why:
- The function starts at the 6th character of
Excel Tutorial
. The first five characters (Excel
) are skipped. - It extracts 4 characters starting from the 6th position.
- The result is
Tuto
, which comes fromExcel Tutorial
.
Practical Examples of the MID Formula
Example 1: Extracting First Name from Full Name
For instance, imagine you have a name like “JohnDoe” in cell A2. If you want to extract the first name, use:
=MID(A2, 1, 4)
As a result, this will return “John”.
Example 2: Extracting Domain from an Email
Similarly, if cell A3 contains “[email protected]”, you can extract the domain using:
=MID(A3, FIND("@", A3) + 1, FIND(".", A3) - FIND("@", A3) - 1)
In this case, this formula dynamically finds and extracts the domain name between @
and .
.
Common Errors and Fixes
- #VALUE! Error: This occurs when
start_num
is greater than the length of the text. Therefore, ensure you choose the correct position. - Wrong Output: To avoid mistakes, double-check that the
num-chuks
value does not exceed the length of the remaining string.
Conclusion
To sum up, the MID formula in Excel is a powerful tool for extracting specific portions of text. Whether you’re working with names, email addresses, or structured data, mastering this function can significantly improve your efficiency. So, try it out with your own examples, and soon, you’ll be using MID like a pro!
Do you use the Values in Excel for your reports? If so, let us know.