Check code length with LEN
Use LEN to validate that product codes are the right length.
LEN
Real situations from working spreadsheets — sales targets, commission tiers, messy exports, aged invoices. Numbered in recommended order: start at 1 and work down, or filter to what you need.
10 exercises — for Operations
Use LEN to validate that product codes are the right length.
LEN
Add up a column of daily sales figures to get the monthly total.
SUM
Combine separate address fields into one line, skipping blanks.
TEXTJOIN
Use COUNT to find how many rows contain a numeric value.
COUNT
Count how many rows meet a numeric condition.
COUNTIF
Work out how many days old each invoice is.
TODAY
Extract characters from the middle of a text value.
MID
Clean inconsistent spacing and casing so values can be matched.
Require two conditions to be true at once.
IF · AND
Count rows that satisfy several criteria at once.
COUNTIFS
| # | Exercise | Functions | Difficulty | Time | Status |
|---|---|---|---|---|---|
| 2 | Check code length with LENHarbor Supply — product code import | LEN | Beginner | 3 min | 10 pts |
| 4 | Total a month of sales with SUMHarbor Supply — daily sales, first week of October | SUM | Beginner | 3 min | 10 pts |
| 5 | Build a mailing address with TEXTJOINHarbor Supply — customer addresses | TEXTJOIN | Beginner | 6 min | 15 pts |
| 7 | Count how many orders shipped with COUNTHarbor Supply — shipment status | COUNT | Beginner | 4 min | 10 pts |
| 9 | Count orders above a threshold with COUNTIFHarbor Supply — October orders | COUNTIF | Beginner | 5 min | 15 pts |
| 13 | Calculate invoice age with TODAYHarbor Supply — open invoices | TODAY | Intermediate | 8 min | 25 pts |
| 15 | Pull the year out of an order code with MIDHarbor Supply — order codes | MID | Intermediate | 7 min | 25 pts |
| 16 | Standardise messy codes with TRIM and UPPERHarbor Supply — supplier feed, uncleaned | — | Intermediate | 7 min | 25 pts |
| 17 | Approve orders with ANDHarbor Supply — order approval queue | IF · AND | Intermediate | 8 min | 25 pts |
| 19 | Count orders meeting two conditionsHarbor Supply — orders across regions | COUNTIFS | Intermediate | 8 min | 25 pts |