LEFT and RIGHT Exercise: Extract a Product Code

Reading time: 3 minutes

A product code often hides several pieces of information. The first letters give the type, the last digits give the number. LEFT, RIGHT and MID cut the code into its parts, so you can sort, filter or count by each part.

The following exercise shows you how to extract parts of a text with LEFT, RIGHT, MID and LEN.

What you will practice in this exercise

You work on a product catalog with codes like PRD-ELC-001. You answer 6 questions, one formula per question:

  • Extract the type: the first 3 letters (LEFT)
  • Extract the number: the last 3 characters (RIGHT)
  • Count the characters of the code (LEN)
  • Extract the family in the middle (MID)
  • Rebuild a short code: type + number (&)
  • Extract the first letter of the description (LEFT)

Practice with exercises

left product code quiz33

LEFT and RIGHT Exercise - Break down a product reference (type, family, number)

Pull apart a structured product reference into its category, number and full code using LEFT, RIGHT, MID, LEN and & — 6 guided steps.

=LEFT( cell , num_chars )

1 / 6

Extract the type (first 3 letters of A2)

Text — Q1 · 278

=RIGHT( cell , num_chars )

2 / 6

Extract the sequential number (last 3 characters of A2)

Text — Q2 · 279

=LEN( cell )

3 / 6

Count the number of characters in A2

Text — Q3 · 280

=MID( cell , start , num_chars )

4 / 6

Extract the family code (3 letters in the middle, position 5)

Text — Q4 · 281

=LEFT(…)&"-"&RIGHT(…)

5 / 6

Rebuild a short code: type + number

Text — Q5 · 282

=LEFT( cell , 1 )

6 / 6

Extract the first letter of the description B2

Text — Q6 · 283

Your score is

0%

Related articles

Excel exercises: practice online with instant correction

All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.

Leave a Reply

Your email address will not be published. Required fields are marked *

LEFT and RIGHT Exercise: Extract a Product Code

Reading time: 3 minutes

A product code often hides several pieces of information. The first letters give the type, the last digits give the number. LEFT, RIGHT and MID cut the code into its parts, so you can sort, filter or count by each part.

The following exercise shows you how to extract parts of a text with LEFT, RIGHT, MID and LEN.

What you will practice in this exercise

You work on a product catalog with codes like PRD-ELC-001. You answer 6 questions, one formula per question:

  • Extract the type: the first 3 letters (LEFT)
  • Extract the number: the last 3 characters (RIGHT)
  • Count the characters of the code (LEN)
  • Extract the family in the middle (MID)
  • Rebuild a short code: type + number (&)
  • Extract the first letter of the description (LEFT)

Practice with exercises

left product code quiz33

LEFT and RIGHT Exercise - Break down a product reference (type, family, number)

Pull apart a structured product reference into its category, number and full code using LEFT, RIGHT, MID, LEN and & — 6 guided steps.

=LEFT( cell , num_chars )

1 / 6

Extract the type (first 3 letters of A2)

Text — Q1 · 278

=RIGHT( cell , num_chars )

2 / 6

Extract the sequential number (last 3 characters of A2)

Text — Q2 · 279

=LEN( cell )

3 / 6

Count the number of characters in A2

Text — Q3 · 280

=MID( cell , start , num_chars )

4 / 6

Extract the family code (3 letters in the middle, position 5)

Text — Q4 · 281

=LEFT(…)&"-"&RIGHT(…)

5 / 6

Rebuild a short code: type + number

Text — Q5 · 282

=LEFT( cell , 1 )

6 / 6

Extract the first letter of the description B2

Text — Q6 · 283

Your score is

0%

Related articles

Excel exercises: practice online with instant correction

All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.

Leave a Reply

Your email address will not be published. Required fields are marked *