UPPER Function
Converts text to capital letters.
Category
Text
Available in
All versions, Microsoft 365
Returns
Text
Overview
UPPER turns every letter into a capital. Numbers and punctuation are left alone.
It's perfect for codes that should always be capitals — postal codes, country codes, SKUs — especially when people type them by hand.
Syntax
=UPPER(text) Explain
Arguments
| Argument | Required? | What it does |
|---|---|---|
| text | Yes | The text or cell to convert. |
Examples
Example 1 — Tidy postal codes
Customers typed their postal codes in every style. Make them consistent.
B2fx=UPPER(A2)
| A | B | |
|---|---|---|
| 1 | Typed | Clean |
| 2 | v6b 1a1 | V6B 1A1 |
| 3 | M5v 2T6 | M5V 2T6 |
| 4 | t2p 3c4 | T2P 3C4 |
=UPPER(A2) Explain
Example 2 — Clean and capitalise in one go
Remove stray spaces at the same time.
=UPPER(TRIM(A2)) Explain
Common mistakes
- Lookups don't need it. XLOOKUP, VLOOKUP and MATCH already ignore case. Use UPPER for how data looks, not to make lookups work.
Notes
- To replace the original typing, copy the results and use Paste Special › Values over the old column.
- Related functions: LOWER, PROPER, EXACT.

Author
Kyle Stott
Certified Microsoft Excel Expert
Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.