In this lesson

SUM, AVERAGE and percentages in Excel

Total, average, best, worst, margin and growth: the handful of functions and percentage ideas that answer most questions about a column of figures, shown on six months of sales for an invented shop.

Level
Beginner
Reading time
About 12 minutes

By the end you will be able to:

  • total, average, count and find the highest and lowest of a range
  • calculate profit, margin and growth with formulas that copy down
  • tell a margin for a whole period from an average of monthly margins
  • say the difference between a percentage and a percentage point
  • explain why a displayed number can differ from the stored one and use ROUND

From a list of numbers to answers

Most finance questions start the same way: here is a column of figures, so what do they add up to, what is typical, what was the best and the worst, and how much did they change? Excel answers each with one short function. This lesson uses six months of sales and costs for an invented small shop, the sort of record any business keeps.

It builds on the previous lesson on cells and references. The finance behind profit and margin is in revenue, expenses and profit, but you can follow this lesson without it.

Profit and margin for every month

Profit is sales minus costs, so column D holds =B2-C2 copied down. Margin is profit as a share of sales, so column E holds =D2/B2. Both references are relative, because each row uses its own sales and costs.

Margin is a ratio, so it is formatted as a percentage. Formatting does not change the value. A margin of 0.25 is stored as 0.25 and only displayed as 25.0%. Use the Percent Style button or Format Cells, and type the formula normally.

Six months of sales and costs for a small shop, with profit, margin and growth calculated and a summary below
RowABCDEF
1MonthSalesCostsProfitMarginGrowth
2Jan$12,400$9,300$3,10025.0%
3Feb$13,150$9,800$3,35025.5%6.0%
4Mar$12,800$9,650$3,15024.6%−2.7%
5Apr$14,200$10,400$3,80026.8%10.9%
6May$15,100$11,000$4,10027.2%6.3%
7Jun$14,650$10,900$3,75025.6%−3.0%
8Total$82,300$61,050$21,25025.82%
9Average$13,717$10,175$3,54225.77%
10Highest$15,100$11,000$4,10027.2%
11Lowest$12,400$9,300$3,10024.6%
12Months6
The yellow cells were typed. Rows 8 to 12 are summary formulas. Cell E8 is selected: the overall margin is total profit divided by total sales.

SUM, AVERAGE, MAX, MIN and COUNT

Five functions cover most summaries. SUM adds a range. AVERAGE adds it and divides by how many numbers there are. MAX and MIN return the highest and lowest. COUNT counts the cells that hold numbers and ignores text and blanks.

In the sheet, total sales for the six months are $82,300, the average month is $13,717, the best month is $15,100 and the weakest is $12,400. COUNT returns 6 because six months were entered.

The same sheet showing formulas
RowABCDEF
1MonthSalesCostsProfitMarginGrowth
2Jan$12,400$9,300=B2-C2=D2/B2
3Feb$13,150$9,800=B3-C3=D3/B3=B3/B2-1
4Mar$12,800$9,650=B4-C4=D4/B4=B4/B3-1
5Apr$14,200$10,400=B5-C5=D5/B5=B5/B4-1
6May$15,100$11,000=B6-C6=D6/B6=B6/B5-1
7Jun$14,650$10,900=B7-C7=D7/B7=B7/B6-1
8Total=SUM(B2:B7)=SUM(C2:C7)=SUM(D2:D7)=D8/B8
9Average=AVERAGE(B2:B7)=AVERAGE(C2:C7)=AVERAGE(D2:D7)=AVERAGE(E2:E7)
10Highest=MAX(B2:B7)=MAX(C2:C7)=MAX(D2:D7)=MAX(E2:E7)
11Lowest=MIN(B2:B7)=MIN(C2:C7)=MIN(D2:D7)=MIN(E2:E7)
12Months=COUNT(B2:B7)

Each function took the same range, B2:B7, and was copied across to C, D and E. Notice that the ranges never include the Total row. A common slip is to let a range run into a total and add it twice.

Percentages and growth

A percentage is a part divided by a whole. The overall margin is total profit divided by total sales, $21,250 ÷ $82,300 = 25.82%. Look at E9, though. The average of the six monthly margins is 25.77%, which is slightly different. Averaging percentages gives every month the same weight, whatever its size, while dividing the totals weights each month by its sales. When you need a margin for a whole period, divide the totals.

Growth is the change as a share of the starting figure: new divided by old, minus 1. Column F holds =B3/B2-1. February sales rose 6.0% on January. June fell 3.0% on May, which Excel shows as −3.0%.

Two habits help. First, say what a percentage is of. A margin is a percentage of sales, and a growth rate is a percentage of last month. Second, a change between two percentages is in percentage points. A margin that moves from 25.0% to 27.2% rose by about 2.2 points, which is not the same thing as rising 2.2%.

What you see is not always what is stored

