Method #1: Using Formulas
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 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 Case
The function to convert any cell’s text to upper case is known as theUPPERfunction. The syntax for theUPPERfunction 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 cellB5and enter the following formula:
=UPPER(A5)
Fill the formula down columnBto finish converting the list in columnA.
If you don’t want the formulas in the resultant cells, you just want the new upper-cased versions of the names as if they had been hand-typed, you can select the names and perform aCopy -> Past Valuesoperation on them.
A lesser-know 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 form 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”.
Lower Case
The function to convert any cell’s text to upper case is known as theLOWERfunction. The syntax for theLOWERfunction 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 theUPPERfunction, the cell reference version is the most useful option of the two.
In our sample file, we will select cellC5and enter the following formula:
=LOWER(A5)
Fill the formula down columnCto finish converting the list in columnA.
Proper Case
The function to convert any cell’s text to upper case is known as thePROPERfunction. The syntax for thePROPERfunction is as follows:
=PROPER(text)
The variable “text” can refer to a cell address or to a statically declared string.
=PROPER(A1)
or
=PROPER(“THIS IS A TEST OF THE PROPER FUNCTION”)
In our sample file, we will select cellD5and enter the following formula:
=PROPER(A5)
Fill the formula down columnDto finish converting the list in columnA.
Bonus Problem to Solve
Notice in our solution columns (B:D), “James Willard” has an extra space between his first and last names.
A less obvious issue is that “Gary Miller” has an extra space at the end of his name.
If you need to remove any unnecessary leading spaces, trailing spaces, or multiple spaces in between words, you can use theTRIMfunction. The syntax for theTRIMfunction 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 cellE5and enter the following formula:
=TRIM(A5)
Fill the formula down columnEto finish converting the list in columnA.
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(A3))
or
=TRIM(UPPER(A3))
Either version produces the desired results. Pick the one that makes the most sense to your brain.
Method #2: Flash Fill
The advantage ofFlash Fillis that it doesn’t require the use of functions and the result is like theCopy -> Paste Valuesaction 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.
After you press ENTER to commit the new version to a cell, press the keyboard combinationCTRL-E.
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 selectingHome (tab) -> Editing (group) -> Fill (button) -> Flash Fill.
Another way to activate theFlash Filltool is to selectData (tab) -> Data Tools (group) -> Flash Fill.
If we use theFlash Filltechnique to convert the names in columnAto upper case version in columnB, notice that “James Willard” still has the extra space between his names.
Flash Fillcan fix that problem as well.Flash Fillcan perform theTRIMand theUPPERfunctions 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 cellB4, type “JAMES WILLARD” with only a single space separating the first from the last name.
After you press ENTER, press the keyboard combinationCTRL-E.
Flash Fillwill 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 training spaces,Flash Filldoesn’t place any in the results list of names.
AlthoughFlash Fillis a fantastic tool that can quickly correct may data entry mishaps, 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 ofFlash Fillfor accuracy.
Method #3: 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 in upper case, but you don’t want to worry about how the user type 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.
Some of the supplied fonts in Microsoft Windows/Office that contain only upper case letters are:
- Copperplate Gothic
- Engravers
- Felix Tilting
- 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.
It doesn’t matter weather you type your title in upper case, lower case, or mixed case, the result will always be in an upper case format.
Using Cell Styles to Expedite Font Assignment
Locating a specific font for all 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 utilizeCell Styles.
Cell Styles are located on theHometab in theStylesgroup.
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 theHeading 1style, but we wish it to be in all upper case letters, right-click on theHeading 1style and selectModify.
In theStyledialog box, click theFormatbutton.
In theFormat Cellsdialog box, select theFonttab 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…
We can now select a cell and type in our new title. Once entered, with the title cell selected, click theHeading 1style from theCell Styleslist.
Practice Workbook
Feel free to Download the WorkbookHERE.
Published on: April 5, 2019
Last modified: March 2, 2023
Category:,Excel,Formulas
Tagged as:Cell Styles,change case,Flash Fill,Fonts,LOWER function,PROPER,Styles,TRIM,UPPER function
Leila Gharani
I'm a 5x Microsoft MVP with over 15 years of experience implementing and professionals on Management Information Systems of different sizes and nature.
My background is Masters in Economics, Economist, Consultant, Oracle HFM Accounting Systems Expert, SAP BW Project Manager. My passion is teaching, experimenting and sharing. I am also addicted to learning and enjoy taking online courses on a variety of topics.
More About Leila Join 300,000+ professionals in our courses
FAQs
How do I change font case without formula in Excel? ›
In the Style dialog box, click the Format button. 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… We can now select a cell and type in our new title.
What is the shortcut key for change case in Excel without formula? ›To use the Excel uppercase shortcut, select the cells that you want to convert to uppercase letters. Then, press the Ctrl + Shift + U keys on your keyboard.
How to change lowercase to uppercase in Excel without formula in Excel? ›- Use the Flash Fill Feature. ...
- Use Excel Caps Fonts. ...
- Change Lowercase to Uppercase in Excel with the Help of Microsoft Word. ...
- Use an Excel VBA Code to Convert Letters to Uppercase. ...
- Use the Power Query Tool to Change Lowercase to Uppercase.
Type =PROPER(A2), and press Enter. Tip: Use the formula =UPPER(A1) for all UPPERCASE; =LOWER(A1) for all lowercase.
How do I change text in a cell without changing formulas? ›Press F2 (or double-click the cell) to enter the editing mode. Select the formula in the cell using the mouse, and press Ctrl + C to copy it. Select the destination cell, and press Ctl+V. This will paste the formula exactly, without changing the cell references, because the formula was copied as text.
What is the shortcut key to convert case in Excel? ›Select the required cells to change the values into lowercase and press the “Ctrl+Shift+L” keys.
What is the shortcut key for change case? ›To use a keyboard shortcut to change between lowercase, UPPERCASE, and Capitalize Each Word, select the text and press SHIFT + F3 until the case you want is applied.
How to convert uppercase to lowercase without using string function? ›- #include <stdio.h>
- #include <conio.h>
- int main ()
- {
- char upr, lwr; // declare variables.
- int ascii;
- // convert in lower case.
- printf (" Enter the Upper Case Character: ");
Another way to capitalize in Excel shortcut is to use the keyboard shortcut. To do this, simply select the cell or range of cells that you want to change, then press the 'Ctrl+Shift+U' keys on your keyboard. This will change all of the letters in the selected cells to uppercase.
How do I mass change characters in Excel? ›The SUBSTITUTE function is full automatic. All you need to do is supply "old text" and "new text". SUBSTITUTE will replace every instance of the old text with the new text. If you need to perform more than one replacement at the same time, you'll need to nest multiple SUBSTITUTE functions.
How do I change the same text in multiple cells in Excel? ›
To do this, click on the "Edit" menu, then click on "Find and Replace." In the "Find what" field, type in the text or value that you want to replace. In the "Replace with" field, type in the text or value that you want to use as a replacement. Then, click on the "Replace All" button.
How do you edit the text of a cell that has a formula? ›Click the cell that contains the data that you want to edit, and then click anywhere in the formula bar. This starts Edit mode and positions the cursor in the formula bar at the location that you clicked. Click the cell that contains the data that you want to edit, and then press F2.
What is the formula to replace text with other text? ›=SUBSTITUTE(text, old_text, new_text, [instance_num])
The SUBSTITUTE function uses the following arguments: Text (required argument) – This is the text or reference to a cell that contains text for which we want to substitute characters. Old_text (required argument) – The text we wish to replace.
To copy the actual value instead of the formula from the cell to another worksheet or workbook, you can convert the formula in its cell to its value by doing the following: Press F2 to edit the cell. Press F9, and then press ENTER.
How do I make text plain text in Excel? ›On the Home tab, in the Number group, click the arrow next to the Number Format box, and then click Text.
What is Ctrl Shift J in Excel? ›Ctrl+Shift+J - This shortcut will open the Filter dialog box, where you can select the criteria for your filter. To use this shortcut, first select the data that you want to filter. Then, press Ctrl+Shift+J. A dialog box will appear where you can select the criteria for your filter.
How do you make a case in Excel? ›How to use Create Cards. On the Ablebits Tool tab, in the Transform group, click the Create Cards icon: Use the Create Cards dialog window to adjust the options: By default, the add-in highlights the entire data range in your worksheet.
Why is Shift F3 not working? ›Shift+F3 Shortcut was “Hijacked” By another program
Nevertheless, this can still happen and you should check if you recently installed any new programs on your Windows machine (Windows 10, 8, 7, etc.) and whether it added new shortcuts when they were installed.
To do this | Press |
---|---|
Copy the selected formatting. | Ctrl+Shift+C |
Paste the selected formatting. | Ctrl+Shift+V |
Copy the header or footer used in the previous section of the document. | Alt+Shift+R |
Display the Replace dialog box, to find and replace text, specific formatting, or special items. | Ctrl+H |
Java String toLowerCase() Method
The toLowerCase() method converts a string to lower case letters. Note: The toUpperCase() method converts a string to upper case letters.
Is there a function that converts uppercase letters to lowercase? ›
The tolower() function takes an uppercase alphabet and convert it to a lowercase character.
Is there a function that converts lowercase letters to uppercase letters? ›The upper() function allows you to convert all lowercase letters in a text string to uppercase. The lower() function helps to exclude capital letters from text.
Is there a quick way to capitalize all words in Excel? ›Excel 2016
Tip: Use the formula =UPPER(A1) for all UPPERCASE; =LOWER(A1) for all lowercase. Now fill down the formula through cell B10.
While it's true that you can use functions to do lots of handy things with numbers in Excel, some functions can help you format text too. One good example is the PROPER function, which capitalizes the first letter of every word in a cell.
What is it called when you capitalize the first letter of every word? ›Title case, which capitalizes the first letter of certain words. Sentence case, in which you capitalize titles as though they're sentences. Initial case, where you capitalize the first letter of every word.
What is the function replace character in Excel? ›Use SUBSTITUTE when you want to replace specific text in a text string; use REPLACE when you want to replace any text that occurs in a specific location in a text string.
How do I make text go across multiple cells in Excel without merging? ›To center cells without merging:
Right click on the selected area and click Format Cells. Click the Alignment tab at the top of the pop-up menu. In the Alignment tab, open the Horizontal dropdown and select Center Across Selection.
- Open a spreadsheet in Google Sheets.
- Click a cell, then drag your mouse across nearby cells you want to select, or hold ⌘ on a Mac or Ctrl on Windows and click another cell.
- To format text or numbers in a cell, use the options in the toolbar at the top.
Select the range of cells, the table, or the whole sheet that you want to apply conditional formatting to. On the Home tab, click Conditional Formatting. Click New Rule. Select a style, for example, 3-Color Scale, select the conditions that you want, and then click OK.
What is Ctrl Shift F3 in Excel? ›Ctrl + Shift + F3. "Ctrl + Shift + F3" Keys are used to "create names" from the row or column labels as shown in below screenshot. Although you can create the names for the selected cell from the values of top row, bottom row, left column or right column as per your preference.
What is Ctrl R on Excel? ›
Ctrl + R: Fills the selected cells with the contents of the cell to the left. 14. Ctrl + S: Saves the active workbook.
What is Ctrl Shift D in Excel? ›- In Microsoft Excel and Google Sheets, pressing Ctrl+D fills and overwrites a cell(s) with the contents of the cell above it in a column.
- To fill the entire column with the contents of the upper cell, press Ctrl+Shift+Down to select all cells below, and then press Ctrl+D.
Click File > Options. In the Excel Options box, click Proofing > AutoCorrect Options. On the AutoFormat As You Type tab, check the boxes for the auto formatting you want to use.
How to make first letter capital in Excel 2007 without formula? ›UPPER(LEFT(A2,1) – This converts the first letter of the text string in the cell into the upper case. REPLACE function is used to only replace the first character with the upper case version of it.
How do you stop Excel from thinking something is a formula? ›- Click the Microsoft Office Button, click Excel Options, and then click Formulas.
- Click to clear the Formula AutoComplete check box.
Prevent a formula from displaying in the formula bar
Click Home > Format > Format Cells. On the Protection tab, select the Hidden check box. Click OK. Click Review > Protect Sheet.
You can't turn them off. Dynamic arrays are a result of a change to the calculation engine.
How can you change small letters to capital letters in Excel with shortcuts? ›To use a keyboard shortcut to change between lowercase, UPPERCASE, and Capitalize Each Word, select the text and press SHIFT + F3 until the case you want is applied.