Excel- UPPER function



UPPER Function

Excel's three magnificent text functions are the UPPER, LOWER, and PROPER functions, which change the case of the targeted text string. The Excel UPPER function transforms an input string into uppercase. Empty characters, numeric values, and special characters are recognized as the same, which means their values will remain the same during the execution of the UPPER function. However, the date and number formatting will be diminished. The Excel experts can also use the VBA code and Power Query Editor for enormous conversion to the uppercase letters.

Compatibility

This advanced Excel function is compatible with the following versions of MS Excel −

  • Excel for Microsoft 365
  • Excel for Microsoft 365 for Mac
  • Excel for the web
  • Excel 2024
  • Excel 2024 for Mac
  • Excel 2021
  • Excel 2021 for Mac
  • Excel 2019
  • Excel 2016
  • Excel 2013
  • Excel 2010
  • Excel 2007

Syntax

The proper syntax for the UPPER function in Excel is written below −

UPPER (text)

Arguments

You can use the following arguments with the UPPER function −

Argument Description Required/ Optional
Text A cell reference/text string is mandatory for conversion into the uppercase. Required

Points To Remember

  • The UPPER function always returns the result as text.
  • If the input string is already in the upper case, then the UPPER function will retrieve the exact string.
  • If the first argument contains a specific date, the UPPER function will return the date serial number in text form, eliminating its date formatting.
  • The special symbols, punctuation, and numeric values have no impact while deploying the UPPER function.

Examples of UPPER Function

Practice the following examples to learn the use of the UPPER function in Excel.

Example 1

Solution

Step 1 − First, consider the sample dataset comprising two columns named Text and Formula.

Use of UPPER function in Excel1

Step 2 − After that, select the range C2:C7 and write the formula =UPPER(B2) in the formula bar.

Use of UPPER function in Excel2

Step 3 − Furthermore, press "ctrl+Enter", which automatically populates the result in the C2:C7 cell range.

Use of UPPER function in Excel3

Explanation

  • As you may notice in the screenshot, the given text string is transformed into uppercase letters.
  • The result in the C4 cell is "ABC-100-DEF", which means only the text part is altered to uppercase letters.
  • In the C6 cell, the UPPER function will extract only the date serial value, removing the date formatting.
  • In the C7 cell, the UPPER function extracts the numeric value as text, and the number formatting, such as a dollar sign, disappears.

Example 2: Using LEFT and RIGHT Function with UPPER Function

Solution

Step 1 − First, enter the formula =UPPER(LEFT(B2,3) & RIGHT(B2,6)) in the C2 cell. The ampersand symbol (&) combines the LEFT(B2,3) and RIGHT(B2,6) functions in this expression.

Using LEFT and RIGHT Function with UPPER Function1

Step 2 − Once you hit the Enter tab, the UPPER function will populate the first and last words of the input string.

Using LEFT and RIGHT Function with UPPER Function2

Example 3: Using IF Statement with UPPER and LEFT Functions

Solution

First, you may enter the formula =UPPER(IF(LEFT(B2,3)="mid," "correct region," "Invalid Region")) in the C2 cell.

Using IF Statement with UPPER and LEFT Functions1

Explanation

UPPER(IF(LEFT(B2,3)="mid," "correct region," "Invalid Region"))
  • The IF statement checks whether LEFT(B2,3)="mid" expression is correct or not. As you already know, the LEFT(B2,3) will return the first three characters of the input text string.
  • After interpretation, the expression IF(LEFT(B2,3)="mid" is true, which returns the "correct region" as a result.
  • Therefore, the UPPER function converts the "correct region" into the "CORRECT REGION" uppercase.

Step 3 − Afterward, hit the Enter tab to get the resulting value.

Using IF Statement with UPPER and LEFT Functions2

Download Practice Sheet

You can download and use the sample data sheet to practice the UPPER function.

Advertisements