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.

Beginner SUM PERCENTOF SUMIF ROUND

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:

C2fx=B2/SUM($B$2:$B$5)
ABC
1RegionSalesShare
2North4825043.4%
3South31500
4East18900
5West12600

Formatted as Percentage with 1 decimal place. Unformatted, the cell shows 0.433707865.

Result: 43.4%

  1. 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.
  2. Press Enter. The result is a decimal: 0.4337...
  3. Click Home > Number > % (Ctrl+Shift+%) to show it as a percentage, then use Increase Decimal once to show 43.4%.
  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.

Watch out. Do not multiply by 100 and apply the % format. =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:

C2fx=B2:B5/SUM(B2:B5)
ABC
1RegionSales
2North4825043.4%
3South3150028.3%
4East1890017.0%
5West1260011.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

  1. Insert a PivotTable with Region in Rows and Sales in Values.
  2. Drag Sales into Values a second time.
  3. Right-click a number in the second column > Show Values As > % of Grand Total.
  4. 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.
Tip. For the change from one period to the next rather than a share, see How to calculate percentage change in Excel. A share is also a good input for a progress bar in cells: How to create a progress bar in Excel cells.
⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

More how-to recipes