FxFormula Drills

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.

Starter sheet for this exercise
RowABCD
1SKU
2AB-1044-QFormula 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.

Solve this drill

Practice this formula

Loading the practice grid…

Google Sheets is a trademark of Google LLC. Formula Drills is not affiliated with Google. Excel drills on this site are a separate track.