Calculate Each Row as a Percentage of a Column Total in Excel
Question details
Calculate each row's share of the total for a numeric column in an Excel table.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user wants a percentage column that calculates each row's contribution to a table column total and adjusts when rows are added.
- Observed behavior
- Each row should display its value divided by the sum of the complete table column, formatted as a percentage.
Make sure the values to calculate are in a numeric column with a header. Check the table name and column header so you can use them in the formula.
Use a structured reference in an Excel table
Use this method to calculate each row's share and have the column total adjust as the table grows.
Click a cell in the table and open the Table Design tab. Check the Table Name box; for this example, the name is SalesTable.
Enter a new header, such as Share, in the column immediately to the right of the table.
In the first data cell under Share, enter =[@Amount]/SUM(SalesTable[Amount]). Replace Amount and SalesTable with your actual column header and table name.
Select the Share column's data cells, then choose Home > Percent Style. Adjust the decimal places on the Home tab if needed.

Calculate column shares in WPS Spreadsheet
Use a division formula with an absolute SUM range in WPS Spreadsheet, then format the results as percentages.
- 1. Open your workbook: Open WPS Spreadsheet and choose Open to select your workbook.
- 2. Add a result column: Enter Share in a blank column next to your numeric values. For example, use column C if the amounts are in column B.
- 3. Enter and fill the formula: If the amounts run from B2 through B100, enter =B2/SUM($B$2:$B$100) in C2. Drag the fill handle down through the remaining data rows, replacing B100 with your actual last data cell.
- 4. Apply percentage formatting: Select the calculated cells and choose Percent Style on the Home tab. If you add rows beyond the referenced range, update the SUM range and fill the formula into the new rows.

Frequently Asked Questions
How do I find my Excel table name?
Click anywhere in the table, then open Table Design and look in the Table Name box.
Will the percentage formula include newly added table rows?
Yes. The structured reference SalesTable[Amount] adjusts when rows are added to the table, and Excel normally extends the calculated-column formula to new rows.
Why does the formula show a division-by-zero error?
The sum of the Amount column is zero. Check the numeric values in that column before dividing by the total.
How do I show the result as a percentage instead of a decimal?
Select the result cells and choose Home > Percent Style. Use the decimal-place controls on the Home tab to change the displayed precision.




