FormulaCraft

How to calculate the percentage of a total in Excel and Google Sheets

Topic:Percentages
Excel & Google Sheets
=B2/SUM($B$2:$B$5)

Verified example

Computed by a real spreadsheet engine on the sample data below.

CategorySales
Electronics12000
Clothing8000
Grocery5000
Books3000

=B2/SUM($B$2:$B$5)0.4285714286

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1In an empty column next to your values (e.g. C2), type =B2/SUM($B$2:$B$5).
  2. 2Lock the SUM range with $ so it stays fixed when you copy the formula down.
  3. 3Press Enter, then copy the formula down for all rows.
  4. 4Select the result cells and apply the Percentage number format (Home > % in Excel, or Format > Number > Percent in Sheets).

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

My percentages don't add up to 100% — why?

Rounding in display can cause small discrepancies. The underlying values should sum to exactly 1 (or 100%). Check the actual cell values with =SUM(C2:C5).

Can I calculate percentage of a hardcoded total?

Yes — replace SUM($B$2:$B$5) with the total value directly, e.g. =B2/1000.

More on Percentages

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: