IntermediateText Functions7 min25 points

Pull the year out of an order code with MID

The situation

Harbor Supply's order codes embed the year, but there is no separate year column and finance wants to split the file by fiscal year.

A1
fx
Pull the year out of an order code with MID — question sheet. Use the arrow keys to move between cells, Enter or F2 to edit, Escape to cancel, Control D to fill down from the cell above, and Control C and Control V to copy and paste.
Row numberABCDE
1Order codeYear
2ORD-2026-1041
3ORD-2025-0987
4ORD-2026-1042
5
6

Functions in this exercise

  • MIDReturns characters from the middle of a text value, given a start point.

Who this is for