Array Functions
Intermediate

TEXTSPLIT a code into its parts

One formula per row; each spills across as many columns as there are parts.

Task:

SKU codes pack the category, size and colour into one cell, separated by hyphens. In B2:B5 split each code so the three parts land in B, C and D.

Interactive Spreadsheet

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

5 rows × 4 columns12 cells you fill in
ABCD
1SKUCategorySizeColour
2TEE-M-BLK
3HOOD-L-GRY
4CAP-OS-NVY
5SOCK-S-WHT
What this exercise teachesMay contain the answer

The old way was three formulas per row — LEFT up to the first hyphen, MID between them, RIGHT after the last — each one a FIND exercise. TEXTSPLIT does the whole job in one, and copes when a part, like OS, is a different length.