Change case in Excel: UPPER, LOWER and PROPER
Excel has no Change Case button like Word. Instead, put a formula in the next column: =UPPER(A2) for CAPITALS, =LOWER(A2) for lower case, and =PROPER(A2) for a Capital At The Start Of Each Word. For names typed in by hand, =PROPER(TRIM(A2)) fixes the spaces as well. All three work in every version of Excel, on Windows and Mac and in Excel for the web.
The ways at a glance
| You want | Formula | Good for |
|---|---|---|
| CAPITALS | =UPPER(A2) | Postcodes, product codes, registration numbers |
| lower case | =LOWER(A2) | Email addresses, usernames |
| Title Case (a capital on each word) | =PROPER(A2) | Names, towns, job titles |
| Title case and no extra spaces | =PROPER(TRIM(A2)) | Names typed in by hand or pasted from a form |
| Sentence case | =UPPER(LEFT(A2,1))&LOWER(MID(A2,2,500)) | Notes and comments typed in capitals |
| A whole column in one go | =PROPER(TRIM(A2:A50)) | Excel 365, 2021 and 2024: one formula spills down |
| No formula | Flash Fill: Ctrl+E, or Data › Flash Fill on a Mac | A quick one-off fix |
Each formula goes in a new column next to the text. Once it's right, paste the results back over the original as values (see "Replacing the original column" below).
A worked example
A sign-up form let people type their own details, so the capitals are all over the place.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | As typed | UPPER | LOWER | PROPER |
| 2 | gRACE khan | GRACE KHAN | grace khan | Grace Khan |
| 3 | sw1a 2aa | SW1A 2AA | sw1a 2aa | Sw1A 2Aa |
| 4 | Tom.Fraser@Example.com | TOM.FRASER@EXAMPLE.COM | tom.fraser@example.com | Tom.Fraser@Example.Com |
- Names: PROPER gives each word a capital and makes the rest lower case, so gRACE khan becomes Grace Khan.
- Postcodes and codes: UPPER, so sw1a 2aa becomes SW1A 2AA. Numbers and spaces aren't changed.
- Email addresses: LOWER, so everything matches however it was typed.
Look at PROPER on the postcode, though: Sw1A 2Aa. PROPER puts a capital after anything that isn't a letter, numbers included. That's why codes need UPPER.
Spaces and capitals together
Typed names often have extra spaces too. Put TRIM inside PROPER, so the spaces are tidied first and then the capitals. For postcodes, put TRIM inside UPPER.
=PROPER(TRIM(A2))
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name as typed | Tidy name | Postcode as typed | Tidy postcode |
| 2 | marek NOWAK | Marek Nowak | ls6 2qt | LS6 2QT |
| 3 | priya SHAH | Priya Shah | m1 1ae | M1 1AE |
| 4 | OLLIE morgan | Ollie Morgan | Cf10 1aa | CF10 1AA |
" marek NOWAK " becomes Marek Nowak: TRIM takes off the spaces at each end and turns the three in the middle into one, then PROPER fixes the capitals. There's more on TRIM in removing extra spaces.
If the whole name is in one cell the wrong way round, such as REID, GRACE, split it first and then fix the capitals: splitting first and last names shows how.
Sentence case
There's no function for "only the first letter in capitals". Build it from two parts: the first letter in capitals, joined to the rest in lower case.
=UPPER(LEFT(A2,1))&LOWER(MID(A2,2,500))
| A | B | |
|---|---|---|
| 1 | As typed | Sentence case |
| 2 | THE ORDER IS LATE | The order is late |
| 3 | please call back | Please call back |
| 4 | PAID IN FULL | Paid in full |
"THE ORDER IS LATE" becomes The order is late. LEFT takes the first letter (see LEFT, MID and RIGHT), MID takes everything from the 2nd character on (500 is just "plenty"), and & joins them (see joining text). Names in the middle of a sentence end up in lower case too, so check them by eye.
A whole column in one formula (Excel 365)
In Excel for Microsoft 365, Excel 2021 or 2024, point the formula at the whole column once and it spills the answers down by itself. Type it in B2 only, with nothing below it.
=PROPER(TRIM(A2:A5))
| A | B | |
|---|---|---|
| 1 | Name as typed | Tidy name |
| 2 | gRACE khan | Grace Khan |
| 3 | TOM CLARKE | Tom Clarke |
| 4 | priya shah | Priya Shah |
| 5 | marek nowak | Marek Nowak |
Don't copy a spilling formula down: each copy tries to spill into the cells below it, and you get #SPILL!. In older Excel, use =PROPER(TRIM(A2)) and copy it down instead. There's more on spilling in the #SPILL! error.
Without a formula: Flash Fill
For a quick one-off, type the first name the way you want it in the next column, such as Grace Khan beside gRACE khan. Then press Ctrl+E on Windows, or go to Data › Flash Fill in Excel for Mac. Excel copies the pattern down the column.
Flash Fill gives plain text, not formulas, so it doesn't update if the names change. Check the odd ones afterwards: it guesses from your example, and a guess from one example can go wrong.
Replacing the original column
The tidy names are formulas that point at the messy ones, so you can't just delete the messy column. To keep only the tidy version:
- Select the tidy column and copy it (Ctrl+C, or Cmd+C on a Mac).
- Click the first cell of the original column, then go to Home › Paste (click the arrow under it) › Paste Values. It's the same on a Mac.
- Delete the formula column.
Where PROPER gets names wrong
PROPER follows one rule: a capital at the start of the text and after anything that isn't a letter. It doesn't know any names.
| A | B | |
|---|---|---|
| 1 | As typed | PROPER |
| 2 | McDONALD | Mcdonald |
| 3 | o'neil | O'Neil |
| 4 | ANNE-MARIE | Anne-Marie |
| 5 | van der berg | Van Der Berg |
| 6 | it's late | It'S Late |
- McDonald comes out as Mcdonald. The same happens to MacLeod and DuPont.
- O'Neil and Anne-Marie come out right, because the apostrophe and the hyphen aren't letters.
- van der Berg becomes Van Der Berg. PROPER can't tell which small words should stay small.
- it's becomes It'S. PROPER is for names, not sentences.
After PROPER, sort the list and look for names like these by eye, then type over the few that need it once you've pasted the values back.
Common mistakes
A circular reference
Typing =PROPER(A2) into A2 itself points the cell at itself. The formula always goes in a different column.
The spaces are still there
UPPER, LOWER and PROPER only change capitals. Put TRIM inside them for extra spaces, and see TRIM for spaces TRIM can't remove.
Capitals don't matter to lookups
VLOOKUP, XLOOKUP, MATCH and COUNTIF treat GRACE and grace as the same, so you don't need to change the case just to make a lookup work. Extra spaces do matter, so TRIM still helps.
Try it now
The names in column A were typed by hand. In B2, take out the extra spaces and give each name a capital at the start of each word, such as Grace Khan. Your formula will be copied down to B9.
| A | B | |
|---|---|---|
| 1 | Name as typed | Tidy name |
| 2 | gRACE khan | |
| 3 | TOM CLARKE | |
| 4 | priya shah | |
| 5 | marek nowak | |
| 6 | Nia Evans | |
| 7 | OLLIE morgan | |
| 8 | amira hussain | |
| 9 | ben LEWIS |
Open this in Try a formula: the same sheet with the answer filled in, to change or share by link.
Part of Excel data cleaning practice: every lesson on the topic, with a project in Excel.
Questions
How do I change case in Excel?
Use a formula in the next column: =UPPER(A2) for capitals, =LOWER(A2) for lower case, or =PROPER(A2) for a capital at the start of each word. Copy it down, then copy the results and use Home › Paste › Paste Values over the original column, the same on Windows and Mac. Delete the formula column afterwards.
How do I change text to title case in Excel?
PROPER does it: =PROPER(A2) turns "ANNUAL LEAVE REQUEST" into "Annual Leave Request". It puts a capital on every word, small words such as "of" and "the" included, so a strict title style needs a hand fix afterwards. For names typed with extra spaces, use =PROPER(TRIM(A2)).
Is there a shortcut to change case in Excel?
No. Excel has no change case shortcut, and Shift+F3, which changes case in Word, opens Insert Function in Excel. The quickest way without a formula is Flash Fill: type one example the way you want it in the next column, then press Ctrl+E on Windows, or use Data › Flash Fill on a Mac.
Why does PROPER change McDonald to Mcdonald?
PROPER only knows one rule: a capital at the start of each word and after anything that isn't a letter, with the rest in lower case. It has no list of names, so McDonald, MacLeod and DuPont lose their middle capital. Sort the tidied list and fix those by hand. O'Neil and Anne-Marie come out right.