Sub topic 6
Make capitalization consistent
Assume you already know how to select a range, enter a formula, and use basic Google Sheets menus. This chapter focuses on choosing a capitalization rule and applying it without damaging the original values.
Inconsistent capitalization makes identical values look different to Google Sheets. For example, north, North, and NORTH may be counted as separate categories in a pivot table or produce confusing lookup results. First decide what each column represents. Names usually use title case, email addresses usually use lowercase, and short codes often use uppercase.
| Data type | Recommended format | Example |
|---|---|---|
| Person's name | Proper case | `Jane Doe` |
| Email address | Lowercase | `[email protected]` |
| Region code | Uppercase | `US-EAST` |
| Free-form notes | Preserve original text | `Met with the CTO` |
Use the right case function
Google Sheets provides three main case functions:
LOWERconverts every letter to lowercase.UPPERconverts every letter to uppercase.PROPERcapitalizes the first letter of each word and makes the remaining letters lowercase.
Suppose cell A2 contains jANE doe . To standardize it as a name, enter this formula in another column:
=PROPER(TRIM(A2))TRIM removes extra spaces, while PROPER changes the capitalization. The result is Jane Doe.
For an email address, use:
=LOWER(TRIM(A2))For a code that must be uppercase, use:
=UPPER(TRIM(A2))Do not use PROPER for every text column. It can damage values that have intentional capitalization. For example, API, iPhone, or McDonald may become Api, Iphone, or Mcdonald. Apply it only when title case is a suitable rule.
Standardize a whole column
You can fill a formula down manually, or use ARRAYFORMULA to process the column from one cell. For names in column A, place this in B2:
=ARRAYFORMULA(PROPER(TRIM(A2:A)))The formula returns a cleaned result for each row. Keep the source column unchanged until you have checked the output. If the results are correct, copy the result column and use Edit > Paste special > Values only to replace the original values with plain text.
> callout note > Case normalization changes appearance, not meaning. Keep the original column when capitalization may carry information or when you may need to audit the imported data later. >
Check the result
After applying a case formula, inspect unusual values:
- Names containing apostrophes, hyphens, or prefixes.
- Acronyms such as
APIorUSA. - Product names with intentional internal capitals.
- Blank rows, which should remain blank.
- Values that differ only by case and may become duplicates after normalization.
A useful check is to compare the number of distinct values before and after normalization. If the number drops sharply, several spellings may have represented the same value. That may be correct, but review the affected rows before continuing to deduplicate the data.
Exercise
Cell A2 contains sMITH, JANE , and the column stores names as entered by users. Which formula removes the outside spaces and standardizes the capitalization?
Show answer
=PROPER(TRIM(A2)), which returns Smith, Jane. Review whether comma-separated names need further processing before using the column.