Formatting a cell to two decimals changes how it looks and nothing else. The sheet below holds one third three times. Each cell displays 0.33, yet the sum is 1.00 because Excel adds the stored values.

If you want the number itself to change, use ROUND(number, digits). Then the cell holds 0.33 and the sum is 0.99. Neither answer is wrong. They answer different questions, so decide which one you mean. For money, many sheets keep full precision in the working and round only the figures shown.

Three equal thirds, shown to two decimal places, then rounded with ROUND
RowAB
1Raw valueROUND to 2
20.330.33
30.330.33
40.330.33
5Sum of rounded0.99
6Sum of raw values1.00
The raw column holds 0.3333... in each cell and only displays 0.33. SUM adds the real values, so it gives 1.00. After ROUND the cells really hold 0.33, and the sum is 0.99.

Try it yourself

The practice workbook holds the shop sheet drawn above, and a second sheet with the next three months for you to fill in. The third sheet holds the answers.

Download the practice workbook (free .xlsx, no sign-up).

What this lesson leaves out

  • An invented shop. The sales and costs are made up. They show the method and describe no real business.
  • Six functions. There are hundreds of Excel functions. These few do most of the everyday work, and the next lessons add the ones finance needs.
  • Percent of what. The lesson shows margin and growth. Other percentages, such as a share of the total, follow the same part-over-whole rule.
  • No charts. A chart is a quick way to see a pattern. It adds no new calculation, so it is left out.

Common mistakes

Adding a total into a range

If the range runs into the Total row, the total is added to itself. Stop the range at the last data row.

Averaging percentages

The average of monthly margins is not the margin for the year unless every month is the same size. Divide total profit by total sales.

Dividing by the wrong year

Growth is new over old minus 1. Dividing old by new gives the wrong answer.

Treating percentage points as percent

A rise from 25% to 30% is 5 points, and it is a 20% increase in the margin. Say which one you mean.

Rounding too early

If you round each step and then add, small differences pile up. Keep full precision in the working and round at the end.

Questions to answer

1. What is the total of the sales in the shop sheet, and which function finds it?

Show the working

SUM. =SUM(B2:B7) adds 12,400 + 13,150 + 12,800 + 14,200 + 15,100 + 14,650 = $82,300.

2. What is the average monthly sales, to the nearest dollar?

Show the working

AVERAGE: 82,300 ÷ 6 = $13,717.

3. March sales were 12,800 and April sales were 14,200. What was the growth, to one decimal place?

Show the working

14,200 ÷ 12,800 − 1 = 10.9%.

4. In the Your turn sheet, what is the July profit and margin, with margin to one decimal place?

Show the working

Profit is 15,400 − 11,300 = $4,100. Margin is 4,100 ÷ 15,400 = 26.6%.

5. In the Your turn sheet, what is the growth of September sales on August, and the overall margin for the quarter?

Show the working

15,800 ÷ 14,900 − 1 = 6.0%. Total sales are $46,100 and total costs 34,250, so profit is 11,850 and the overall margin is 25.7%.

Where this is used

  • A small business adds up each month's sales and compares the best and worst months.
  • An analyst works out growth rates for every year of a company's revenue with one copied formula.
  • A household averages its monthly electricity bill to set a realistic budget line.
  • A manager compares margins between products by dividing profit by sales for each.
  • A student checks a textbook's ratios by rebuilding them from the printed figures.

Key terms

SUM
Adds the numbers in a range.
AVERAGE
Adds a range and divides by how many numbers it holds.
MAX and MIN
Return the largest and smallest value in a range.
COUNT
Counts the cells in a range that hold numbers.
Margin
Profit divided by sales, shown as a percentage.
Growth rate
The change from an earlier figure, as a share of that figure.
Percentage point
The unit for the gap between two percentages.
ROUND
Changes a stored number to a set number of decimal places.

Questions people ask

What is the difference between formatting and rounding?

Formatting changes how a number is displayed. Rounding with ROUND changes the number stored in the cell.

Why does AVERAGE ignore my text cells?

AVERAGE and COUNT use only cells that hold numbers. Text, blanks and headings are skipped.

How do I show a number as a percentage?

Enter the value as a fraction such as 0.25 and choose Percent Style, or type 25% directly.

Can I fill a formula down quickly?

Select the cell, then double-click the small square at its lower-right corner. Excel copies the formula down as far as the neighbouring column has data.

Sources and review

  1. Microsoft Support, Formulas and functions, the index of Excel functions, for the arguments each function takes.
  2. Microsoft Support, Switch between relative, absolute, and mixed references, for how a reference changes when a formula is copied and the keys that add the dollar signs.

How the numbers were checked: every sheet drawn in this lesson was built as a real workbook, recalculated with LibreOffice, and drawn from the recalculated cells, so the figures are what a spreadsheet really computes. The worked answers were recomputed the same way. These are standard functions with the same definitions in Excel and Google Sheets. The practice file is the same workbook.