FxFormula Drills

Premium exercise · Excel text and date functions

LEFT, MID, and RIGHT practice

Practice Excel LEFT, MID, and RIGHT by splitting a SKU into its family, color code, and size.

Each SKU looks like SKU-RED-19: a 3-letter family, a dash, a 3-letter color, a dash, and a 2-digit size.

In B, use LEFT for the family. In C, use MID for the color. In D, use RIGHT for the size. Fill all three rows. Keep the size as text so a leading zero stays.

Dataset

Starter sheet. Cells marked formula are where the formula goes.

Starter sheet for this exercise
RowABCD
1SKUFamilyColorSize
2SKU-RED-19Formula goes in B2. formulaFormula goes in C2. formulaFormula goes in D2. formula
3SKU-BLU-04Formula goes in B3. formulaFormula goes in C3. formulaFormula goes in D3. formula
4SKU-GRN-27Formula goes in B4. formulaFormula goes in C4. formulaFormula goes in D4. formula

Hint

LEFT and RIGHT take the text and how many characters to keep. MID also takes the starting position. The first character is position 1.

Explanation

This exercise practices LEFT, MID, and RIGHT in Excel. The formula goes in B2, C2, D2, B3, C3, D3, B4, C4, D4.

LEFT takes SKU, MID starts at the fifth character to take RED, BLU, or GRN, and RIGHT keeps the last two characters. RIGHT returns text, so 04 stays 04.

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 exercise

Practice this formula

Loading the practice grid…