HomeGoogle DocsSpreadsheetCalculating the Percentage of Total in Google Sheets

Calculating the Percentage of Total in Google Sheets [How To]

Published on

To calculate the percentage of total in Google Sheets you can use array or non-array based formulas.

Normally the output of such calculations will be automatically formatted to numbers like 0.25 for 25%, 0.15 for 15%, etc.

You can either use the Format menu or To_percent function to format the output of the percentage of total calculation in Google Sheets.

I will try to include all these tips in this quick tutorial. So here we go!

Sample Data: Administrative Expenses.

AB
1Licensing & Fees735.00
2Vehicle Registration0.00
3Visa Processing0.00
4Sundry Office Expenses653.00
5Local Conveyance82.00
6Medical Expense240.00
7Accommodation Charges0.00
8Office Rent6000.00
9Electricity733.00
10Trade License Renewal2200.00
11TOTAL10643.00

The sample data shows the administrative expenses of an organization in a quarter. Let’s calculate the percent distribution of the total administrative costs which is 10643.00.

Formulas to Get Percentage of Total in Google Sheets

Non-Array Formula:

Assume we have already the sum of expenses in B11 as above. If so, use =to_percent(B1/$B$11) in cell C1 and drag down the formula. Then increase the decimal places of the cells in column C that contain the formulas.

If you want to see the underlying values in column C (please see the just below image), simply remove the to_percent function from the formulas.

Percentage of Total in Google Sheets

Looking at the percent distribution, you can easily find that the major part of the administrative cost is the office rent (56.38%).

Array Formula:

You can replace the drag and drop (non-array) formula to calculate the percentage of total in Google Sheets with an array formula.

Empty the range C1:C10 and enter the below array formula in C1.

=ArrayFormula(to_percent(B1:B10/$B$11))

Percent Distribution without Total Row

In the above two example formulas, I have used cell B11 as a reference. It contains the total of the values in the array B1:B10 which is obviously the total administrative cost.

Assume you don’t have such a total row (A11:11) as you have the plan to add new account heads (new rows with expenses) in the future.

In that scenario, you can calculate the percentage of the total of a column as below.

Drag-Down (Non-Array) Formula for Infinite Rows: This formula to be applied in C1 and copy down.

=to_percent(B1/sum($B$1:$B))

Array Formula to Get Percentage of Total in Infinite Rows: Just enter in cell C1.

=ArrayFormula(if(len(A1:A),TO_PERCENT(B1:B/sum(B1:B)),))

Additional Resources:

  1. How to Create a Percentage Progress Bar in Google Sheets.
  2. How to Use Percentage Value in Logical IF in Google Sheets.
  3. The PERCENTRANK Functions in Google Sheets.
  4. How to Use the Percentile Function in Google Sheets.
  5. How to Use the UNARY_PERCENT Function in Google Sheets.
Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

XLOOKUP in Excel: Working with Visible Rows in a Table

In Excel, the XLOOKUP function isn't inherently designed to exclusively work with visible rows;...

SUMPRODUCT Differences: Excel vs. Google Sheets

The core purpose of the SUMPRODUCT function remains consistent across both Excel and Google...

Sum Values by Month and Category in Excel

With the help of EOMONTH, UNIQUE, and SUMIFS functions in Excel, you can efficiently...

Sum Values by Categories in Excel

In Excel, the easiest way to sum values in a range by categories is...

More like this

Interactive Random Task Assigner in Google Sheets

You have multiple tasks and multiple people. Here's a fun way to randomly assign...

Google Sheets Bar and Column Chart with Target Coloring

To color each data point in the column or bar chart according to the...

Analyzing Column A Between Non-Adjacent Values in Column B: Google Sheets

This tutorial addresses a common scenario encountered in Google Sheets: how to sum, average,...

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.