Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Specifying Proper Case.
Written by Allen Wyatt (last updated May 15, 2021)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365
If you receive information from others as an odd assortment of upper- and lowercase characters, you may want to put the PROPER worksheet function to work for you. This function converts text so that the first letters of any words are uppercase and everything else is lowercase. Actually, what it does is make everything lowercase except any letters that do not follow another letter. Thus, any letters following spaces, punctuation, or numbers would be converted to uppercase.
As an example, if cell D4 contains "THIS IS MY TEXT", you could use the following formula in cell E4:
=PROPER(D4)
The result is that cell E4 will contain "This Is My Text".
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12046) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Specifying Proper Case.
Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!
You may want to use Excel to display dates using a different language than your normal one. There are a couple of ways ...
Discover MoreWhen applying trigonometry to the values in a worksheet, you may need to convert radians to degrees. This is done by ...
Discover MoreProgrammers know that a staple of any language is the ability to create conditional statements. Excel understands this, ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2021-05-15 10:09:09
Willy Vanhaelen
If you want to change the case directly in the cell or a range, you can use this one-liner macro:
Sub MakeProper()
Selection = Evaluate("IF({1},PROPER(" & Selection.Address & "))")
End Sub
Of course you can replace PROPER with UPPER or LOWER and the macro will make the changes accordingly.
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments