Excel has no Change Case button, so capitalization is changed with a formula or with Flash Fill. To capitalize all letters, type =UPPER(A2) in an empty column. Use =LOWER(A2) to turn capitals into lowercase and =PROPER(A2) to capitalize the first letter of each word. This guide covers each method step by step, the shortcut question, and the places where PROPER gets names and titles wrong.
The quick answer
| What you want | Formula | john SMITH becomes |
|---|---|---|
| ALL CAPS | =UPPER(A2) | JOHN SMITH |
| all lowercase | =LOWER(A2) | john smith |
| First Letter Of Each Word | =PROPER(A2) | John Smith |
| Sentence case | =UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2))) | John smith |
Each formula puts the converted text in a new cell and leaves the original alone. To replace the original, you copy the results and paste them back as values, which is step 4 in the next section.
If the formula does not need to stay in the sheet, there is a shorter route: copy the column, paste it into a case converter, pick a case and paste the result back over the original cells.
Change a whole column with UPPER, LOWER or PROPER
Say the text is in column A, starting in A2 under a header.
- Insert an empty column next to the text. Right-click the header of column B and choose Insert.
- Type the formula. In B2, type
=UPPER(A2)and press Enter. Swap in LOWER or PROPER for the other two cases. - Fill it down. Select B2 and double-click the small square in the bottom-right corner of the cell. Excel copies the formula down as far as column A has data.
- Turn the formulas into plain text. Select the new column and press Ctrl+C. Right-click cell A2 and choose Paste Special, then Values. From the keyboard that is Ctrl+Alt+V, then V, then Enter.
- Delete the helper column.
Step 4 is the one people skip. If you delete column A while column B still holds formulas, every cell in B turns into #REF!, because the text it was reading is gone.
In Microsoft 365 and Excel 2021 you can skip the fill step. Type =UPPER(A2:A500) in a single cell and the results spill down the column on their own.
UPPER and LOWER only touch letters. Digits, punctuation and spaces come through unchanged, so an order code like ab-1042 becomes AB-1042 and nothing else moves.
Change case without a formula using Flash Fill
Flash Fill, added in Excel 2013, watches what you type and copies the pattern. It is the fastest route when the job only has to be done once.
- In the empty column next to your text, type the first value the way you want it. If A2 holds john smith, type JOHN SMITH in B2.
- Press Enter to move down to B3.
- Press Ctrl+E, or go to the Data tab and click Flash Fill. Excel fills the rest of the column in the same style.
The results are plain text, not formulas, so there is nothing to convert afterward. The trade-off is that they do not update: change a name in column A later and column B stays as it was.
Flash Fill has to sit directly beside the source column, and on messy data it sometimes guesses the pattern wrong, so scroll through the result before you delete the original. If the fill looks off, type a second example in B3 and press Ctrl+E again.
Is there an uppercase shortcut in Excel?
No. Excel has no keyboard shortcut that changes the case of text in a cell. People look for one because Word has it: in Word, Shift+F3 cycles selected text through lowercase, UPPERCASE and Capitalize Each Word. Press Shift+F3 in Excel and you get the Insert Function dialog instead.
The closest things to a shortcut in Excel:
- Ctrl+E for Flash Fill, once you have typed one example.
- A macro with a shortcut key you pick. The short macro further down converts the selected cells in place, and you can attach it to a key combination.
- A trip through Word. Copy the cells, paste into Word, select the text, press Shift+F3 until the case is right and copy it back. It works, though a plain text box is quicker and does not drag Word formatting into your sheet.
Sentence case and first-letter formulas
Excel has no sentence case function. To capitalize the first letter of a cell and lowercase the rest, combine a few:
=UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2)))
LEFT takes the first character and UPPER capitalizes it. MID takes everything from the second character on and LOWER makes it small. The ampersand joins the two pieces, so PLEASE CALL BACK TODAY becomes Please call back today.
To capitalize the first letter and leave the rest exactly as typed, which keeps words like iPhone and NASA intact, drop the LOWER:
=UPPER(LEFT(A2,1))&MID(A2,2,LEN(A2))
Both formulas treat the whole cell as one sentence. If a cell holds two or three sentences, only the first gets its capital. A formula that hunts for every period gets long fast. For comment fields and survey answers it is easier to use the Sentence case mode of the Case Converter, which capitalizes after every period, question mark and exclamation point.
Where PROPER gets it wrong
PROPER follows one rule: capitalize any letter that comes after something that is not a letter, and lowercase everything else. That rule is right for most names and wrong in a few predictable places.
| Text in the cell | =PROPER() returns | What you wanted |
|---|---|---|
| anne-marie o'brien | Anne-Marie O'Brien | Anne-Marie O'Brien |
| don't stop | Don'T Stop | Don't Stop |
| 3rd quarter results | 3Rd Quarter Results | 3rd Quarter Results |
| ronald mcdonald | Ronald Mcdonald | Ronald McDonald |
| ibm and nasa | Ibm And Nasa | IBM and NASA |
| the lord of the rings | The Lord Of The Rings | The Lord of the Rings |
Hyphenated names and names starting with O' come out right because the hyphen and the apostrophe both count as "not a letter". The same logic breaks contractions and possessives, since the letter after the apostrophe gets a capital too.
A common patch for possessives is to wrap PROPER in SUBSTITUTE:
=SUBSTITUTE(PROPER(A2),"'S","'s")
It turns Sarah'S Report back into Sarah's Report. It would also turn O'Sullivan into O'sullivan, so look through a list of names before trusting it.
Acronyms and names with a capital in the middle, such as McDonald, MacArthur or DeShawn, have to be fixed by hand or with Find and Replace (Ctrl+H) after the conversion. No formula knows that IBM is an acronym and Tim is a name.
Headlines are a different job
PROPER capitalizes every word, so a report title comes out as Summary Of Sales For The Third Quarter. Style guides such as AP and Chicago keep short words like of, for, the and and in lowercase unless they open the title. Excel has no function for that. The Title Case mode of the Case Converter applies the rule and leaves contractions and ordinals such as 3rd alone.
Convert a column without any formulas
When the sheet is not yours to restructure, or you just want the text fixed, a helper column is more work than the job deserves. A text box does it in four moves:
- Select the cells in Excel and press Ctrl+C.
- Paste into the Case Converter. Each cell lands on its own line.
- Click UPPERCASE, lowercase, Title Case or Sentence case.
- Click Copy result, go back to Excel, select the first cell of the original range and press Ctrl+V. Each line goes back into its own row.
Several columns at once work too. Excel separates copied cells with tabs, the converter leaves tabs alone, and Excel reads them as column breaks again on the way back.
Two things to know before you paste over the originals. Copying takes the values that are displayed, so a cell that held a formula will hold plain text afterward. And a cell with a line break inside it, typed with Alt+Enter, is copied wrapped in quotation marks, so look those cells over after you paste back.
The converter runs in your browser. A customer list or a column of names is not uploaded anywhere.
Power Query for data you import again and again
If the same export lands in your workbook every week, do the conversion once in Power Query and let it repeat on refresh.
- Click any cell in the data and go to Data, then From Table/Range.
- In the Power Query editor, select the column.
- On the Transform tab, open Format and choose lowercase, UPPERCASE or Capitalize Each Word.
- On the Home tab, click Close & Load.
The step is saved with the query. Next time, replace the source data and click Refresh All on the Data tab, and the case is fixed again without anyone touching a formula. Trim and Clean sit in the same Format menu, so stray spaces can go in the same pass.
A macro that converts the selected cells in place
For a workbook you use every day, a short macro gives you the one-click button Excel leaves out. Press Alt+F11 to open the Visual Basic editor, choose Insert, then Module, and paste this:
Sub MakeUppercase()
Dim c As Range
For Each c In Selection
If Not c.HasFormula And VarType(c.Value) = vbString Then
c.Value = UCase(c.Value)
End If
Next c
End Sub
Select the cells, press Alt+F8, pick MakeUppercase and click Run. Swap UCase for LCase to get lowercase, or use StrConv(c.Value, vbProperCase) for the first letter of each word. The Options button in the Alt+F8 dialog lets you assign a shortcut key.
The macro skips formulas, numbers and dates and changes only cells that hold text. Three cautions. Select the cells you need, not the entire column, or the loop walks through more than a million rows. A macro's changes cannot be undone with Ctrl+Z, so try it on a copy first. And the workbook has to be saved as a macro-enabled .xlsm file to keep the macro.
The same job in Word, Google Sheets and Google Docs
- Word. Select the text and press Shift+F3 to cycle through lowercase, UPPERCASE and Capitalize Each Word. On a Mac laptop it is fn+Shift+F3. The Change Case button on the Home tab, marked Aa, adds Sentence case and tOGGLE cASE.
- Google Sheets. UPPER, LOWER and PROPER work the same way they do in Excel, with the same helper column. To finish, copy the results and use Paste special, then Values only.
- Google Docs. Select the text and go to Format, Text, Capitalization, then choose lowercase, UPPERCASE or Title Case.
- Anywhere else. In an email, a web form or a CMS field with no formatting menu, paste the text into the Case Converter and copy the result back.
Cleanup that usually comes with it
Text that arrives in the wrong case is rarely wrong in only one way. Lists exported from a CRM or copied out of a PDF tend to bring a few other problems along.
- Extra spaces.
=TRIM(A2)removes leading, trailing and doubled spaces, and it nests:=PROPER(TRIM(A2))cleans and capitalizes in one formula. Outside Excel, Remove Extra Spaces does the same to pasted text. - Duplicates that differ only by case. Excel's Remove Duplicates button on the Data tab ignores case, so John Smith and JOHN SMITH count as one entry. For a plain list, Remove Duplicate Lines lets you decide whether case matters.
- Sorting. Excel sorts A to Z without regard to case unless you tick Case sensitive under Sort, Options. Sort Lines handles a pasted list.
- Length limits.
=LEN(A2)counts the characters in a cell. The Character Counter checks a piece of text against the limits for X, SMS and SEO titles.