Compute Totals, Subtotals, and Shares of the Whole

You have named the quantity your question needs. Now comes the most common computation of all, the one hiding behind budgets, scoreboards, and shopping lists alike: adding values into a total, then working out how much each part contributes. It looks too simple to get wrong, which is exactly why it rewards slowing down. A total is only trustworthy when every piece you add is measured the same way, and a share only makes sense once you know the whole it came from.

Start with the Whole: What a Total and a Subtotal Are

Imagine you want to understand where your money actually goes each month. You jot down what you spend by category: housing, groceries, transport, and so on. Add every one of those figures together and you get a single number for the month. That number is your total, and it is the foundation everything else in this chapter sits on.

Totals and subtotals answer “how much in all?” for the whole group or for a slice of it. They are the plainest quantity you will ever compute, and also the easiest to get quietly wrong if the values going in are not comparable. We will come back to that.

Work Out Each Part’s Share of the Whole

A total tells you the size of everything together, but it rarely tells you the story on its own. Nine hundred euros of housing sounds like a lot until you know whether it is a small or a large slice of your month. To see that, you compute each part’s share.

A share turns raw amounts into something you can compare at a glance. Housing at 900 out of a 2000 total is a 45% share, and that single percentage says more about your month than the euro figure alone. Shares also unlock a powerful check you will use for the rest of the course: because every part is measured against the same whole, all the shares together must add up to 100%.

Compute It Step by Step

Whatever the subject, the procedure is the same five moves every time.

  • Put every value in the same unit and the same period first, so the pieces are comparable.

  • Add all the values to get the total.

  • Group related values into subtotals when a summary helps.

  • Divide each part (or each subtotal) by the total.

  • Multiply by 100 to read the result as a percentage share.

Do those in order and the arithmetic stays honest. Skip the first move, and everything downstream inherits the mistake.

See It in Action: A Personal Monthly Budget

Here is one month of spending, already written in the same unit (euros) and the same period (one month).

Category

Amount (per month)

Housing

900

Groceries

320

Transport

180

Utilities

120

Subscriptions

60

Eating out

140

Savings

200

Other

80

Total

2000

Adding the eight figures gives a total of 2000. Now group them into three subtotals to see the shape of the month:

  • Fixed costs (housing + utilities + subscriptions): 900 + 120 + 60 = 1080.

  • Flexible spending (groceries + transport + eating out + other): 320 + 180 + 140 + 80 = 720.

  • Savings: 200.

Those subtotals add back to 1080 + 720 + 200 = 2000, which matches the total, a reassuring first sign. Now the shares, each part divided by 2000 and multiplied by 100:

Category

Share of the whole

Housing

45%

Groceries

16%

Savings

10%

Transport

9%

Eating out

7%

Utilities

6%

Other

4%

Subscriptions

3%

Read as shares, and listed from largest to smallest, the month tells its story instantly: nearly half of every euro goes to housing, and savings quietly outweighs eating out even though eating out feels like the bigger expense. That insight was invisible in the raw euro column.

Check Before You Trust: Two Quick Tests

Two fast tests catch almost every totals-and-shares mistake before it spreads.

The first is the parts-sum-to-the-whole test: add up all your shares and confirm they land on 100%. Here 45 + 16 + 9 + 7 + 6 + 10 + 3 + 4 = 100, so nothing was dropped or double counted. If your shares came to 92% or 108%, you would know a part is missing or one is being counted twice, before you ever trusted the numbers.

The second test guards the step people skip: make sure every part is measured the same way before you add. Mixing units or periods is the classic quiet error.

Your Turn!

Here is one week of your leisure time, recorded by activity. Notice that the entries are not all written the same way.

  • Reading: 3 hours

  • Exercise: 4 hours

  • Gaming: 5 hours

  • Cooking for fun: 2 hours

  • Podcasts: 90 minutes

Do three things:

  1. Compute the total number of leisure hours for the week. Look closely at the units before you add.

  2. Compute each activity’s share of the whole, as a percentage.

  3. Confirm your shares add up to about 100%.

Write down your total, your five shares, and your check before reading on. Then check your answer against the model solution found at the end of this chapter.

Let’s Recap!

  • A total is every value in a group added together, and a subtotal is a total for one part of that group.

  • A share of the whole is a part divided by the total, read as a percentage, and it makes raw amounts comparable at a glance.

  • The procedure is always the same: put values in one unit, add them, form subtotals if useful, then divide each part by the total.

  • Every part’s share added together must come to 100%, which is a fast test that nothing was dropped or double counted.

  • Measuring every part the same way before adding is the step that keeps a total honest.

You can now turn a group of values into a trustworthy total and read each part’s share of it. Next you will tackle the quantity people reach for most and misuse most often, the average, and learn how to pick the one that tells the truth about your data.

Model Solution

  1. First fix the units. Ninety minutes is 1.5 hours, so every entry is now in hours: 3, 4, 5, 2, and 1.5. Adding them gives a total of 3 + 4 + 5 + 2 + 1.5 = 15.5 hours.

  2. Divide each activity by 15.5 and multiply by 100: reading 3 ÷ 15.5 ≈ 19%, exercise 4 ÷ 15.5 ≈ 26%, gaming 5 ÷ 15.5 ≈ 32%, cooking for fun 2 ÷ 15.5 ≈ 13%, and podcasts 1.5 ÷ 15.5 ≈ 10%.

  3. The shares add to about 19 + 26 + 32 + 13 + 10 = 100%, so nothing was dropped. (With rounding, this test can land on 99% or 101%; that small gap is normal and not an error.)

The trap was the units. Had you added 90 as if it were hours, the total would have jumped to 104 and every single share would have been wrong. Putting every part in the same unit first, exactly the move from step one of the procedure, is what kept the whole calculation honest.

Et si vous obteniez un diplôme OpenClassrooms ?
  • Formations jusqu’à 100 % financées
  • Date de début flexible
  • Projets professionnalisants
  • Mentorat individuel
Trouvez la formation et le financement faits pour vous