Menu

Chapter 05 · 8 min · Basic

The same branch, four ways

Somebody typed the branch name by hand, ten times, over three months. You now have Penang, penang, PENANG and Penang — and as far as the sheet is concerned that last one, with a space on the end, is a different place.

The instinct is to start fixing. Don't. Enumerate first: list every spelling that exists, work out which ones your formulas already cope with, fix the mechanical half, and leave a written mapping for the half only a human can judge.

This chapter also answers a question worth knowing for the rest of your career: which of these differences does Excel quietly forgive, and which does it not?

The grid

Ten transactions in A1:B11branch as somebody typed it, and amount_myr. Beside them in D1:E4 is a small mapping table: how a name was written, and what it should be. It is three rows long on purpose. Work in columns G and H.

List the spellings before fixing any

UNIQUE on the branch column gives every distinct value, one row each. That list is the real inventory of the problem, and it fits on a screen — which a column of ten thousand rows never will.

Run it and count what comes back. Then read the list carefully: two of those rows look exactly the same.

Look down column A and count the spellings you can see. How many rows will UNIQUE return?

G2

Scroll to see all 7 columns →

ABCDEFG
1branchamount_myras_writtenshould_be
2Penang41.00KLKuala Lumpur=UNIQUE(A2:A11)
3KL62.50penangPenang
4penang54.30PENANGPenang
5Kuala Lumpur128.75
6Penang 33.20
7KL96.40
8PENANG27.00
9Kuala Lumpur71.15
10Johor Bahru48.00
11penang19.90
Editable, try changing it

Basic

The rest of this chapter is Basic

The Excel tutorial and Spreadsheet Fundamentals are free here, forever. This track is the paid half: what to actually do with a spreadsheet once somebody sends you one, from the first look to a summary you can defend.

See Basic plans

RM 25/mo · cancel anytime

Still to come in this chapter

  1. 02Case is forgiven, spacing is not
  2. 03The difference you cannot see
  3. 04Fix the mechanical half
  4. 05And what the mapping does not cover
  5. 06Stop at coverage, not perfection