Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and 2021. 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.

Specifying Proper Case

Written by Allen Wyatt (last updated May 12, 2026)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and 2021


8

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 2021. You can find a version of this tip for the older menu interface of Excel here: Specifying Proper Case.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Making Ignore All Work for a Document on All Systems

When you tell Word's spell checker to ignore all instances of a misspelling, you may expect that the misspelling will be ...

Discover More

Hyperlinks that Open in a Different Browser Window

When you click a link in a browser, the target of that link might open in the same window or in a new window. Getting an ...

Discover More

Temporarily Changing the Printer in a Macro

You can use a macro to print to any printer you have defined in Windows. It is good practice, if you are changing which ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel Data Analysis and Business Modeling today!

More ExcelTips (ribbon)

Returning the MODE of a Range

The MODE function is used to determine the most frequently recurring value in a range. This tip explains how to use the ...

Discover More

Returning an ANSI Value

Need to know the character value of the first character in a string? It's easy to do, without using a macro, by using the ...

Discover More

Returning Item Codes Instead of Item Names

The data validation capabilities of Excel are really handy when you want to limit what is put into a cell. However, you ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is three more than 0?

2026-05-15 11:09:47

J. Woolley

Here are two alternate versions of the MakeProper3 macro in my most recent comment below:

Sub MakeProper4()
If Selection.HasFormula = False Then _
    Selection = Application.Proper(Selection)
End Sub

Notice Application.Proper is the same as WorksheetFunction.Proper except the latter produces a debug dialog if Proper returns an error but the former simply returns the error. Both are equivalent to Excel's PROPER function.

Sub MakeProper5()
Dim cell As Range
If Selection.HasFormula = False Then _
    For Each cell In Selection: cell = StrConv(cell, vbProperCase): Next cell
End Sub

Notice PROPER(...) capitalizes the first letter after any non-letter, reducing the rest to lowercase, while StrConv(..., vbProperCase) ignores non-letters except space, Tab, and CR/LF.


2026-05-15 04:52:06

sandeepkothari

Thanks Woolley.


2026-05-14 16:05:21

J. Woolley

@sandeepkothari
Willy's macro tests an array with a single element (1 or TRUE); I'm not sure why. This version works as well as Willy's:

Sub MakeProper2()
Selection = Evaluate("PROPER(" & Selection.Address & ")")
End Sub

And this version does nothing if Selection includes a formula:

Sub MakeProper3()
If Selection.HasFormula = False Then _
    Selection = Evaluate("PROPER(" & Selection.Address & ")")
End Sub

Notice Selection can be more than one cell.


2026-05-14 09:19:42

jamies

Thanks to J. Woolley for the link to

https://excelribbon.tips.net/T011267_Modifying_Proper_Capitalization.html

gives the sort of code needed to "Get it Right"


2026-05-14 07:36:44

sandeepkothari

Hi Willy, pl explain why you have used the IF function? I tried without it & did not succeed to get the desired result.


2026-05-13 09:59:19

J. Woolley

@jamies
See https://excelribbon.tips.net/T011267_Modifying_Proper_Capitalization.html


2026-05-12 05:43:31

jamies

Problem with "PROPER" is that it does not recognise punctuation appropriately, and such prefixes to "family", or Tribe, "Clan" names or such as "Mac", "Mc", De La etc.

So dealing with "Title" cases needs manual, or scripted handling, or careful use of Substitute actions -
Luckily there is now the Regex facilities.

See such things as REGEXEXTRACT Function

0: Return the first string that matches the pattern.
1: Return all strings that match the pattern as an array.
2: Return capturing groups from the first match as an array.
Note: Capturing groups are parts of a regex pattern surrounded by parentheses "(...)".


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.


This Site

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.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.