Change case of text in Excel practice workbook

Get the Change Case Practice Workbook

The name list from the video, messy casing and extra spaces included. Practice UPPER, LOWER, PROPER, TRIM and Flash Fill on the same data.

How to Change Case with UPPER, LOWER, and PROPER

The main advantage to using formulas is that if the source data changes, the updated formula version automatically updates.

In our data set, we have a list of names with a variety of issues.  Some names are lower case, some are upper case, some are proper case, and some are mixed up beyond all reason. We want to fix this and change case in Excel.

Excel name list in column A showing mixed casing problems including all lowercase, all uppercase, proper case, and randomly mixed entries

We will create a version of each name in the list to upper case, lower case, and proper case using formulas.  Each of these methods are incredibly simple.

UPPER: Convert Text to Uppercase

The function to convert any cell’s text to upper case is known as the UPPER function.  The syntax for the UPPER function is as follows:

=UPPER(text)

The variable “text” can refer to a cell address or to a statically declared string.

=UPPER(A1)

or

=UPPER("This is a test of the upper function")

In most cases, the cell reference version is the most useful option of the two.

In our sample file, we will select cell B5 and enter the following formula to capitalize text:

=UPPER(A5)
Excel UPPER formula =UPPER(A5) in cell B5 converting the first mixed-case name to all uppercase letters

Fill the formula down column B to finish converting the list in column A from lower case to upper case.

Excel column B filled with UPPER formula results showing all names from column A converted to full uppercase

But let’s say you don’t want the formulas in the results. You just want the new upper-cased versions of the names as if they had been hand-typed. There is an easy fix for that:

  • Select the names and perform a Copy -> Paste Values operation on them.
Excel Paste Special menu with the Paste Values option highlighted to convert the UPPER formula results to static text values in place

A lesser-known technique to converting formulas to the formula’s results is to do the following:

  • highlight the desired cells to be converted
  • using your RIGHT mouse button, right-click on the thick, green border surrounding the selection
  • drag a small amount away from the selection and then immediately return to the original selection location
  • release your right mouse button

This presents you with a menu of choices.  The choice we want is labeled “Copy Here as Values Only”.

Excel right-click drag context menu showing the Copy Here as Values Only option to replace formulas with their text results in the same cells

LOWER: Convert Text to Lowercase

Now we want to convert uppercase to lowercase. The Excel function we’ll use is the LOWER function.  The syntax for the LOWER function is as follows:

=LOWER(text)

The variable “text” can refer to a cell address or to a statically declared string.

=LOWER(A1)

or

=LOWER("THIS IS A TEST OF THE LOWER FUNCTION")

As with the UPPER function, the cell reference version is the most useful option of the two.

In our practice file, we will select cell C5 and enter the following formula to convert to lower case.

=LOWER(A5)
Excel LOWER formula =LOWER(A5) in cell C5 converting the first name to all lowercase letters

Fill the formula down column C to finish converting the list in column A.

Excel column C filled with LOWER formula results showing all names from column A converted to full lowercase

PROPER: Capitalize Each Word

Let’s find out how to capitalize the first letter in Excel. The PROPER function makes it easy. It converts the first letter of each word in a text string to uppercase. This is helpful for formatting names, titles, and more. 

The syntax for the PROPER function is as follows:

=PROPER(text)

The “text” can be a cell reference or a string. Here are some examples:

  • Cell Reference: =PROPER(A1)
  • Text String: =PROPER("this is a test")

In our practice file, we will select cell D5 and enter the following formula to convert the text to proper case.

=PROPER(A5)
Excel PROPER formula =PROPER(A5) in cell D5 converting the first name to title case with the first letter of each word capitalized

Fill the formula down column D to finish converting the list in column A.

Excel column D filled with PROPER formula results showing all names from column A converted to title case

Watch out: PROPER also capitalizes a letter that follows an apostrophe, so it's becomes It'S. Names like O’Brien come out right, but check words with apostrophes after you convert.

Remove Extra Spaces with TRIM

Notice in our solution columns (B:D), “James Willard” has an extra space between his first and last names.

Excel results columns B through D showing James Willard with a visible double space between his first and last name in all three output columns

A less obvious issue is that “Gary Miller” has an extra space at the end of his name.

Excel result cell showing Gary Miller with a trailing space after his last name highlighted to reveal the invisible extra space problem

