SheetsLessons
Text function

UPPER function in Google Sheets

UPPER converts all letters in text to capitals. Use it to standardise codes, abbreviations and IDs so they match consistently.

Syntax

=UPPER(text)
text
The text to convert.

Practice UPPER

Task 1 of 1

Convert the state abbreviation in A2 to capitals. Answer in B2.

B2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

UPPER examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABC
1Raw nameSKUNote
2  maya   PATEL ELC-0427-NYRefund requested
3leo rossiFUR-1180-TXShipped
4AVA KIMOFC-0093-CARefund issued
Messy imported data
FormulaResultWhat it shows
=UPPER(A3)LEO ROSSIAll capitals.
=UPPER(C2)REFUND REQUESTEDWorks on any text.
=UPPER(LEFT(A3, 1))LJust the first initial.

Tips and common mistakes

  • Numbers and punctuation are left unchanged.
  • Lookups and COUNTIF already ignore case, so you only need UPPER for display or for EXACT comparisons.

Related functions