Change Case in Excel: UPPER, LOWER, PROPER and the Flash Fill Shortcut

Excel cells with text in upper case, lower case and proper case

If you invoice clients or run a small shop, the ready-made Excel sales invoice template and bookkeeping ledger saves building the file from scratch: Excel invoice and bookkeeping template - a product in our store.

Source: Change the case of text — Microsoft Support

Text changed to upper, lower and proper case in Excel

Excel has a button for almost everything, but look for one that changes UPPERCASE to lowercase and you will search in vain. Word has it, Google Docs has it, and Excel delegates the job to formulas. That turns out to be a gift in disguise: formulas convert a whole column in one fill, leave the original data untouched, and update themselves when the source changes. This guide covers the three case functions, the formula-free Flash Fill method, and the final step everyone forgets, which is turning the result into real text.

The three case functions

=UPPER(A2) shouts, =LOWER(A2) whispers, and =PROPER(A2) capitalizes the first letter of every word. Put the formula in an empty column next to the data, then double-click the fill handle, the small square at the bottom-right of the cell, and Excel copies it down as far as the neighbouring column reaches. A thousand names convert in two seconds. The original column stays exactly as it was, which matters more than it sounds, because case cleanup is often irreversible guesswork once you overwrite the source.

FunctionInputResult
UPPERmohamed hassanMOHAMED HASSAN
LOWERMOHAMED HASSANmohamed hassan
PROPERMOHAMED HASSANMohamed Hassan
PROPERo'brienO'Brien (note the trap below)

PROPER's known traps

PROPER capitalizes the letter after every non-letter character, not just spaces. That gives you O'Brien correctly, but it also gives you Mcdonald instead of McDonald, and it mangles mixed-case brand names: iphone becomes Iphone, not iPhone. It also lowercases everything else, so acronyms die quietly: USA becomes Usa. For names from a form or an export, PROPER is a good first pass, but scan for surnames with prefixes and for known acronyms before you trust it, and keep the original column until the review is done.

The critical last step: paste as values

A case formula is a formula. If you delete the original column, every converted cell collapses into #REF!. If you copy the column and paste it into an email, you may paste formulas nobody can read. So once the converted column looks right: select it, Ctrl+C, then right-click the same selection, Paste Special, Values. The formulas become plain text, the original column can go, and the result survives any edit. Skipping this step is the single most common way case cleanup ruins a file, and it ruins it later, when nobody remembers the column was ever a formula.

No formulas at all: Flash Fill

If the cleanup is a one-off, Flash Fill does it without a single function. Type the first name in the case you want in the cell next to the original, start typing the second, and Excel guesses the pattern and offers to fill the rest. Enter accepts. Ctrl+E forces it when the guess does not appear. Flash Fill produces plain text directly, so there is no paste-as-values step, but it does not update when the source changes, and it can learn the wrong pattern from a short example. The full walkthrough, including joining text the same way, is in Flash Fill in Excel (Ctrl+E): splitting and joining text without formulas. Rule of thumb: formulas for living data, Flash Fill for one-time fixes.

Fixing only part of a cell

Case functions work on whole cells. When the target is a piece of the text, like capitalizing everything before the dash in a product code, combine them with text extraction: take the part before the character, UPPER it, and join it back to the rest with &. The extraction half of that pattern is covered in extracting text before and after a character with FIND, LEFT and MID. The combination handles codes, emails and IDs where only one segment needs fixing.

The invisible problem: extra spaces

Real-world columns rarely need case alone. Data pasted from forms and exports carries leading spaces, double spaces between words, and trailing spaces that break lookups and make PROPER capitalize oddly. Wrap the source in TRIM first: =PROPER(TRIM(A2)) cleans spacing and case in one pass. TRIM removes every leading and trailing space and collapses internal runs to one, which is almost always what exported data needs. Clean spacing first, case second, and the column is finally ready to deduplicate or look up against.

A one-minute check before you replace the column

  • Is the original column still intact while you review?
  • Did TRIM run before the case function?
  • Did PROPER mangle any McNames, apostrophes or acronyms?
  • Are the results pasted as values before the source is deleted?
  • For a one-off fix, would Flash Fill have been faster?

Three functions, one fill handle, one paste-as-values. Excel may hide the feature behind formulas, but the result is better than a button: the cleanup is reviewable, repeatable, and safe to undo until the moment you decide it is not.

Sources

One string, four results

FormulaResult
=UPPER("Ahmed Ali")AHMED ALI
=LOWER("Ahmed Ali")ahmed ali
=PROPER("ahmed ali")Ahmed Ali
=TRIM(PROPER(" ahmed ali "))Ahmed Ali

PROPER capitalises the first letter of every word, which is what you want for names and job titles, but it also capitalises after a hyphen or an apostrophe. Check a sample before filling a whole column, especially with names like O'Brien or Al-Sayed.

When Flash Fill is faster

Type the result you want in the first two cells and press Ctrl+E. Excel learns the pattern and fills the rest. It beats a formula for one-off cleanups, but it does not update when the source data changes, so use a formula when the column will keep growing.

Flash Fill is not a formula

Flash Fill guesses the pattern from your example and writes plain values. It does not update when the source data changes, and it can guess wrong on the first few rows in a way that looks right. Use it once to see the pattern, then write the UPPER, LOWER or PROPER formula so the column stays correct when the data moves.

Get new guides by email
One short email when a new guide is published. No spam, and you can leave anytime.
Your address is only used for these emails.

Last updated: 5 December 2026

Comments

Popular posts from this blog

Learn to Code From Zero: A 90-Day Plan That Survives a Full-Time Job

How to Read Your Payslip: Gross, Net, Tax Codes and the YTD Column

iPhone Storage Full? What to Delete First (And What Never to Touch)