If you need to remove any unnecessary leading spaces, trailing spaces, or multiple spaces in between words, you can use the TRIM function.  The syntax for the TRIM function is as follows:

=TRIM(text)

The variable “text” can refer to a cell address or to a statically declared string.

=TRIM(A1)

or

=TRIM("    This   is  a     test    of   the  TRIM    function     ")

In our sample file, we will select cell E5 and enter the following formula:

=TRIM(A5)
Excel TRIM formula =TRIM(A5) in cell E5 removing leading, trailing, and excess internal spaces from the name in column A

Fill the formula down column E to finish converting the list in column A.

We can combine these functions to both trim and fix text casing.  Suppose we wish to convert the text to upper case and trim all the extraneous spaces.  We can write the formula two different ways.

=UPPER(TRIM(A5))

or

=TRIM(UPPER(A5))

Either version produces the desired results.  Pick the one that makes the most sense to your brain.

How to Change Case Without Formulas (Flash Fill)

The advantage of Flash Fill is that it doesn’t require the use of functions and the result is like the Copy -> Paste Values action in that the result cells contain the text, not formulas.

The disadvantage is that there is no dynamic connection back to the original list of text.  If the original list changes, the “fixed” version of the list does not update.  This is okay if you have a static list or you only need to perform the conversion one time and you don’t require updates.

There are many ways to use Flash Fill, but a simple way is to type on the same row as the data a version of the data as you WISH it were formatted.

First corrected name typed in the Upper Case column next to the original list as the Flash Fill example

After you press ENTER to commit the new version to a cell, press the keyboard combination CTRL+E.

Excel column B with Flash Fill results after pressing Ctrl+E showing all names converted to uppercase using the typed pattern as a guide

The system will look for patterns in what you typed against other text on the same row.  If a pattern exists, such as “I see the text you typed, but you typed it in upper case letters”, the system will repeat the pattern for the remainder of the rows in the table.

The Flash Fill tool can also be activated by selecting Home (tab) -> Editing (group) -> Fill (button) -> Flash Fill.

Excel Home tab with the Fill dropdown open in the Editing group showing Flash Fill as an alternative to the Ctrl+E keyboard shortcut

Another way to activate the Flash Fill tool is to select Data (tab) -> Data Tools (group) -> Flash Fill.

Excel Data tab with the Flash Fill button highlighted in the Data Tools group as a third way to trigger the Flash Fill feature

If we use the Flash Fill technique to convert the names in column A to upper case version in column B, notice that “James Willard” still has the extra space between his names.

Flash Fill can fix that problem as well.  Flash Fill can perform the TRIM and the UPPER functions simultaneously.  The trick is to select a name that contains extra spaces before, after, or within itself.  In this case, we will use “james  willard”.

In cell B4, type “JAMES WILLARD” with only a single space separating the first from the last name.

Excel column B with JAMES WILLARD typed with a single space in cell B4 as the Flash Fill seed to fix both uppercase conversion and extra spacing

After you press ENTER, press the keyboard combination CTRL+E.

Flash Fill will fix the names in BOTH directions of the list. Not only will it create upper case versions of the names, but it is smart enough to detect that you only placed a single space between the names and that it should do the same thing. Also, because you didn’t add any additional leading or trailing spaces, Flash Fill doesn’t place any in the results list of names.

Although Flash Fill is a fantastic tool that can quickly correct many data entry mistakes, it isn’t perfect. If there isn’t a recognizable pattern, or if it perceives multiple patterns, it may produce unexpected results. It’s always a good idea to double-check the output of Flash Fill for accuracy.

Unlock the secrets of Excel Flash Fill with our in-depth guide here.

How to Change Case with Power Query

If you’re cleaning up a large dataset, Power Query is faster than formulas. Select your data, go to Data > From Table/Range. In the Power Query Editor, select the column, then go to Transform > Format and choose Uppercase, Lowercase, or Capitalize Each Word.

Power Query changes the actual values (not just the display) and works on thousands of rows without adding helper columns.

For a full walkthrough, see our guide on text transformation with Power Query.

How to Display Uppercase with an All-Caps Font

The advantage of this method is lack of composing any formulas or using Flash Fill.

Imagine a scenario where you always want a page title to be capitalized, but you don’t want to worry about how the user types the title. 

