HomeGoogle DocsSpreadsheetPercentage Change Array Formula in Google Sheets

Percentage Change Array Formula in Google Sheets

Published on

There is no specific function to calculate the percentage change in Google Sheets. For this, we can write an array or non-array formula using arithmetic operators or its equivalent functions.

If you are familiar with or using MS Excel, you may already have the percentage change formula that may equally work in Google Sheets. But I am sure you don’t have an array formula (Excel version) to calculate the percentage change.

Even if you have, it won’t work in Google Sheets as ArrayFormula is a function in Sheets, not in Excel.

Must Read: Array Formula: How It Differs in Google Sheets and Excel.

Change and % Change

Change is the difference of one (new) value with another (old) value. Percentage change is the same difference in percentage.

Assume, as per my Google Analytics statistics, the traffic of my site (number of visitors) was 7720 nos. yesterday and 7304 nos. on the same day last week.

You May Like: How to Connect Google Analytics to Google Sheets.

The change in site traffic is 416 which we can calculate as below.

=7720-7304
Result: 416

The percentage change in site traffic is +5.70% which is a good sign for a webmaster. See the calculation below.

=416/7304
Result: 0.57, which is 5.70%

Let me explain how to calculate the percentage change as above in Google Sheets.

Calculating Percentage Change in Google Sheets

Non-Array Formula

=to_percent((C2-C3)/C3)
Percentage Change Formula in Google Sheets

The formula =(C2-C3)/C3 calculates the percentage change in Google Sheets. But the formula would return the result as 0.0569550931 which needs to be formatted to percent. For that, I have included the to_percent function in the formula.

You can rewrite the formula as below using functions equivalent to the arithmetic operators.

=to_percent(divide(MINUS(C2,C3),C3))

Array Formula to Calculate Percentage Change of Values in a Column in Google Sheets

In a column in Google Sheets, I have month-wise (Jan to Dec) sales amount.

Here, if I want to calculate the monthly percentage changes from January to December, I can use a percentage change array formula in Google Sheets.

Sample Data

MonthAmount
Jan100
Feb200
Mar350
Apr200
May250
Jun300
Jul450
Aug600
Sept75
Oct250
Nov1250
Dec500

First, let’s write the non-array formula so that you can understand the array formula better.

% Change Non-Array Formula in a Column in Google Sheets

The above data is in the range A1:B13. Since the first row contains headers, leave cell C1 and use the below formula in cell C2 and drag down.

=TO_PERCENT(iferror((B2-B1)/B1,0))
Percentage Change in a Column in Sheets

In the very first cell in the formula applied cell, i.e. in cell C2, the formula (see the formula above) would return an error as the formula in that cell involve cell B1 which contains a text. To return 0.00% in that cell, I have used IFERROR.

Percentage Change Array Formula in a Column in Google Sheets

A non-array formula is OK for a small range as above. But if you have a large set of data, I mean data in many rows in column B, you can use my following array formula to calculate the percentage change in Google Sheets.

In C2:

=ArrayFormula(if(B2:B="",,IFERROR((B2:B-B1:B)/B1:B,0)))

Points to Be Noted:

  • Do not copy down the formula.
  • If you see #REF! error, make sure that C3:C is blank.
  • Format the array C2:C to percent (Format > Number > Percent).
  • Don’t leave any cell in the data range in B2:B blank. I mean no blank cells between B2 and B13 as per the example above.

That’s all. Enjoy!

Resources (Related)

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.

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

Running Total By Month in Excel

This tutorial demonstrates how to calculate the running total by month in a range...

SORT and SORTBY – Excel Vs Google Sheets

While Excel offers the SORT and SORTBY functions for sorting a table, Google Sheets...

Get Top N Values Using Excel’s FILTER Function

When using the FILTER function in Excel to extract the top N values, it's...

More like this

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

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...

1 COMMENT

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.