Premium Google Sheets drill · Text and regular expressions
Split a SKU into columns
Practice Google Sheets SPLIT on a SKU. The numeric piece becomes a number, which is how SPLIT treats digits.
A2 is the SKU AB-1044-Q. SPLIT on a hyphen spills each piece. A piece made of digits becomes a number.
In B2, split A2 on the hyphen.
Dataset
Starter sheet. Cells marked formula are where the formula goes.
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | SKU | |||
| 2 | AB-1044-Q | Formula goes in B2. formula |
Hint
The delimiter is "-". Default SPLIT treats each character of the delimiter as a separator.
Explanation
SPLIT writes AB, 1044, and Q across the row. 1044 is a number because Sheets converts a numeric piece instead of leaving it as text.
The interactive sheet and a worked solution are part of Formula Drills Premium. The instructions and starter data on this page are the full problem.