How to use the UPPER function
Converts a value to upper case letters.
Formula in cell C3:
Table of Contents
-
- UPPER Function Syntax
- UPPER Function Arguments
- UPPER Function not working
- How to change lower letter to upper letter for the position of a given character
- How to change lower letter to upper letter for a given character
- How to change all lower letters to upper letters for a given character
- Get Excel *.xlsx file
1. UPPER Function Syntax
UPPER(text)
2. UPPER Function Arguments
text | Value to convert. Required. |
3. UPPER Function not working
- Check your spelling.
- Check the number of arguments you use, the UPPER function accepts only one argument.
4. How to change lower letter to upper letter for the position of a given character
The image above demonstrates a formula that replaces the third letter with an upper case letter.
Formula in cell C3:
4.1 Explaining formula
Step 1 - Extract letter based on position
The MID function returns a substring from a string based on the starting position and the number of characters you want to extract.
MID(text, start_num, num_chars)
MID(B3, 3, 1)
becomes
MID("oranges", 3, 1)
and returns "a".
Step 2 - Convert to upper letter
The UPPER function converts a string to capital letters.
UPPER(MID(B3, 3, 1))
becomes
UPPER("a")
and returns "A".
Step 3 - Replace character based on position to an upper letter
The REPLACE function substitutes a string based on character position and length.
REPLACE(old_text, start_num, num_chars, new_text)
REPLACE(B3, 3, 1, UPPER(MID(B3, 3, 1)))
becomes
REPLACE(B3, 3, 1, "A")
becomes
REPLACE("oranges", 3, 1, "A")
and returns "orAnges".
5. How to change a given lower letter to an upper letter
The formula in cell C3 demonstrated in the image above converts the second lower case "p" from the right with an upper case "P".
Formula in cell C3:
5.1 Explaining formula
The SUBSTITUTE function substitutes a string with another string.
SUBSTITUTE(text, old_text, new_text, [instance_num])
SUBSTITUTE(B3, "p", "P", 2)
The first argument is a cell reference to cell B3, the second argument is the string to be replaced.
The third argument is what will be there after the substitution and the fourth argument is a number representing the instance.
6. How to change all lower letters to upper letters for a given character
The picture above shows a formula in cell C3 that converts all lower case "p" to an upper case "P" in cell B3.
Formula in cell C3:
The SUBSTITUTE function substitutes a string with another string.
SUBSTITUTE(text, old_text, new_text, [instance_num])
If the instance_num argument is omitted all instances are replaced.
'UPPER' Function examples
The following 3 articles have formulas containing the UPPER function.
Question: How do I count how many times a word exists in a range of cells? It does not have […]
This article demonstrates an array formula that counts how many times multiple text strings exist in a cell range. The […]
What's on this page Reverse text Insert random characters Convert letters to numbers How to shuffle characters in the alphabet […]
Functions in 'Text' category
The UPPER function function is one of many functions in the 'Text' category.
How to comment
How to add a formula to your comment
<code>Insert your formula here.</code>
Convert less than and larger than signs
Use html character entities instead of less than and larger than signs.
< becomes < and > becomes >
How to add VBA code to your comment
[vb 1="vbnet" language=","]
Put your VBA code here.
[/vb]
How to add a picture to your comment:
Upload picture to postimage.org or imgur
Paste image link to your comment.
Contact Oscar
You can contact me through this contact form