Calculation Issues

Calculate Column Percentages and Totals in Excel

John WilsonJohn Wilson Dec 2, 2026 869 views

Question details

Calculate a column total and each value's percentage of that total.

Calculate Column Percentages and Totals in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains values in a column, and the user wants a total and a percentage for each value.
Observed behavior
The desired result is a column total and a percentage showing each value's share of that total.
Before you start

Identify the cells containing the values and choose separate cells for the total and percentage results. The examples below use B2:B100 as the source range; adjust the references to match your worksheet.

Solution 1Recommended

Use SUM to calculate the total and each value's percentage

Use this method when each row should show its share of the sum of the values in one column.

1
Calculate the column total

Select a cell outside the source range, such as B101, and enter =SUM(B2:B100).

2
Calculate the first percentage

Select C2 and enter =B2/SUM($B$2:$B$100). The dollar signs keep the total range fixed when the formula is copied.

3
Format the result

Select C2 and choose Home > Percent Style. Adjust the decimal places on the Home tab if needed.

4
Copy the formula down

Drag the fill handle at the bottom-right corner of C2 down to C100 to calculate the remaining percentages.

Use SUM to calculate the total and each value's percentage
Check the denominator: If the column total is zero, the percentage formula returns a division error. Check the source values and confirm that the total is the intended denominator.
Calculate in WPS Spreadsheets

Calculate Column Totals and Percentages in WPS Spreadsheets

Use SUM and percentage formulas in WPS Spreadsheets to calculate each value's share of a column total.

  1. 1. Open the worksheet: Open WPS Spreadsheets and use File > Open to select your workbook.
  2. 2. Add the total: Select a cell outside the data range, such as B101, and enter =SUM(B2:B100).
  3. 3. Add the percentage formula: Select C2 and enter =B2/SUM($B$2:$B$100), adjusting the references to match your data.
  4. 4. Format and fill: Select C2, choose Percent Style on the Home tab, and drag the fill handle down through the remaining rows.
Calculate column totals and row percentages with formulasCompatible with Microsoft Excel XLSX and XLS filesFormat percentage results and copy formulas down a column
QA img-9

Frequently Asked Questions

Why are there dollar signs in the percentage formula?

The dollar signs in $B$2:$B$100 make the total range absolute, so it stays the same when you copy the formula down. The B2 reference changes to B3, B4, and so on.

Why does my formula show a division error?

A #DIV/0! error appears if SUM(B2:B100) is zero. Check the values in the source range and make sure you have selected the correct denominator.

Can I refer to the total cell instead of using SUM in every formula?

Yes. If B101 contains =SUM(B2:B100), enter =B2/$B$101 in C2, format it as a percentage, and copy it down.

How do I change the number of decimal places shown?

Select the percentage cells and use the decimal-place buttons in the Number group on the Home tab.