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.

Hierarchical Numbering Sequences in Excel

Creating hierarchical numbering sequences in an Excel spreadsheet can significantly improve the way you...

How to Easily Repeat a Sequence of Numbers in Excel

Excel offers multiple ways to accomplish tasks, and the simplicity of each approach depends...

Create a Sequence of Dates at Every Nth Row in Excel (Dynamic Array)

Would you like to create a sequence of dates in every nth row in...

XMATCH Row by Row: Finding Values Across a Range in Google Sheets

Using the BYROW function with XMATCH in Google Sheets allows us to match values...

More like this

XMATCH Row by Row: Finding Values Across a Range in Google Sheets

Using the BYROW function with XMATCH in Google Sheets allows us to match values...

Limit Formula Expansion to a Specific Row in Google Sheets

In this tutorial, I’ll explain how to limit the expansion of an array formula...

3-D Referencing Structured Data Tables in Google Sheets

When you have several tables within a single sheet—not across multiple sheets in a...

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.