Turn a name and a number into a consistent upper-case reference.
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.
Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.
The same formula in the other shapes it takes at work.
Change the case of text using case conversion functions.
Normalise case before you compare, count or remove duplicates.
Turn a name and a number into a consistent upper-case reference.
This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.
| A | B | C | |
|---|---|---|---|
| 1 | Town | Branch no. | Code |
| 2 | Leeds | 104 | |
| 3 | york | 211 | |
| 4 | Bristol | 87 | |
| 5 | cardiff | 330 | |
| 6 | Exeter | 59 |
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.