UPPER()

Syntax. UPPER(text)

Definition. The UPPER() function converts text to uppercase.

Arguments

Background. This function provides a quick and easy method for converting text to uppercase.

You can also use this function to make non–case-sensitive comparisons.

If you pass a numeric value in the text argument, the value is converted to unformatted text. If you refer to this text in numeric calculations, Excel converts the text back to a number value so that you can still use the result for other calculations.

Example. If you want to compare text strings and are not concerned about the comparison being case-sensitive, you can convert the entire text to uppercase (see Figure 8-12). The formula

=UPPER("Letters")="LETTERS"

as well as

=UPPER("letters")="LETTERS"

returns TRUE.

Text comparison independent of uppercase and lowercase, using the UPPER() function.

Figure 8-12. Text comparison independent of uppercase and lowercase, using the UPPER() function.

Here are some further examples:

See Also

LOWER(), PROPER()