UPPER Function

Converts text to capital letters.

Category

Text

Available in

All versions, Microsoft 365

Returns

Text

Taught hands-on in Level 3: Intermediate Lookups & Data Summaries - Text Functions module

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

ArgumentRequired?What it does
textYesThe 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)
AB
1TypedClean
2v6b 1a1V6B 1A1
3M5v 2T6M5V 2T6
4t2p 3c4T2P 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.
Kyle Stott

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.