Going Stellar

Home/Google Sheets reference

Google Sheets function · Text

UPPER in Google Sheets: syntax and examples

UPPER returns the text with every letter in capitals. Symbols such as the hyphen stay as they are. Use it to normalize codes, names and keys before a lookup or a comparison.

Syntax

UPPER(text)

Arguments

ArgumentTypeRequiredWhat it does
textstringyesThe text to convert to capital letters.

Examples

The examples use this table, starting in A1:

NameCity
ion popescuiași
Ana-MariaCluj
mixed Case brașov
=UPPER(A2)

Result: ION POPESCU

A name in lowercase becomes all capitals.

Run in a Google Sheet (English US locale) on .

=UPPER(B2)

Result: IAȘI

Romanian letters are converted too: ș becomes Ș.

Run in a Google Sheet (English US locale) on .

=UPPER(A2&" - "&B2)

Result: ION POPESCU - IAȘI

Join two cells first, then convert the result.

Run in a Google Sheet (English US locale) on .

=ARRAYFORMULA(UPPER(A2:A4))

Result:

ION POPESCU
ANA-MARIA
MIXED CASE

One formula for a whole column: ARRAYFORMULA applies UPPER to every cell.

Run in a Google Sheet (English US locale) on .

=EXACT(UPPER(A3),A3)

Result: FALSE

Checks whether a cell is already all capitals.

Run in a Google Sheet (English US locale) on .

Common errors

  • A range inside a plain formula gives #VALUE!. Wrap the formula in ARRAYFORMULA to convert a whole column.
  • Spaces are kept: in the table, " mixed Case " comes back as " MIXED CASE " with its extra spaces. Add TRIM if you need them gone.

Compared with Excel

Same syntax in Excel.

Sources

  1. UPPER (Docs Editors Help)

Markdown version · All functions