Exercices Excel

The MID Function

Extract a specific substring from inside a text string.

📖 Quick reference

The MID function extracts characters starting from a given position. Its syntax is =MID(text, start_num, num_chars). For example, =MID("Excel Beginner",7,8) starts at character 7 and extracts 8 characters: "Beginner".

Extract 8 characters starting at the 7th position of the text in A1 and place the result in B1.

Click cell B1, type your formula and press Enter.

B1
A B C D E
Text Result
1
Excel Beginner
2
3
4
5
6