UPPER function
Converts all letters in a text string to capitals. Digits and punctuation are unchanged.
Available in All versions of Excel, including Microsoft 365, Excel for Mac and Excel for the web
In every Excel versionWorks in Google Sheets
Syntax
UPPER(text)| Argument | What it means | |
|---|---|---|
text | Required | The text or cell to convert. |
Returns: The text in uppercase.
How UPPER works
UPPER changes every lowercase letter to its capital form and leaves digits, spaces and symbols alone. Use it to standardise codes that must always be in capitals - product SKUs, postcodes, country codes, licence plates, IBANs - so that data typed in any case looks consistent and matches in reports.
It handles accented and non-Latin letters (é becomes É, Greek αθήνα becomes ΑΘΉΝΑ). Its siblings are LOWER and PROPER. Remember that ordinary comparisons (=), VLOOKUP and COUNTIF already ignore case; UPPER matters for display, for exports to case-sensitive systems, and together with EXACT when you need to check that something has been typed in capitals.
Examples
1Standardise product codes
| A | B | |
|---|---|---|
| 1 | SKU (typed) | |
| 2 | nyc-1042 | NYC-1042 |
Result: NYC-1042
Letters become capitals; the hyphen and digits are unchanged.
2UK postcode
| A | B | |
|---|---|---|
| 1 | Postcode | |
| 2 | nw1 6xe | NW1 6XE |
Result: NW1 6XE
Postcodes are conventionally written in capitals.
3Initials from first and last name
| A | B | C | |
|---|---|---|---|
| 1 | First | Last | |
| 2 | maria | lopez | ML |
Result: ML
LEFT takes the first letter of each name, and UPPER capitalises both.
Tips
- Force capitals during data entry with Data Validation > Custom:
=EXACT(A2,UPPER(A2)). - A font with only capitals (like some display fonts) changes the look but not the stored text; use UPPER when the data itself must change.
Questions
How do I convert a whole column to capitals?
Put =UPPER(A2) in a helper column, fill down, then copy and Paste Values over the original. In Microsoft 365 =UPPER(A2:A500) spills the whole column at once.
Is there a shortcut key to change case in Excel?
No, unlike Word Excel has no Shift+F3. Use UPPER, LOWER or PROPER, or Flash Fill (Ctrl+E).
Google Sheets
UPPER also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
UPPER in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | VELKÁ |
| Danish | STORE.BOGSTAVER |
| Dutch | HOOFDLETTERS |
| Finnish | ISOT |
| French | MAJUSCULE |
| German | GROSS |
| Hungarian | NAGYBETŰS |
| Italian | MAIUSC |
| Norwegian (Bokmål) | STORE |
| Polish | LITERY.WIELKIE |
| Portuguese (Brazil) | MAIÚSCULA |
| Portuguese (Portugal) | MAIÚSCULAS |
| Russian | ПРОПИСН |
| Spanish | MAYUSC |
| Swedish | VERSALER |
| Turkish | BÜYÜKHARF |