Function Problems

Calculate Each Row as a Percentage of a Column Total in Excel

Adam DavisAdam Davis Dec 2, 2026 869 views

Question details

Calculate each row's share of the total for a numeric column in an Excel table.

Calculate Each Row as a Percentage of an Excel Table Column Total
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.
Before you start

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.

Solution 1Recommended

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.

1
Check the table name

Click a cell in the table and open the Table Design tab. Check the Table Name box; for this example, the name is SalesTable.

2
Add a percentage column

Enter a new header, such as Share, in the column immediately to the right of the table.

3
Enter the formula

In the first data cell under Share, enter =[@Amount]/SUM(SalesTable[Amount]). Replace Amount and SalesTable with your actual column header and table name.

4
Format the results

Select the Share column's data cells, then choose Home > Percent Style. Adjust the decimal places on the Home tab if needed.

Use a structured reference in an Excel table
Check the total: Excel normally fills a calculated-column formula down the table. If the Amount column sums to zero, the formula returns a division-by-zero error.
Calculate percentages in WPS

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. 1. Open your workbook: Open WPS Spreadsheet and choose Open to select your workbook.
  2. 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. 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. 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.
Calculate each row's contribution to a column totalOpen and edit Microsoft Excel XLSX and XLS filesUse familiar formulas and percentage formattingWork with spreadsheets in a free Office suite
microsoft office alternative - wps office

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.