Percentage of Total Formula

To find what share of a total each value represents, divide the value by the total. Lock the total with dollar signs so the formula can be filled down a whole column.

Free, no sign-up required · 5 free generations a day

Last updated

Describe your task, get the formula

Type what you need in plain English, or pick an example below. You get the formula, a step-by-step explanation, and a worked example.

Percentage of total formulas

Syntax
=B2 / SUM($B$2:$B$10)
=B2 / $B$11
=SUMIF($A$2:$A$100, F2, $B$2:$B$100) / SUM($B$2:$B$100)

The dollar signs keep the total range fixed while the first reference moves down. The second version divides by a total that already sits in its own cell, and the third calculates the share of one category even when it appears on many rows.

Examples

Each row as a share of the column total

=B2/SUM($B$2:$B$10)

Divides the amount in B2 by the sum of the whole list. Fill it down and format the column as Percent; the results add up to 100%.

Use a total that already exists in a cell

=B2/$B$11

If the total sits in B11, referencing it directly is faster than summing again. The dollar signs stop the reference from moving.

Share of one category across many rows

=SUMIF($A$2:$A$100,F2,$B$2:$B$100)/SUM($B$2:$B$100)

Adds up every row for the category in F2 and divides it by the overall total, which gives that category's percentage of the whole.

Common mistakes and how to fix them

The percentages are wrong after filling down

The total reference is not locked. Use $B$2:$B$10 or $B$11 so it does not shift to B3:B11, B4:B12, and so on.

The values look like 0.18 instead of 18%

The formula returns a fraction. Apply the Percent number format to show it as a percentage.

The percentages add up to more than 100%

The total row is probably inside the range you are summing, so the total is counted twice. Sum only the data rows, not the total row.

Frequently asked questions

How do I show a percentage of total in a pivot table?

Add the field to Values, open Value Field Settings, then Show Values As, and choose % of Grand Total. No formula is needed.

How do I limit the decimals?

Change the number format to show 0 or 1 decimal places. To round the stored value as well, wrap the formula in ROUND(…,2).

Does it work in Google Sheets?

Yes. The division, SUM, SUMIF, and the Percent format all work the same in Google Sheets.

Don't want to write it by hand?

Describe what you need in plain English and get a ready-to-use formula in seconds.

Try the formula generator