Goal: Extract the numeric ID from the string.
MID lets you start at any position and grab a specific length.
Ready...
💻 Formula Structure
=MID(text, start_num, num_chars)
- 1. Text: The source string.
- 2. Start Num: Position to start (1 = first char).
- 3. Num Chars: How many characters to take.
-- Extract "9876"
=MID( "ID: 9876-X", 5, 4 )
⚠️ Common Pitfalls
🚫 Start Number is 0
Excel positions start at 1, not 0. If you enter Start_Num as 0 or a negative number, MID returns a #VALUE! error.
✅ Dynamic Extraction
Hardcoding the start position (e.g., 5) breaks if the ID length changes. Combine MID with FIND or SEARCH to locate the start position dynamically.