How-to recipes · Analysis
How to calculate percentage of total in Excel
Show each item as a share of the total: divide by a locked SUM, use PERCENTOF in Microsoft 365, or a PivotTable's % of Grand Total.
Totals tell you how big something is; percentages of the total tell you how important it is. Which region brings in most of the revenue? What share of the budget goes to travel? How much of the workload does each team member carry? The calculation is always the same: one part divided by the whole. The tricky part in Excel is copying the formula down without the whole moving, and formatting the result so it reads as a percentage.
The example data
Sales for four regions in A1:B5. The total is 111,250.
Every version: divide by a locked total
In C2 divide the region's sales by the total of the whole column, then copy down to C5:
| A | B | C | |
|---|---|---|---|
| 1 | Region | Sales | Share |
| 2 | North | 48250 | 43.4% |
| 3 | South | 31500 | |
| 4 | East | 18900 | |
| 5 | West | 12600 |
Formatted as Percentage with 1 decimal place. Unformatted, the cell shows 0.433707865.
Result: 43.4%
- Type
=B2/SUM($B$2:$B$5)in C2. The$signs lock the total range so it stays the same when you copy the formula. Without them, the range would slide down to B3:B6 in the next row and the percentages would be wrong. - Press Enter. The result is a decimal: 0.4337...
- Click Home > Number > % (Ctrl+Shift+%) to show it as a percentage, then use Increase Decimal once to show 43.4%.
- Copy C2 down to C5. The four shares add up to 100%.
If the total is already in a cell, say B6, refer to it with an absolute reference: =B2/$B$6. More on dollar signs in Cell references: relative, absolute and mixed, and on the % format in Number formats and custom format codes.
=B2/SUM($B$2:$B$5)*100 formatted as a percentage shows 4337.1%. Either keep the decimal and format it as %, or multiply by 100 and use a normal number format, but not both.Microsoft 365: all shares in one formula
Dynamic arrays let you divide the whole column at once:
| A | B | C | |
|---|---|---|---|
| 1 | Region | Sales | |
| 2 | North | 48250 | 43.4% |
| 3 | South | 31500 | 28.3% |
| 4 | East | 18900 | 17.0% |
| 5 | West | 12600 | 11.3% |
The formula spills four results; format the spill range as a percentage with one decimal.
Microsoft 365 also has a dedicated function, PERCENTOF, which takes the part and the whole: =PERCENTOF(B2,B2:B5) returns 0.4337 for North. It also accepts a subset of the data, for example the sum of the North and South cells, and is mostly useful inside GROUPBY and PIVOTBY summaries.
Share of a category in a longer list
When the list has many rows per region, combine SUMIF with SUM: =SUMIF(A2:A100,"North",B2:B100)/SUM(B2:B100) gives the North share without building a summary table first. See How to sum by category in Excel.
PivotTable: % of Grand Total
- Insert a PivotTable with Region in Rows and Sales in Values.
- Drag Sales into Values a second time.
- Right-click a number in the second column > Show Values As > % of Grand Total.
- Rename the column header to Share.
Other options in the same menu give % of Column Total, % of Row Total and % of Parent Total, which are useful in two-level reports. See PivotTables: summarise thousands of rows in seconds.
Pitfalls
- Rounded shares that do not add to 100%. Displayed with one decimal, shares can add to 99.9% or 100.1% because each is rounded separately. The underlying values still add to exactly 1. If a report must show 100.0%, round with ROUND and adjust the largest item, or add a note.
- Including the total row in the SUM. If B6 holds the total and you write
SUM($B$2:$B$6), every share is halved. - Negative values (returns, refunds) make shares meaningless: a category can be 120% of the total. Report gross and returns separately.
- Zero total gives
#DIV/0!. Use=IFERROR(B2/SUM($B$2:$B$5),0)when the column may be empty.