Excel Supreme

Excel track · Exercise 64 of 86 Paid

UPPER, LOWER and PROPER

Normalise capitalisation with UPPER, LOWER and PROPER, and know which one a code needs.

Intermediate

References and names in mixed case

Read-only data · screen 1 of 2 · answer in B7

In B7, put the reference in A2 into capitals so it matches the shipping labels.

AB
1ReferenceStatus
2ab-2291-xkopen
3cd-1180-qtclosed
4ef-4472-mpopen
5gh-9031-lropen
6ij-6620-bnclosed
7Label

Download this grid (.xlsx) Two tabs: the grid you see, and the answer.

B7

What it does

UPPER makes every letter a capital, LOWER takes them all down, and PROPER capitalises the first letter of each word. Each takes one piece of text and returns new text. Digits, hyphens and spaces pass through untouched, and none of the three removes a space or fixes a spelling.

The first screen asks for ab-2291-xk as a shipping label, which is AB-2291-XK. UPPER is the only one of the three that gives that. PROPER returns Ab-2291-Xk, because it starts a new word after every hyphen.

The second screen has ada LOVELACE, and PROPER returns Ada Lovelace. The change runs one way: once UPPER has run, the original case is gone. Keep the source column when the spelling may matter later.

Syntax

=UPPER(text) · =LOWER(text) · =PROPER(text)

Worked example

On References and names in mixed case, =UPPER(A2) returns AB-2291-XK.

=UPPER(A2)

Common errors

Error codes for UPPER, LOWER and PROPER
ErrorWhat it means and how to fix it
#VALUE!The converted text was used in arithmetic, as in =UPPER(A2)/0.
#NAME?UPPER was typed with an extra letter, and Excel returns #NAME?.
Half convertedPROPER on a code starts a new word after each hyphen, so the label comes out Ab-2291-Xk.

At work

A sheet that pulls names and codes from elsewhere, where the capitals come out inconsistent.