UPPER, LOWER and PROPER
About this lesson
UPPER turns text into capitals. LOWER turns it into small letters. PROPER capitalises the first letter of every word and lowers the rest.
- change the case of text with UPPER, LOWER and PROPER.
- say what PROPER gets wrong on names like McKay.
The idea
Two of these are safe and one is not. UPPER and LOWER apply the same change to every character, so there is nothing for them to get wrong. That makes them the right tool before comparing two lists from different systems, where one is in capitals and the other is not.
PROPER is a rule about letters pretending to be knowledge about names. It capitalises after every non-letter. That produces Mcdonald, Macleod, Van Der Berg and De Souza, and every one of them is somebody's name spelled wrong. It gets O'Brien right, but by luck. The same rule that puts the capital after the apostrophe refuses to put one in the middle of McDonald. On a list of customers this is worse than leaving the text alone. A name that was only inconsistent is now wrong with confidence. Use it on descriptions and place names. Check it by eye on anything that gets printed on a letter.
The mistake to watch for
Running PROPER over a column of names. It capitalises after every non-letter and nothing else. So McDonald, MacLeod, van der Berg and de Souza all come out wrong. Each is now a customer's name spelled wrong on a letter. Use PROPER on descriptions and place names. On names, check every result by eye, or leave the text alone.
Read more about this
Where this comes up again
This lesson needs JavaScript to run. Everything below is the lesson in full, but you cannot type into the grid or be marked.
PROPER capitalises the first letter of each word.
In B2, type:
=PROPER(A2)
| Row | A | B | C | D | E | F | G |
|---|---|---|---|---|---|---|---|
| 1 | As entered | Tidied | |||||
| 2 | ANNA-MARIE FOLEY | ||||||
| 3 | mcdonald | ||||||
| 4 | van der berg | ||||||
| 5 | o'brien | ||||||
| 6 | gb-2024-0031 | ||||||
| 7 | |||||||
| 8 |
Every step
-
PROPERcapitalises the first letter of each word. InB2, type:=PROPER(A2). -
PROPERtreats every word the same, with no exceptions. Read=PROPER(A3)and say what it returns for mcdonald. -
PROPERalso capitalises after a hyphen or apostrophe. Read=PROPER(A5)and say what it returns for o'brien. -
UPPERturns text into capital letters. InB6, capitalise the code inA6withUPPER. -
LOWERturns text into small letters. InB5, makeA4lower case, usingLOWER. Use a function instead of retyping it.