| A | B | C | D | E | F | G | H | I | J | K | L | M | N | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Code | Result | ||||||||||||
| 2 | UK-4471 | 4471 | ||||||||||||
| 3 | FR-0298 | |||||||||||||
| 4 | DE-1150 | |||||||||||||
| 5 | ||||||||||||||
| 6 | ||||||||||||||
| 7 | ||||||||||||||
| 8 | ||||||||||||||
| 9 | ||||||||||||||
| 10 | ||||||||||||||
| 11 | ||||||||||||||
| 12 | ||||||||||||||
| 13 | ||||||||||||||
| 14 | ||||||||||||||
| 15 | ||||||||||||||
| 16 | ||||||||||||||
| 17 | ||||||||||||||
| 18 | ||||||||||||||
| 19 | ||||||||||||||
| 20 | ||||||||||||||
| 21 | ||||||||||||||
| 22 | ||||||||||||||
| 23 | ||||||||||||||
| 24 | ||||||||||||||
| 25 | ||||||||||||||
| 26 | ||||||||||||||
| 27 | ||||||||||||||
| 28 | ||||||||||||||
| 29 | ||||||||||||||
| 30 |
More to try
Each of these works on the sheet. Press one to put it in B2.
- gives UK
LEFT takes characters from the start: the country.
- gives 4471
Everything after the first three characters, however long the code is.
- gives 1
With no second argument it returns the last character.
Common mistakes
- The result is text, even when it looks like a number, so it will not add up until it is converted.
- Counting characters by hand when lengths vary. Use LEN or FIND to work the number out.
- Trailing spaces count as characters. Use TRIM first if the data is untidy.
Practise it
Take the last characters →Related functions