Example 1
Standardise a code to capitals
C2 =UPPER(A2)
Result: FX-1010
Letters become capitals. The digits and the dash are unchanged.
C2 =UPPER(A2) returns FX-1010
Converts all letters in text to capitals.
Syntax
=UPPER()
All versions of Excel.
Try it
Edit the formula in C2 or change the inputs. The sheet recalculates as you type.
C2 =UPPER(A2) returns FX-1010
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.
=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.
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.
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.
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.)
UPPER returns text, and the original cell is unchanged. A number passed through UPPER becomes text, so keep it to text columns.
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.
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).
A2, or a piece of text in quotes. Characters that are not letters are left as they are.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
C2 =UPPER(A2)
Result: FX-1010
Letters become capitals. The digits and the dash are unchanged.
C2 =UPPER(A2) returns FX-1010
Example 2
C2 =UPPER(LEFT(A2,3))
Result: ENG
LEFT takes the first three characters, and UPPER converts them.
C2 =UPPER(LEFT(A2,3)) returns ENG
Example 3
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 =UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2))) returns Pallet wrap, clear
Example 4
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 =FIND(UPPER("rush"),UPPER(A2)) returns 8
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.
UPPER(LEFT(A2,3))&MID(A2,4,50).Use `=UPPER(A2)` in another cell, then copy the results and paste them as values over the original if you want to replace it.
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.
No. Excel has no shortcut or ribbon command for changing case. Use UPPER, LOWER or PROPER in a formula.
The digits stay the same, but the result is text. A number passed through UPPER won't add up in a SUM.
Lookups ignore case, so case is probably not the problem. Check for trailing spaces with `=LEN(A2)`, and for numbers stored as text.
UPPER is taught in Logic and text, lesson 8: PROPER, UPPER and LOWER. Each lesson is a short, graded exercise like the one above.