How to Calculate Percentage of Total in Google Sheets

Published on

Let’s master a key skill in Google Sheets: calculating percentages of a total. This is useful for analyzing sales data, budgets, and survey results, and it’s a relatively simple task.

Percentages help you understand how each value compares to the total. In this guide, I’ll walk you through the steps using simple formulas. By the end, you’ll be confident in applying this technique to your own sheets.

The Formula to Calculate Percentage of Total in Google Sheets

Use the following formula to calculate the percentage of a total in Google Sheets:

=ArrayFormula(TO_PERCENT(IF(range="",,range/SUM(range))))
  • range refers to the column or row where your data is located.
  • For example, if your data is in B1:B, replace range with B1:B.

Example: Calculating Percentage of Total in Google Sheets

Here’s an example using administrative expenses in column B and their descriptions in column A. Let’s calculate what percentage each expense contributes to the total.

Sample Data: Administrative Expenses

AB
Licensing & Fees735
Vehicle Registration0
Visa Processing0
Sundry Office Expenses653
Local Conveyance82
Medical Expense240
Accommodation Charges0
Office Rent6000
Electricity733
Trade License Renewal2200

To calculate the percentages, enter the following formula in cell C1:

=ArrayFormula(TO_PERCENT(IF(B1:B="",,B1:B/SUM(B1:B))))
Example of calculating the percentage of a total in Google Sheets

Key Points:

  • Replace B1:B with your data range if it differs.
  • Ensure the column where you apply the formula has enough blank rows to display the results, as it’s an array formula. For example, if the range is B1:B and you apply the formula in C1, C1:C should be empty. If the range is B1:B100 and the formula goes in C1, then C1:C100 must be empty.

Let’s break down the formula so that you can understand what each component does to return the percentage of the total.

Explanation of the Formula

  1. ArrayFormula
    • Enables the formula to process the entire range (B1:B) in one go, without dragging it down row by row.
  2. IF(B1:B="",,...)
    • Logical Test: Checks if a cell in B1:B is empty.
      • If empty, returns a blank ("").
      • Otherwise, it proceeds to calculate the percentage of the total.
  3. B1:B/SUM(B1:B)
    • Divides each value in B1:B by the total sum of all values in the range.
    • This calculates the proportion of each value relative to the total.
  4. TO_PERCENT(...)
    • Converts the resulting decimal values into percentage format.
    • Example: 0.25 becomes 25%.

Additional Resources

Explore these guides for more on working with percentages in Google Sheets:

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Expert Prashanth KV is a Diamond Product Expert in Google Sheets, officially recognized by Google for his contributions to the Docs Editors Help Community and featured in the Google Product Experts Directory. With years of experience working with Google Sheets and Excel for multinational firms in Mumbai and Dubai, he has been blogging since 2012, offering practical, real-world spreadsheet solutions that professionals rely on. Explore his blog to learn advanced formulas, automation tips, and problem-solving techniques to elevate your spreadsheet skills.

How to Count Merged Cells in Google Sheets (and Get Their Size)

Sometimes, you may have blocks of merged cells in a column or row. But...

Count Consecutive Workday Absences in Google Sheets

This tutorial offers a powerful formula-based solution to count consecutive workday absences in Google...

Top N Products and Top N Sellers in Google Sheets (Top N of Top N)

If you’ve ever wanted to compare which sellers contribute the most to your top-selling...

Use XLOOKUP in a Structured Table in Google Sheets (Single and Multiple Conditions)

This tutorial is for users who want to apply XLOOKUP inside a structured table...

More like this

How to Count Merged Cells in Google Sheets (and Get Their Size)

Sometimes, you may have blocks of merged cells in a column or row. But...

Count Consecutive Workday Absences in Google Sheets

This tutorial offers a powerful formula-based solution to count consecutive workday absences in Google...

Top N Products and Top N Sellers in Google Sheets (Top N of Top N)

If you’ve ever wanted to compare which sellers contribute the most to your top-selling...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.