YOUR AD GOES HERE

Pull the Middle Code Out of Every Part Number in Excel (MID)

Published 02, Dec 2026

Sheets by OptiVal


Description:
Filmed in Excel for the web, which is free in a browser.

When every part number is built to the same pattern, the code buried in the middle can be lifted out with one formula instead of being retyped row by row. MID starts at a fixed character and takes a fixed number of characters, and because it returns text, a leading zero in the code survives.

Steps:
1. Six part numbers stand in the list, all built the same way: two letters, a dash, four digits, a dash and a colour code.
2. In the first code cell, type MID over the part number, starting at character four and taking four characters. The exact formula is in the pinned comment, ready to copy.
3. Fill it down and the codes land: 2045, 4821, 0937, 7712, 3308 and 5564, read back against their rows.
4. The third code reads 0937: the leading zero survives because MID hands back text, which a number extraction would have eaten.

The best thanks is a subscribe.

Releted More Videos

You May Also Like

YOUR AD GOES HERE

YOUR AD GOES HERE