fxExcelReps

← How-to guides

How to Calculate the Percentage of a Total in Excel

Divide each value by the total and lock the total with dollar signs: =B2/$B$7. Format the column as a percentage. The $ keeps the formula pointing at the total when you copy it down; without it, every row below divides by the wrong cell.

{"cells": {"A1": "Region", "A2": "North", "A3": "South", "A4": "East", "A5": "West", "A6": "Total", "B1": "Sales", "B2": 32600, "B3": 30100, "B4": 19000, "B5": 14300, "B6": "=SUM(B2:B5)", "C1": "Share", "C2": "=B2/$B$6", "C3": "=B3/$B$6", "C4": "=B4/$B$6", "C5": "=B5/$B$6", "C6": "=B6/$B$6"}, "focus": "C2", "formats": {"B2:B6": {"dec": 0, "fmt": "number"}, "C2:C6": {"dec": 1, "fmt": "percent"}}, "note": "Click C3: it still divides by $B$6. The shares always add up to 100%."}

Divide by a locked total

Press F4 after clicking the total to add the dollar signs.

=B2/$B$6The share of the total in B6.
=B2/SUM($B$2:$B$5)Without a total row.

Share within a group

Divide by the group's total with SUMIF.

=C2/SUMIF($A$2:$A$100, A2, $C$2:$C$100)Each sale's share of its own region's total.

Percentage of a target

The same division against a goal instead of a total.

=B2/C2Sales B2 against the target in C2: above 100% means the target was beaten.

Common mistakes

#DIV/0! from the second row
The total isn't locked, so it moved to an empty cell when copied. Use $B$6.
Shares don't add up to 100%
Rounding in the display. The real values do; format with one decimal or round the last one.

Frequently asked questions

What does the $ sign do?

It stops the reference from moving when the formula is copied. Practise it in absolute references.

How do I show 0.25 as 25%?

Format the cell as a percentage (Ctrl+Shift+%). Don't multiply by 100.

How do I calculate the change between two years?

See percentage change.

Practise it

Absolute references ($)SUMSUMIF

Think you know this?

15 formula tasks, no hints, with a leaderboard. Absolute, relative and mixed references included.

Take the Pro Challenge →

More how-to guides

How to Count Unique Values in Excel

Count distinct values in an Excel column with COUNTA and UNIQUE, or SUMPRODUCT and COUNTIF in older versions, with a condition too.

How to Round to the Nearest 5, 10 or 100 in Excel

Round numbers to the nearest 0.05, 5, 10, 100 or 1000 in Excel with ROUND, MROUND, CEILING and FLOOR. Live examples to try.

How to Find the Top 5 Values in Excel

Find the largest 3, 5 or 10 values in Excel with LARGE, and return the names next to them with INDEX and MATCH, XLOOKUP or SORT.

How to Check If a Cell Is Blank in Excel

Test whether a cell is empty in Excel with IF and an empty string or ISBLANK, and leave a result blank until the inputs are filled in.