Skip to content

UPPER

Converts all letters in text to capitals.

Syntax

=UPPER()

Text

All versions of Excel.

Try it

Edit the formula in C2 or change the inputs. The sheet recalculates as you type.

C2
A
B
C
1
Entered SKU
Product
Standard SKU
2
fx-1010
Nitrile gloves
FX-1010
3
Fx-1085
Floor cleaner
4
5

C2 =UPPER(A2) returns FX-1010

How UPPER works

UPPER converts every letter in text to a capital. Use it to standardise codes, state abbreviations and IDs that were typed in a mix of cases, and to make text ready for functions that care about case.

What it does

=UPPER("fx-1010") returns FX-1010. Digits, dashes, spaces and other characters stay as they are. Letters with accents are converted too, so é becomes É.

UPPER accepts one argument, which can be a cell reference, a piece of text in quotes or another formula.

When case matters in Excel and when it doesn't

Many Excel features ignore case. The = operator treats "FX-1010" and "fx-1010" as equal. VLOOKUP, XLOOKUP, MATCH, COUNTIF and SUMIF also ignore case. In those cases, converting with UPPER doesn't change the outcome.

Some functions do care. FIND, SUBSTITUTE and EXACT treat A and a as different characters. Converting both sides with UPPER (or LOWER) before using them is the standard way to make them case-insensitive: =FIND(UPPER("rush"),UPPER(A2)). For FIND, SEARCH is the simpler choice.

Standardising codes

When the same code appears as fx-1010, Fx-1010 and FX-1010, the text differs, even though lookups treat the three alike. It matters when the data goes to a case-sensitive system, or when you use EXACT or FIND. A helper column with =UPPER(A2) gives you one form, and you can then paste the results back as values.

Part of a text

UPPER works on the whole of its argument, so to capitalise only a piece, combine it with LEFT, MID or similar. =UPPER(LEFT(A2,3)) returns the first three characters in capitals. =UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2))) builds sentence case, turning PALLET WRAP into Pallet wrap. (PROPER capitalises each word instead.)

Results are text

UPPER returns text, and the original cell is unchanged. A number passed through UPPER becomes text, so keep it to text columns.

Related functions

LOWER converts everything to lower case. PROPER capitalises each word. In Excel for Microsoft 365, UPPER also accepts a range and returns an array: =UPPER(A2:A9) spills one result per cell.

Number formats don't change the text

A custom number format can't change the case of text. If you need capitals, you need the function (or Flash Fill, which can copy a pattern you type, but doesn't update when the source changes).

Arguments

text
The text to convert. Usually a cell such as A2, or a piece of text in quotes. Characters that are not letters are left as they are.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

Standardise a code to capitals

C2 =UPPER(A2)

Result: FX-1010

Letters become capitals. The digits and the dash are unchanged.

C2
A
B
C
1
Entered SKU
Product
Standard SKU
2
fx-1010
Nitrile gloves
FX-1010
3
Fx-1085
Floor cleaner
4
5

C2 =UPPER(A2) returns FX-1010

Example 2

Capitalise only part of the text

C2 =UPPER(LEFT(A2,3))

Result: ENG

LEFT takes the first three characters, and UPPER converts them.

C2
A
B
C
1
Staff ID
Name
Dept code
2
eng-0412
Priya
ENG
3
4

C2 =UPPER(LEFT(A2,3)) returns ENG

Example 3

Sentence case: first letter capital, the rest lower case

C2 =UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2)))

Result: Pallet wrap, clear

PROPER would capitalise every word. This keeps only the first letter in capitals.

C2
A
B
C
1
Raw description
Qty
Sentence case
2
PALLET WRAP, CLEAR
38
Pallet wrap, clear
3
4

C2 =UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2))) returns Pallet wrap, clear

Example 4

Make a case-sensitive search ignore case

C2 =FIND(UPPER("rush"),UPPER(A2))

Result: 8

FIND is case-sensitive. Converting both the search text and the cell to capitals lets it match "rush" in any spelling. SEARCH does the same without the conversion.

C2
A
B
C
1
Note
Order
Position of RUSH
2
Please rush this order
SO-7720
8
3
4

C2 =FIND(UPPER("rush"),UPPER(A2)) returns 8

Your turn.

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In B2, return the SKU in A2 in capitals. Fill it down to B5.

Answer in B2, then it fills down to B5.

B2
A
B
C
D
1
Entered SKU
Standard SKU
Description
Sentence case
2
fx-1010
PALLET WRAP, CLEAR
3
Fx-1085
NITRILE GLOVES
4
fX-2040
floor cleaner 5 L
5
FX-3012
Safety Boots
6
7

Common mistakes

  • UPPER changes the stored text only in the cell where the formula lives. The original is unchanged until you paste the results back as values.
  • Most Excel matching ignores case already, so UPPER rarely fixes a failed lookup. Look for extra spaces or numbers stored as text instead.
  • UPPER returns text. A number passed through UPPER becomes text and stops working in calculations.
  • Formatting can't change case. There is no number format for capitals, so a formula is the way.
  • UPPER converts the whole of its argument. To capitalise only part of a cell, combine it with LEFT, MID or RIGHT, as in UPPER(LEFT(A2,3))&MID(A2,4,50).

Questions people ask

How do I change text to capitals in Excel?

Use `=UPPER(A2)` in another cell, then copy the results and paste them as values over the original if you want to replace it.

How do I capitalise just the first letter?

Use `=UPPER(LEFT(A2,1))&MID(A2,2,LEN(A2))` to capitalise the first letter and leave the rest as it is. Add LOWER around the MID part to force the rest to lower case.

Is there a keyboard shortcut for capitals in Excel?

No. Excel has no shortcut or ribbon command for changing case. Use UPPER, LOWER or PROPER in a formula.

Does UPPER change numbers?

The digits stay the same, but the result is text. A number passed through UPPER won't add up in a SUM.

Why do I still get #N/A after converting a code to capitals?

Lookups ignore case, so case is probably not the problem. Check for trailing spaces with `=LEN(A2)`, and for numbers stored as text.

Learn UPPER in a real sheet.

UPPER is taught in Logic and text, lesson 8: PROPER, UPPER and LOWER. Each lesson is a short, graded exercise like the one above.