Normalise a SKU
| A | |
|---|---|
| 1 | SKU |
| 2 | sku-77a |
Formula: C2: =UPPER(A2)
Result: SKU-77A
Letters change to capitals while the digits and the hyphen stay as they are.
UPPER handles one cell at a time, so ARRAYFORMULA(UPPER(A2:A)) is the Google Sheets way to convert the entire column from one formula.
UPPER(text)The open-ended A2:A reference includes rows added later.
For a fuller explanation of the arguments and common errors, see the UPPER Excel guide.
| A | |
|---|---|
| 1 | SKU |
| 2 | sku-77a |
Formula: C2: =UPPER(A2)
Result: SKU-77A
Letters change to capitals while the digits and the hyphen stay as they are.
| A | |
|---|---|
| 1 | Word |
| 2 | spreadsheet |
Formula: C2: =UPPER(LEFT(A2,1))&MID(A2,2,50)
Result: Spreadsheet
LEFT takes the first letter, UPPER capitalises it and MID appends the remainder.
| A | B | |
|---|---|---|
| 1 | Entered | Expected |
| 2 | yes | YES |
Formula: D2: =UPPER(A2)=UPPER(B2)
Result: TRUE
Converting both sides to capitals removes any difference caused by case.
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in D2: =UPPER(A2)
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Text | Other | Result | |
| 2 | Alice Johnson | alice johnson | ALICE JOHNSON | |
| 3 | [email protected] | [email protected] | ||
| 4 | extra spaces | |||
| 5 | SKU-2026-0415 | |||
| 6 | iced coffee, tea, sugar | |||
| 7 | Order 417 shipped |
Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page