AdvancedText Functions12 min35 points

Extract a lot number from a messy code

The situation

Warehouse barcodes bundle the SKU and the lot number into one string, and the SKU part is not always the same length. Quality control needs the five-digit lot on its own to trace a recall, and counting characters will not survive the second scan.

A1
fx
Extract a lot number from a messy code — 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
1BarcodeLot number
2HW-4820/LOT-77341-A
3PL-1175/LOT-80126-B
4EL-90431/LOT-64509-A
5GR-226/LOT-71880-C
6

Functions in this exercise

  • MIDReturns characters from the middle of a text value, given a start point.
  • FINDReturns the position of one text value inside another. Case-sensitive.

Who this is for