For fifteen years I managed a regional distribution depot. Every Monday I received a report from head office, forty pages long, compiled by an analyst I had never met. Every Monday I had a question the report did not answer, and I sent an email and waited between three days and never.

At forty-four I decided to learn to answer my own questions. It took about eighteen months of evenings to become useful. I did not become a data scientist, and I did not want to. I became a depot manager who could work with data, which turned out to be rarer and, in my company at least, more valued.

This is the route I took, with the wrong turnings marked.

The wrong start

I began as everyone told me to, with an online course in programming. It was well made. I learnt to write a loop that printed the numbers one to ten, and a function that reversed a word. After six weeks I could not do a single thing that helped me at work, and I stopped.

The course was fine. The trouble was that I had no problem for the skill to solve. Adults learn badly in the abstract. We need a reason on Tuesday morning.

The right start: a question

What got me going again was a specific irritation. Our late deliveries had risen, and the Monday report gave only the total. I wanted to know whether the lateness was concentrated on certain routes, certain days or certain drivers.

I asked the systems team for the raw delivery records for three months. It was a spreadsheet of 41,000 rows. I had used spreadsheets for years, in the sense of typing numbers into them and adding up columns.

That file became my course.

Stage one: spreadsheets, properly (months 1 to 4)

I had been using perhaps five per cent of what a spreadsheet can do. Three things made the difference.

Pivot tables. The single most useful thing I learnt in the whole eighteen months. A pivot table takes thousands of rows and summarises them by any combination of categories in a few clicks: late deliveries by route, by weekday, by route and weekday together. The answer to my question took about four minutes once I knew how. Two routes accounted for nearly half the lateness, and only on Mondays and Fridays.

Lookup functions. Joining one table to another: the delivery records to the list of drivers, the routes to their distances.

Clean data. Half my time went on discovering that the same customer was spelt three ways, that dates had been entered in two formats, and that a blank sometimes meant zero and sometimes meant unknown. Nobody warns you about this. It is most of the job.

At the end of four months I was answering my own Monday questions. I also noticed colleagues starting to bring theirs to me.

Stage two: a query language (months 5 to 8)

The spreadsheet began to struggle at a few hundred thousand rows, and I was tired of asking for extracts. The company's data lived in a database, and the way to ask a database a question is a language called SQL.

I had expected it to be hard. It is the most approachable thing in computing. A query reads almost like a sentence: select these columns, from this table, where this condition holds, grouped by that. Within a fortnight I could write useful ones. Within three months I could join several tables and get exactly the data I wanted, for any period, in seconds.

The harder part was organisational. I had to persuade the systems team to give me read-only access. What worked was showing them the questions I had been sending and pointing out how many fewer they would receive.

If I were advising someone with limited time, I would say that these two stages, a spreadsheet used properly and a query language, cover the great majority of what a working manager needs.

Stage three: enough statistics to be careful (months 6 to 12)

Around this time I made my first serious mistake, and it taught me more than any course.

I had compared two months and found that deliveries from one loading bay were late 9 per cent of the time against 6 per cent for the others. I presented it. The bay supervisor was, reasonably, upset. A colleague in finance asked how many deliveries that bay had handled. It was 140. The difference came to about four deliveries. The following month it reversed.

I had mistaken noise for a finding. So I went back and learnt some statistics, and I learnt it differently from programming, because now I had a reason.

What I needed was less than I had feared:

  • The difference between an average and a median, and when each misleads.
  • How much a percentage bounces around when it is based on a small number.
  • That two things rising together does not show that one causes the other.
  • That if you look at twenty comparisons, one will appear significant by chance.
  • How to draw a chart that shows the spread, not just the middle.

I did not need the mathematics behind them at first. I needed the habit of asking "how many is that based on?" and "would I see this by chance?" before opening my mouth. A book written for general readers taught me more than the formal course I tried afterwards.

Stage four: programming, at last (months 10 to 18)

I came back to programming with a purpose. Each Monday I was now doing the same sequence by hand: pull the data, clean it in the same six ways, build the same tables. It took two hours and I was certain to make an error sooner or later.

I learnt Python, and specifically the part of it used for handling tables of data. This time it stuck, because every lesson replaced a piece of drudgery. After a few months the Monday routine was a script that ran in under a minute.

I should be honest about the tools available now. When I was learning, getting stuck on an error meant an evening on forums. Today a language model will explain an error, suggest a fix and write a first version of a query. It would have cut months off my route. It would not have replaced the stages. The tools are very good at writing what you ask for. They do not know that the delivery date column changes meaning in March, or that 140 deliveries is too few to conclude anything. You need to understand enough to check what you are given, and that understanding comes from having done it yourself for a while.

What was a waste of time

Machine learning. I spent two months on a course in it because it sounded like the real thing. I have used it once in three years. Nearly every question I meet at work is answered by counting, comparing and drawing a chart.

Collecting certificates. Nobody has ever asked to see one. They have asked to see what I did.

Learning tools before problems. Every false start had that in common.

What it changed

I had half expected to change career. What happened was more interesting. I stayed in operations and became the person who could say, with evidence, what was going on. Within a year I was asked to look at the same questions for the other depots in the region. My title changed and my pay rose by rather more than a certificate would have brought.

The combination is what counted. The analysts at head office knew far more technique than I ever will. They did not know that Friday lateness on those two routes was caused by a customer who closed their goods-in at three o'clock. I did, because I had worked the floor, and once I had the numbers I could put the two together.

If you are starting

  1. Find a question at work that annoys you and that data could answer.
  2. Get the raw data, however messy.
  3. Learn pivot tables this week.
  4. Learn a query language when the spreadsheet becomes the limit.
  5. Learn to distrust small numbers before you present anything.
  6. Automate only what you have done by hand many times.
  7. Show people what you found. That is the only qualification anyone checks.

Forty-four felt late to begin. It was not, and for an unexpected reason. Most of what made me useful was the fifteen years I had spent in the depot before I opened the file.