You can use your favorite social network to register or link an existing account:
Or use your email address to register without a social network:
Sign in with these social networks:
Or enter your username and password
Forgot your password?
Yes, please link my existing account with for quick, secure access.
No, I would like to create a new account with my profile information.
People often ask how to change the case of text in Excel. This issue tends to crop up when you work with data from external sources.
Unlike Word, Excel doesn't have a Change Case button or keyboard shortcut for magically switching between uppercase, lowercase, and proper case. Now, that doesn't mean that you have to manually retype all your text. (In fact, the very thought of you doing that makes me weep.) Instead, you can use a function designed specifically for this job, or even a macro.
Excel MVP Bill Jelen recently created a couple of videos that explain each of these techniques.
Functions are predefined formulas in Excel that are designed to do something useful for you. There are three that can help you change case: UPPER, LOWER, and PROPER. The UPPER and LOWER functions are self-explanatory. PROPER capitalizes the first letter in a text string and any other letters in text that follow any character other than a letter. For example, it will convert Jean-Paul SARTRE to Jean-Paul Sartre.
The basic steps for changing the case of text by using a function are as follows:
This sounds more complicated than it actually is. If you're confused, watch Bill's demo, which clarifies it all:
The previous technique works great if you're converting text on an infrequent basis. If you need to do this more regularly, you can create a macro that changes case, and then create a toolbar button that launches the macro whenever you need it. In the video below, Bill walks you through the process of creating a macro and then hooking it up to a button on the Quick Access Toolbar.
Here's the VBA code for Bill's macro, if you want to try this on your own.
Sub UpperSelection() For Each cell In Selection If Not cell.HasFormula Then cell.Value = UCase(cell.Value) End If Next cellEnd Sub
Sub LowerSelection() For Each cell In Selection If Not cell.HasFormula Then cell.Value = LCase(cell.Value) End If Next cellEnd Sub
Sub ProperSelection() For Each cell In Selection If Not cell.HasFormula Then cell.Value = Application.WorksheetFunction _ .Proper(cell.Value) End If Next cellEnd Sub
For more great tips, visit Bill's site, MrExcel.com. Also, if you're new to VBA and want to explore the topic, I highly recommend Getting started with VBA in Excel 2010.
-- Anneliese Wirth
Comments: (6) Collapse
I've often wondered why there isn't a "change case" button in Excel. Poor Excel. It's as if the creators think it's ONLY used for numbers (that, obviously have no upper or lower cases). I've never been a real whiz kid with formulas but (and scared to death of macros) but I tried BOTH of these ideas following the instructions exactly and they BOTH worked! Wow!
(But still: wouldn't it be easier to add a "Change case" feature? Thanks--this helped me a lot, Anneliese (hey, are you one of the original Sound of Music kids???).
My dear Queen --
I am DELIGHTED to hear that! And I am with you--it would be nice to just have a built-in button.
Funny you should mention Sound of Music. During an All-Hands meeting yesterday, several of us broke into a rousing rendition of Maria. :-)
See also this article with code that can be faste and a way to add a menu item for this
msdn.microsoft.com/.../gg469862.aspx
See also Change cases in cell addon from below webpage.
blogs.office.com/.../default.aspx
Free Exshail Classic Menu for Excel-2007
exshail.web.officelive.com/Exshail_Classic_Menu.aspx
It is of great use. Thanks.
@Ron, Exshail: Thanks for the pointers to more resources. We appreciate it.
@dayagovekar: Glad you found it useful.
Comments: (loading) Collapse