Menu
×
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP C C++ C# AWS W3.CSS HOW TO BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SWIFT SASS VUE GEN AI SCIPY CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING HTML & CSS BASH RUST TOOLS

Excel Tutorial

Excel HOME Excel Introduction Excel Get Started Excel Overview Excel Syntax Excel Ranges Excel Fill Excel Move Cells Excel Add Cells Excel Delete Cells Excel Undo Redo Excel Formulas Excel Relative Reference Excel Absolute Reference Excel Arithmetic Operators Excel Parentheses Excel Functions

Excel Formatting

Excel Formatting Excel Format Painter Excel Format Colors Excel Format Fonts Excel Format Borders Excel Format Numbers Excel Format Grids Excel Format Settings

Excel Data Analysis

Excel Sort Excel Filter Excel Tables Excel Conditional Format Excel Highlight Cell Rules Excel Top Bottom Rules Excel Data Bars Excel Color Scales Excel Icon Sets Excel Manage Rules (CF) Excel Charts

Excel PivotTables

Excel PivotTable Intro Excel Create PivotTable Excel PivotTable Values Excel PivotTable Filter Excel PivotTable Group Excel Calculated Field Excel PivotChart

Excel Case

Case: Poke Mart Case: Poke Mart, Styling

Excel Functions

AND AVERAGE AVERAGEIF AVERAGEIFS CONCAT COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS DATEDIF FILTER HLOOKUP IF IFERROR IFS INDEX INDEX MATCH LEFT LEN LOWER MATCH MAX MEDIAN MID MIN MODE NETWORKDAYS NPV OR PROPER RAND RIGHT ROUND SORT STDEV.P STDEV.S SUBSTITUTE SUM SUMIF SUMIFS SUMPRODUCT TEXTJOIN TODAY TRIM UNIQUE UPPER VLOOKUP XLOOKUP XOR

Excel How To

Convert Time to Seconds Difference Between Times NPV (Net Present Value) Remove Duplicates

Excel Cert

Excel Certificate

Excel Examples

Excel Exercises Excel Syllabus Excel Study Plan Excel Training

Excel References

Excel Keyboard Shortcuts


Excel PROPER Function


Share

PROPER Function

The PROPER function is a premade function in Excel, which capitalizes the first letter of each word in a text. All the other letters become lowercase.

It is useful for names that were typed in different ways, like ash ketchum, MISTY or bRoCK.

It is typed =PROPER and has one part:

=PROPER(text)

Text: The text to change. This is usually a cell, like A2.

How to use the PROPER function:

  1. Select a cell (B2)
  2. Type =PROPER
  3. Double click the PROPER command
  4. Select the cell with the text (A2)
  5. Hit enter

Let's have a look at an example!

These trainers signed up for a tournament at the Poke Mart. Their names were typed in all kinds of ways. Copy them and paste them into cell A1 to follow along:

Example data

AB
1TrainerName
2ash ketchum
3MISTY
4bRoCK
5gary OAK
6nurse joy
7OFFICER JENNY
8lt. surge
9professor oak

Use the PROPER function to fix the names, in column B:

AB
1TrainerName
2ash ketchumAsh Ketchum
3MISTYMisty
4bRoCKBrock
5gary OAKGary Oak
6nurse joyNurse Joy
7OFFICER JENNYOfficer Jenny
8lt. surgeLt. Surge
9professor oakProfessor Oak
=PROPER(A2)

The function is repeated with the filling function for each row, down to B9.

The first letter of each word is now uppercase, and the rest is lowercase. ash ketchum becomes Ash Ketchum, and bRoCK becomes Brock.

In lt. surge, the s comes after a space, so it is capitalized too: Lt. Surge.



Letters After Symbols and Numbers

PROPER does not know what a word is. It capitalizes every letter that comes after something that is not a letter: a space, a dot, a dash, an apostrophe or a digit.

This gives the right result for most names, but not for all of them:

AB
1TextResult
2mr. mimeMr. Mime
3ho-ohHo-Oh
4farfetch'dFarfetch'D
5team rocket'sTeam Rocket'S
63rd place3Rd Place
=PROPER(A2)

Mr. Mime and Ho-Oh are correct.

But farfetch'd becomes Farfetch'D, and team rocket's becomes Team Rocket'S. The letter after the apostrophe is capitalized.

Digits have the same effect. 3rd place becomes 3Rd Place, because the r comes after the digit 3.

PROPER also makes the letters inside a word lowercase. A name like McKenzie becomes Mckenzie.

Note: Always check the results of PROPER, especially for text with apostrophes, digits, or capital letters inside a word.


Fix Mistakes With SUBSTITUTE

You can fix a known mistake by putting PROPER inside SUBSTITUTE. SUBSTITUTE is case-sensitive, so it only changes the wrong capital letter:

AB
1TextResult
2team rocket'sTeam Rocket's
33rd place3rd Place

The formula in B2:

=SUBSTITUTE(PROPER(A2), "'S", "'s")

The formula in B3:

=SUBSTITUTE(PROPER(A3), "3Rd", "3rd")

PROPER runs first. Then SUBSTITUTE changes 'S back to 's, and 3Rd back to 3rd.

Use a fix like this only where it fits. The first formula would also change O'Sullivan into O'sullivan.

Note: The different parts of the function are separated by a symbol, like comma , or semicolon ;

The symbol depends on your Language Settings.


PROPER With TRIM

Names typed by hand often have extra spaces too. Put TRIM inside PROPER to fix both at once:

AB
1TrainerName
2 ash ketchum Ash Ketchum
3MISTY Misty
4 gary oakGary Oak
=PROPER(TRIM(A2))

The names in column A have spaces before, after, and between the words. TRIM removes the extra spaces, and PROPER fixes the letter case.

Good job! The names are clean and ready to use.


Related Functions

To change all letters to capitals, use UPPER. To change all letters to lowercase, use LOWER.


Free account

Track your progress

XP earned 0 Day streak 0 Spaces 0 League —

New

Learn in Adventure Mode W3Schools Adventure App

Coding fundamentals as bite-sized lessons and challenges.

×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookies and privacy policy.

Copyright 1999-2026 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.