The PROPER function
PROPER makes the first letter of every word a capital and the rest small. It's the usual fix for names and towns typed in all capitals or all lower case.
It treats any letter that follows a non-letter as the start of a word. That handles hyphens and O' nicely, but trips up on apostrophe-s and Scottish or Irish Mc names.
=PROPER(text)
Arguments
- text
- The text (or cell) to convert.
Try it
=PROPER(A2) in B2. Each word starts with a capital, and the letter after the apostrophe in O'Connor is capitalised too.
B2
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name as typed | Tidy name | ||
| 2 | SARAH O'CONNOR | Sarah O'Connor | ||
| 3 | james mcallister | |||
| 4 | aMY-LEE PATEL | |||
| 5 | THE BAKER'S ARMS | |||
| 6 | ||||
| 7 |
Edit the formula in B2, or change the data, and press Enter.
More examples
| Formula | Result | What it does |
|---|---|---|
| =PROPER(A4) | Amy-Lee Patel | A hyphen starts a new word, so both parts of Amy-Lee get a capital. |
| =PROPER(A3) | James Mcallister | PROPER doesn't know about Mc, so the A stays small. Check names like this by hand. |
| =PROPER(A5) | The Baker'S Arms | The S after an apostrophe is capitalised, which is wrong for possessives. |
Tips
- Use
=PROPER(TRIM(A2))to fix both the case and stray spaces in one go. - Fix the apostrophe-s quirk with SUBSTITUTE:
=SUBSTITUTE(PROPER(A5),"'S ","'s "). - PROPER is best for names and places. Don't use it on codes or postcodes; use UPPER for those.
Common mistakes
- Names like McAllister or MacDonald come out as Mcallister.No formula gets every surname right. Run PROPER, then review the Mc and Mac names by hand.
- Possessives become Baker'S.Wrap the result in SUBSTITUTE to change "'S" back to "'s".
- Initials such as BBC or NHS become Bbc and Nhs.PROPER lowers every letter after the first. Leave acronyms out, or fix them with SUBSTITUTE afterwards.
Practise PROPER with instant feedback
Type real formulas into a working spreadsheet and get told straight away whether they work.