UPPER Function

Excel Functions › Text

All Excel versions Text

The Excel UPPER function converts every letter in a text string to capitals — one argument, no options, works in every version of Excel ever shipped. It is the standard fix for inconsistent codes, state abbreviations, and IDs typed by six different people in six different styles. Its siblings are LOWER (all lowercase) and PROPER (Each Word Capitalized).


Quick answer: to convert the text in A2 to all capitals:
=UPPER(A2)
Letters become capitals; digits, punctuation, and spaces pass through unchanged. =UPPER("sku-1042w") returns SKU-1042W.

Syntax

=UPPER(text)
ArgumentDescription
textRequiredThe text to convert — a string in quotes, a cell reference, or another formula’s result. Non-letter characters are returned as-is.

Available in: every version of Excel, Excel for the web, and Google Sheets. UPPER only touches letters — numbers, symbols, and spacing are untouched, and a number passed to UPPER comes back as text.

Standardize messy text

Six people typed product codes six different ways. One helper column makes them identical:

AB
1Raw entry=UPPER(A2)
2sku-1042-wSKU-1042-W
3Sku-1043-eSKU-1043-E
4sKU-1044-NSKU-1044-N
5tx — dallas hubTX — DALLAS HUB
=UPPER(A2) // fill down the column

To replace the originals, copy the helper column, then Paste Special › Values over column A and delete the helper. In Excel 365 one formula converts the whole column at once:

=UPPER(A2:A100) // spills 99 converted values

Try it: interactive UPPER demo

Live demo

Type anything and watch UPPER convert it — LOWER and PROPER are shown alongside for comparison.

Cleanup combos: TRIM, comparisons, and keys

Imported text usually needs more than capitals. The classic one-two punch trims stray spaces and standardizes case in a single pass:

=UPPER(TRIM(A2)) // remove extra spaces, then capitalize

Excel’s = comparison is already case-insensitive, but the case-sensitive EXACT function is not — wrap both sides in UPPER when you want EXACT to ignore case:

=EXACT(UPPER(A2), UPPER(B2)) // case-insensitive exact comparison

UPPER also shines when building IDs and keys from pieces of other cells:

=UPPER(LEFT(A2,3)) & "-" & TEXT(B2,"000") // DAL-007 style codes

Want capitals for display only? There is no “all caps” cell format in Excel (unlike Word). UPPER in a helper column — or a font that only has capital glyphs — are the real options.

Errors & common pitfalls

Pitfall: UPPER doesn’t change the original cell. Like every formula, it returns a converted copy. To overwrite the source data: helper column → copy → Paste Special › Values → delete the helper.

Pitfall: numbers come back as text. =UPPER(B2) on the number 1042 returns the text “1042” — left-aligned and ignored by SUM. Only run UPPER on actual text, or wrap the result in VALUE if math must follow.

Pitfall: you may not need UPPER at all. =A2="dallas" already matches “DALLAS”, and XLOOKUP, VLOOKUP, and MATCH are case-insensitive too. UPPER is for standardizing stored data, not for making lookups work.

#NAME? — typo or missing quotes. UPPER exists everywhere, so #NAME? almost always means the function name is misspelled or a literal string argument is missing its quotes: =UPPER(texas) instead of =UPPER("texas").

Practice workbook

📊
Download the free UPPER practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

How do I make an entire column uppercase at once?
In Excel 365 / 2021, point UPPER at the whole range and let it spill: =UPPER(A2:A500). In older versions, enter =UPPER(A2) and double-click the fill handle to copy it down.
How do I replace the original text instead of using a second column?
Formulas can't edit other cells, so: build the UPPER helper column, copy it, use Paste Special › Values over the original column, then delete the helper. (Or press Ctrl+H only if it's a one-off find-and-replace job.)
Does UPPER affect numbers, dates, or punctuation?
No - only letters change. Digits, symbols, and spaces pass through untouched. Beware though: a real number or date fed to UPPER is returned as text, which breaks downstream math.
Is there a keyboard shortcut for uppercase like Shift+F3 in Word?
No. Excel has no change-case shortcut or cell format. Use UPPER, LOWER, or PROPER in a helper column, or Flash Fill (Ctrl+E) after typing one converted example.
What's the difference between UPPER, LOWER, and PROPER?
UPPER capitalizes everything, LOWER lowercases everything, and PROPER capitalizes the first letter of every word. All three take a single text argument.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: LOWER · PROPER · TEXT · VALUE · UNIQUE