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.
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | SKU | Family | Color | Size |
| 2 | SKU-RED-19 | Formula goes in B2. formula | Formula goes in C2. formula | Formula goes in D2. formula |
| 3 | SKU-BLU-04 | Formula goes in B3. formula | Formula goes in C3. formula | Formula goes in D3. formula |
| 4 | SKU-GRN-27 | Formula goes in B4. formula | Formula goes in C4. formula | Formula 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.