If the user enters the title in lower case, proper case, or sentence case, we want the typed text to automatically convert to upper case.

We can accomplish this by using a font that contains no lower case version of the letters.

When you are browsing through your list of fonts, you can tell if a font is upper case only because the font name will be in all upper case letters.

Excel font dropdown list scrolled to show all-uppercase font names including Copperplate Gothic and Engravers displayed in full caps to identify them

Some of the supplied fonts in Microsoft Windows/Office that contain only upper case letters are:

  • Copperplate Gothic
  • Engravers
  • Felix Titling
  • Stencil

You are not restricted to fonts that came with Windows or Office.  Many websites exist that provide both free and “pay-to-play” fonts.

When you are downloading a font from one of these sites, or other font supplier’s sites, be mindful that some fonts are free for personal use, but other fonts may require a fee when used in a business capacity.

When you download and install the font based on the website’s installation instructions, the font will be available to all your Windows and Office applications, not just Excel.

Using the Newly Installed Font

With the font installed, we return to Excel and select a cell where we will enter our title.

From the font dropdown list, select the desired font that contains all upper case letters.

Excel font dropdown with an all-caps font selected showing the font name displayed in uppercase in the font list to indicate it has no lowercase letters

It doesn’t matter whether you type your title in upper case, lower case, or mixed case, the result will always be in an upper case format.

Text typed as This is MY Title shown in all caps because the selected font has no lowercase letters

Apply an All-Caps Font Faster with Cell Styles

Finding a specific font for all your titles can be time consuming, especially if you must repeatedly scroll through long list of font choices.

A timesaving way to apply an ALL CAPS font to a cell is to utilize Cell Styles.

Cell Styles are located on the Home tab in the Styles group.

Excel Home tab with the Cell Styles gallery open in the Styles group showing predefined heading and theme styles available for quick formatting

You have the option to use an existing style, create your own style and add it to the library, or modify an existing style.

If we wish to use the Heading 1 style, but we wish it to be in all upper case letters, right-click on the Heading 1 style and select Modify.

Excel Cell Styles gallery with Heading 1 right-clicked showing the Modify option to edit the style and assign an all-caps font to it

In the Style dialog box, click the Format button.

Excel Style dialog for Heading 1 showing the style properties summary with the Format button to open the Format Cells dialog for customization

In the Format Cells dialog box, select the Font tab and set the font to the desired ALL CAPS font.  You can also use this opportunity to set the font color, underline color, border color, etc…

Excel Format Cells dialog on the Font tab with an all-caps font selected to assign it permanently to the Heading 1 cell style

We can now select a cell and type in our new title.  Once entered, with the title cell selected, click the Heading 1 style from the Cell Styles list.

Excel spreadsheet with a title cell typed in mixed case and the Heading 1 cell style applied rendering the text in all uppercase via the all-caps font

Download the Workbook

Download the Change Case Workbook

Practice every case and spacing fix from this tutorial on real names.

Frequently Asked Questions

How do I change lowercase to uppercase in Excel?

Enter =UPPER(A1) in an empty column, where A1 holds the text, and fill it down. To replace the original text, copy the results and paste them back as values.

Is there a shortcut to change case in Excel like Shift+F3 in Word?

No. Excel has no shortcut that switches case. Use UPPER, LOWER or PROPER, or type one corrected example and press Ctrl+E to let Flash Fill do the rest.

How do I capitalize the first letter of each word in Excel?

Use =PROPER(A1). It capitalizes the first letter of every word and makes the other letters lowercase. PROPER also capitalizes a letter right after an apostrophe, so check words with apostrophes after you convert.

How do I change case without a formula?

Use Flash Fill. Type the first entry the way you want it in the next column, press Enter and then Ctrl+E. The results are plain text, so they do not update if the original list changes.

How do I keep the new text and remove the formulas?

Select the formula results, copy them and paste them as values, either in the same place or over the original column. The cells then hold plain text instead of formulas.

Does an all-caps font change the text in the cell?

No. An all-caps font only changes how the text looks. The cell keeps exactly what was typed, so formulas, filters and lookups still see the original casing.

Leila Gharani

Founder of XelPlus and ten-time Microsoft MVP. Leila helps over 500,000 professionals master Excel, Power BI, and data automation through practical, real-world training.