Calculate Column Percentages and Totals in Excel
Question details
Calculate a column total and each value's percentage of that total.

- 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.
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.
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.
Select a cell outside the source range, such as B101, and enter =SUM(B2:B100).
Select C2 and enter =B2/SUM($B$2:$B$100). The dollar signs keep the total range fixed when the formula is copied.
Select C2 and choose Home > Percent Style. Adjust the decimal places on the Home tab if needed.
Drag the fill handle at the bottom-right corner of C2 down to C100 to calculate the remaining percentages.

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. Open the worksheet: Open WPS Spreadsheets and use File > Open to select your workbook.
- 2. Add the total: Select a cell outside the data range, such as B101, and enter =SUM(B2:B100).
- 3. Add the percentage formula: Select C2 and enter =B2/SUM($B$2:$B$100), adjusting the references to match your data.
- 4. Format and fill: Select C2, choose Percent Style on the Home tab, and drag the fill handle down through the remaining rows.

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.




