Text Functions
Intermediate

UPPER to build a code

Turn a name and a number into a consistent upper-case reference.

Task:

Each branch needs a short code: the first three letters of the town in capitals, a hyphen, then its branch number — for example LEE-104. Build it in C2:C6.

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

6 rows × 3 columns5 cells you fill in
ABC
1TownBranch no.Code
2Leeds104
3york211
4Bristol87
5cardiff330
6Exeter59
What this exercise teachesMay contain the answer

Codes are compared and looked up, so they have to be consistent; "yor-211" and "YOR-211" would not match a case-sensitive system. Forcing upper case inside the formula means the code is right however the source was typed.