IntermediateLogical Functions9 min30 points

Turn a product code into a category

The situation

Every Harbor Supply SKU starts with a two-letter category prefix, but the sales report shows raw codes and nobody outside the warehouse knows what EL means. Merchandising wants the category spelled out beside each line.

A1
fx
Turn a product code into a category — question sheet. Use the arrow keys to move between cells, Enter or F2 to edit, Escape to cancel, Control D to fill down from the cell above, and Control C and Control V to copy and paste.
Row numberABCDE
1CodeCategory
2HW-4820
3PL-1175
4EL-9043
5HW-2266
6EL-7710
7

Functions in this exercise

  • IFSChecks several conditions in order and returns the first match.
  • LEFTReturns a set number of characters from the start of a text value.

Who this is for