Sub topic 5
PROPER: Standardizing Capitalization
This chapter assumes you can enter and copy formulas, that you understand relative references such as A2, and that you know a cell can hold text or a number. It also assumes you have already seen TRIM and CLEAN. PROPER is the third function in the set, and it works differently from the other two. TRIM and CLEAN remove characters. PROPER changes the case of characters that are already there.
What PROPER does
PROPER takes one text value and returns a copy with consistent capitalization. It capitalizes the first letter of each word and lowercases every other letter.
=PROPER(A2)If A2 contains jOHN sMITH, the formula returns John Smith. The original cell is not changed. Like most worksheet functions, PROPER reads its input and writes its result somewhere else, which is why you will use it in a helper column.
Mixed capitalization is common in imported data. One system exports names in capitals, another in lowercase, and people who type by hand do both. The result is the same customer shown as SMITH, JOHN, smith, john and Smith, John.
Case matters less than you might expect for matching. Excel's = operator, VLOOKUP, XLOOKUP, MATCH and the default sort all ignore case. Capitalization problems therefore show up mostly in three places:
- Reports, mail merges and labels, where
JOHN SMITHlooks careless. - Case-sensitive tools such as
EXACT,FINDand Power Query grouping. - Data that other systems read, where
SmithandSMITHare treated as different values.
The rule PROPER follows
PROPER does not recognize words in a linguistic sense. It applies one rule to every character, from left to right: a letter becomes uppercase if the character before it is not a letter, and lowercase otherwise. The first character of the text counts as having no letter before it.
Two consequences follow from this rule.
- Anything that is not a letter acts as a word boundary. That includes spaces, hyphens, commas, slashes, apostrophes and digits.
- A letter that comes straight after a digit is capitalized, because a digit is not a letter.
The table shows what the rule produces.
| Input in A2 | Result of `=PROPER(A2)` | Why |
|---|---|---|
| `john SMITH` | `John Smith` | Ordinary case. |
| `MARY-JANE o'brien` | `Mary-Jane O'Brien` | Hyphen and apostrophe start new words. |
| `3rd floor` | `3Rd Floor` | `r` follows a digit, so it is capitalized. |
| `po box 12b` | `Po Box 12B` | Same digit rule. |
| `it's` | `It'S` | The `s` follows an apostrophe. |
| `x2y` | `X2Y` | `y` follows a digit. |
The last three rows are the cases where the rule gives a result you probably do not want. A later chapter covers how to correct them. For now, remember that these results come from the rule above and not from a fault in your data.
What PROPER leaves alone
PROPER changes only the case of letters. Everything else passes through untouched, including characters you would like it to remove. This catches many learners the first time.
=PROPER(" ann lee ")This returns Ann Lee with the leading spaces, the three spaces between the words and the trailing space all still in place. PROPER does not trim. It also does not remove tabs, line feeds or non-breaking spaces, so a cell that looks clean after PROPER can still fail a comparison.
You can verify this with the length check from the TRIM chapter:
=LEN(PROPER(A2))-LEN(A2)For letters, changing case never adds or removes characters, so this returns 0 for every row. A result other than 0 would be surprising, and it is one reason to inspect the function's inputs. If you want to know whether a cell still has extra spaces after cleanup, compare against the TRIM result as shown here:
=LEN(B2)-LEN(TRIM(B2))Here B2 holds the PROPER output. A value above 0 means spaces remain.
Characters outside the basic Latin alphabet are handled by the same rule. Accented letters such as é and letters in Greek or Cyrillic scripts are treated as letters, so JOSÉ ÁLVAREZ becomes José Álvarez. Characters that Excel does not consider letters behave like punctuation and start a new word.
PROPER compared with UPPER and LOWER
Excel has three case functions. They share a signature, one text argument, but they behave differently.
| Function | Effect on `jOHN sMITH` | Typical use |
|---|---|---|
| `UPPER` | `JOHN SMITH` | Codes, state abbreviations, product IDs. |
| `LOWER` | `john smith` | Email addresses, usernames, normalized keys. |
| `PROPER` | `John Smith` | Names, titles, cities, street addresses. |
Choose by the kind of data in the column, not by which function is convenient. A column of two-letter state codes should go through UPPER. Running PROPER over it would turn NY into Ny. Email addresses are usually stored in lowercase, so LOWER is the better choice there, and PROPER would damage them.
Using PROPER in a helper column
Because a formula cannot overwrite the cell it reads, you write the result next to the source. Suppose raw names are in column A, starting at A2, with a header in row 1.
- Put a header such as
Name (clean)inB1. - Enter
=PROPER(A2)inB2. - Double-click the fill handle at the bottom-right corner of
B2. Excel copies the formula down as far as the neighboring column has data. - Check the results, then use Paste Special to convert them to values when you are happy (a later chapter covers this).
Because the reference A2 is relative, the formula in B3 reads A3, and so on down the column.
If the source column is part of an Excel Table, Excel fills the formula down automatically and writes it with a structured reference such as =PROPER([@Name]). That form works the same way.
What PROPER does with non-text values
PROPER always returns text. It accepts any value, but the result is not always what you expect.
=PROPER(A2)| Value in A2 | Result | Note |
|---|---|---|
| `12345` (a number) | `12345` as text | Looks the same but is now text and left-aligned. |
| A date such as 2026-11-27 | `46353` as text | The date's serial number, not a formatted date. |
| An empty cell | An empty string | Looks blank, but `ISBLANK` on the result returns `FALSE`. |
| `#N/A` (an error) | `#N/A` | Errors pass through. |
The date row is the most common surprise. PROPER sees the underlying serial number and converts that to text. If a column mixes text and dates, apply PROPER only to the text column, or wrap it in IF(ISTEXT(A2), PROPER(A2), A2).
=IF(ISTEXT(A2),PROPER(A2),A2)This returns the original value untouched when it is not text, so numbers and dates keep their type. Use this form when a column holds a mix of names and numbers, such as a lookup column that contains some numeric IDs.
An error in the input also spreads into your helper column. If one source cell is #N/A, the matching helper cell is #N/A too. Wrapping the formula in IFERROR hides the error, but it also hides real problems. Prefer finding out why the source cell has an error.
Checking the results
Applying PROPER blindly to a long list is risky, because the rule gets some entries wrong, as the earlier table showed. A quick review step helps.
- Sort the helper column and scan for entries with a capital letter in the middle of a word, such as
3RdorIt'S. - Compare the original and cleaned columns with
EXACT, which is case-sensitive, to see how many rows actually changed:
=EXACT(A2,B2)This returns TRUE when the two cells are identical including case, so the rows returning FALSE are the ones PROPER altered. Filtering on FALSE gives you a short list of changed rows to review, instead of the whole column.
Where PROPER sits in the cleanup
In the full cleanup, PROPER usually runs last, after CLEAN and TRIM have removed the characters that would otherwise get in the way. The order has no effect on the letters themselves, since PROPER never moves characters. It matters for readability, and because a later chapter combines all three functions into one nested formula, it helps to know that PROPER goes on the outside. The next chapters cover diagnosing hidden characters and removing non-breaking spaces. Neither of those fixes is part of PROPER itself.
Exercise
Cell A2 contains mcdonald's 4th ave . What does =PROPER(A2) return, and which parts of the cell does it leave unchanged?
Show answer
It returns Mcdonald'S 4Th Ave . The letters are recapitalized by the rule (a letter is uppercase if the previous character is not a letter). s after the apostrophe becomes S and th after the digit 4 becomes Th. The leading spaces, the two trailing spaces and the spacing between the words are unchanged, because PROPER only changes the case of letters. TRIM would be needed to remove the extra spaces.
Exercise
A column holds a mix of customer names and numeric customer IDs. You want names in proper case but the numbers left as numbers. Write a formula for B2 that does this.
Show answer
=IF(ISTEXT(A2),PROPER(A2),A2). ISTEXT is TRUE only for text, so names go through PROPER. Numbers (and dates) are returned unchanged, so they keep their numeric type instead of becoming text.