How to Capitalize Each Word in Excel (PROPER, Flash Fill, and More)

To capitalize each word in Excel, use the PROPER function. If your text is in cell A2, click an empty cell such as B2, type =PROPER(A2), and press Enter. “jane SMITH” becomes “Jane Smith.” Fill the formula down the column, then copy the results and paste them back as values so they no longer depend on the original text. Excel has no Change Case button like Word’s, so a formula, Flash Fill, or Power Query is the way to do it.

These steps work in Excel for Microsoft 365, Excel 2024, 2021, 2019, and 2016 on Windows and Mac. If you want ALL CAPS or all lowercase instead, the same steps work with UPPER or LOWER, covered below.

Method 1: Use the PROPER Function

  1. Insert a helper column next to your text. Right-click the column letter to the right of your data and choose Insert.
  2. Click the first cell of the helper column, beside your first entry.
  3. Type =PROPER(A2), replacing A2 with the cell that holds your text, and press Enter.
  4. Click the cell again and double-click the small square in its bottom-right corner (the fill handle). Excel copies the formula down as far as your data goes.

The helper column now shows every entry with a capital letter at the start of each word and lowercase letters elsewhere. Microsoft describes the function on its PROPER function page.

If your data is formatted as an Excel table (Insert > Table), you only need to enter the formula once. The table turns it into a calculated column and fills every row, including rows you add later.

Fix the whole column with one formula

In Excel for Microsoft 365 and Excel 2021 or later, you can give PROPER a whole range: =PROPER(A2:A200). The results spill down into the cells below, so make sure they’re empty, or you’ll see a #SPILL! error.

Advertisements
Steps to capitalize each word in Excel: insert a helper column, type =PROPER(A2), double-click the fill handle, copy the results, paste them as values over the original text, and delete the helper column
Illustration: capitalizing each word with PROPER and replacing the original text.

Replace the Original Text With the Capitalized Version

The PROPER results are formulas that point at the original cells. If you delete the original column now, the helper column turns into #REF! errors. Convert the results to plain text first:

  1. Select the cells with the PROPER formulas and press Ctrl+C (Command+C on a Mac).
  2. Select the first cell of the original column.
  3. Choose Home > Paste > Paste Values (the clipboard icon with 123). On Windows you can also press Ctrl+Alt+V, pick Values, and select OK.
  4. Delete the helper column.

The original column now holds the capitalized text with no formulas behind it. Microsoft lists the paste choices on its paste options page, and our guide on how to remove formulas in Excel covers other ways to keep values only.

Method 2: Use Flash Fill

Flash Fill copies a pattern from an example you type, with no formula. It’s quick for a one-time cleanup.

  1. In the empty column beside your data, type the first entry the way you want it, for example Jane Smith.
  2. Press Enter to move to the next cell.
  3. Press Ctrl+E, or choose Data > Flash Fill.

Excel fills the rest of the column. Check the results: Flash Fill guesses from your example, so give it a second example if it gets one wrong. The results are plain text, so you can paste them over the original column right away. Flash Fill has been in Excel since Excel 2013; Microsoft explains it on its page about using Flash Fill.

Flash Fill doesn’t update if the original text changes later. If your list keeps changing, use PROPER instead.

Method 3: Use Power Query for Imported Data

If you regularly import the same kind of messy data, Power Query can capitalize it every time you refresh:

  1. Click inside your data and choose Data > From Table/Range. The Power Query Editor opens.
  2. Select the text column.
  3. Choose Transform > Format > Capitalize Each Word to change the column itself, or Add Column > Format > Capitalize Each Word to keep the original and add a new one.
  4. Choose Home > Close & Load.

Microsoft shows these Format commands on its page about how to add a column based on a data type.

Change Text to All Caps or Lowercase

Formula “jane SMITH” becomes Use it for
=PROPER(A2) Jane Smith Names, titles, headings
=UPPER(A2) JANE SMITH Codes, state abbreviations, headers
=LOWER(A2) jane smith Email addresses, tags
=UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2))) Jane smith Sentence case

Microsoft compares the first three on its page about how to change the case of text in Excel.

Where PROPER Gets It Wrong

PROPER capitalizes the first letter of the text and any letter that follows something other than a letter: a space, a hyphen, an apostrophe, or a number. Everything else becomes lowercase. That rule causes a few predictable mistakes:

  • Apostrophes: “don’t” becomes “Don’T” and “it’s” becomes “It’S,” because the letter after the apostrophe is capitalized. Names like O’Neil come out right for the same reason.
  • Acronyms: “NASA” becomes “Nasa” and “USA” becomes “Usa.”
  • Mixed-case names: “McDonald” becomes “Mcdonald” and “iPhone” becomes “Iphone.”
  • Letters after numbers: Microsoft’s own example turns “76BudGet” into “76Budget”: the B stays capital because it follows a digit.
  • Hyphens: “state-of-the-art” becomes “State-Of-The-Art.”

To fix the exceptions, convert the results to values, then use Ctrl+H to replace the specific words, such as Don’T with Don’t or Usa with USA. Turn on Match case and Match entire cell contents if needed so you don’t change other text. Our guide on how to replace a word in Excel explains those options. For a longer list of exceptions, Flash Fill with a few corrected examples sometimes does better.

Table of PROPER function results in Excel: names, hyphenated words and numbers capitalize correctly, while apostrophes, acronyms and names like McDonald need fixing afterward
Illustration: what PROPER does to different kinds of text.

Clean Up Extra Spaces at the Same Time

Data pasted from websites or other systems often has extra spaces. Wrap TRIM inside PROPER to remove spaces at the start and end and reduce double spaces between words to one: =PROPER(TRIM(A2)). TRIM doesn’t remove the non-breaking spaces some web pages use, so if spaces remain, replace them with =PROPER(TRIM(SUBSTITUTE(A2,CHAR(160),” “))).

Use a Macro to Capitalize Cells in Place

If you capitalize text often and don’t want a helper column, a short macro can change the selected cells directly:

Sub CapitalizeEachWord()
    Dim c As Range
    For Each c In Selection
        If Not c.HasFormula And VarType(c.Value) = vbString Then
            c.Value = StrConv(c.Value, vbProperCase)
        End If
    Next c
End Sub

Press Alt+F11 to open the VBA editor, choose Insert > Module, paste the code, and close the editor. Select your cells, press Alt+F8, and run CapitalizeEachWord. Macros can’t be undone with Ctrl+Z, so save first, and save the workbook as an Excel Macro-Enabled Workbook (.xlsm) to keep the macro.

Excel for the Web and Mac

PROPER, UPPER, and LOWER work the same in Excel for the web and on a Mac. On a Mac, Flash Fill is under Data > Flash Fill, and you paste values with Home > Paste > Paste Values. Power Query editing and macros are limited or unavailable in Excel for the web, so use the desktop app for Method 3 and the macro.

Capitalization Questions

Is there a Change Case button in Excel like in Word?

No. Word has Shift+F3 and the Change Case button, but Excel doesn’t. For a quick one-off, you can paste a column into Word, press Shift+F3 until it shows the case you want, and paste it back into Excel. See how to change capitalization in Word.

Does PROPER change numbers or symbols?

No. Numbers and symbols stay as they are. They only affect which letter comes next, as the “76BudGet” example shows.

Why does my formula show as text instead of a result?

The cell is formatted as Text. Change it to General on the Home tab, click in the cell, and press Enter again.

Can I capitalize only the first letter of the cell?

Yes, use the sentence case formula in the table above. It capitalizes the first character and makes the rest lowercase.

Advertisements