Google Sheets Percent Difference: Formula and Guide
In this article
To calculate the percent difference between two numbers in Google Sheets, use the formula =(NewValue - OldValue) / OldValue. This calculation determines the percentage increase or decrease from an original figure to a new one, providing a clear metric for growth, loss, or variance in your data.
What You'll Need
- A Google account with access to Google Sheets.
- A dataset containing at least two sets of numerical values (e.g., last month's sales vs. this month's sales).
- Basic familiarity with selecting cells and entering formulas.
Step-by-Step
- Organize Your Data: Arrange your data so that the original value (the baseline) is in one column and the new value is in the adjacent column. For example, place your "Old Value" in column A and your "New Value" in column B. Ensure there are no text characters or currency symbols typed manually into the cells; use the formatting toolbar for those instead, as manual text will cause the formula to return a #VALUE! error.
- Select the Target Cell: Click on the empty cell where you want the percentage difference to appear (for example, cell C2).
- Enter the Formula: Type the following formula exactly:
=(B2-A2)/A2. In this example, B2 represents the new value and A2 represents the old value. The parentheses are critical because they tell Google Sheets to perform the subtraction before the division, following the standard order of operations (PEMDAS). - Press Enter: Hit the Enter key on your keyboard. Initially, the result will appear as a decimal (e.g., 0.25 instead of 25%).
- Format as Percentage: With the cell still selected, look at the top toolbar and click the % (Format as percent) button. This multiplies the decimal by 100 and adds the percentage symbol automatically.
- Apply to Other Rows: To apply this calculation to an entire list of data, click the small blue square (the fill handle) in the bottom-right corner of cell C2 and drag it down to the bottom of your data range. Google Sheets will automatically adjust the cell references (B3-A3/A3, B4-A4/A4, etc.) for each row.
Common Mistakes
One of the most frequent errors is forgetting the parentheses. If you enter =B2-A2/A2, Google Sheets will divide A2 by A2 first (which equals 1) and then subtract that 1 from B2. This will give you a completely incorrect number. Always wrap the subtraction part of the formula in parentheses to ensure the difference is calculated before the division.
Another common mistake is dividing by the new value instead of the old value. While this calculates a different type of ratio, "percent difference" or "percent change" specifically requires the original value as the denominator. Dividing by the new value tells you what percentage of the new total the difference represents, rather than how much the original value grew or shrank.
Users also frequently try to type the percent sign (%) directly into the formula, such as =(B2-A2)/A2%. This is incorrect. The formula should result in a decimal, and the visual percentage representation should be handled via the Format > Number > Percent menu or the toolbar button.
Tips
To make your data more readable, use Conditional Formatting to highlight positive and negative changes. Select your percentage column, go to Format > Conditional formatting, and set a rule where if the value is greater than 0, the cell turns green, and if the value is less than 0, the cell turns red. This allows you to spot trends instantly without reading every individual number.
If you are dealing with a very large dataset and want to avoid dragging the fill handle, you can use an ArrayFormula. Instead of entering the formula in every cell, enter =ARRAYFORMULA((B2:B100-A2:A100)/A2:A100) in the top cell. This will automatically calculate the percent difference for every row from 2 to 100 in one go.
When presenting data to others, consider rounding your percentages. By default, Google Sheets may show several decimal places (e.g., 25.4321%). Use the Decrease decimal places button in the toolbar to round the result to one or two decimal places for a cleaner, more professional look.
Troubleshooting
If your formula returns a #DIV/0! error, it means the cell you are dividing by (the old value) is either empty or contains a zero. Mathematically, division by zero is impossible. To fix this and keep your sheet looking clean, wrap your formula in an IFERROR function: =IFERROR((B2-A2)/A2, 0). This tells Google Sheets to display a 0 (or any text you choose, like "N/A") instead of the error message.
If you see a #VALUE! error, check your data for non-numeric characters. If a cell contains "$50" as text instead of the number 50 formatted as currency, the formula will fail. Select your data columns and go to Format > Number > Number to ensure all entries are treated as digits.
If the result is a massive number (e.g., 5000%) when you expected a small one, double-check that you haven't accidentally swapped the old and new values or that you aren't dividing by a very small decimal. Verify that your original value is indeed the denominator.
Frequently Asked Questions
What is the difference between percent change and percent difference?
Percent change is used when there is a clear "before" and "after" (old vs. new), using the formula (New-Old)/Old. Percent difference is technically used when comparing two numbers that are equally important (no clear baseline), often using the average of the two numbers as the denominator: (Value A - Value B) / ((Value A + Value B)/2).
Can I calculate percent difference if the original value is negative?
Yes, but the standard formula can produce misleading results. If the old value is negative, you should use the absolute value of the denominator: =(B2-A2)/ABS(A2). This ensures that an increase in value still results in a positive percentage.
How do I show a decrease as a negative percentage?
The standard formula =(B2-A2)/A2 does this automatically. If the new value is smaller than the old value, the subtraction result will be negative, and the resulting percentage will be displayed with a minus sign (e.g., -15%).
Why does my result show as 0.15 instead of 15%?
Google Sheets stores percentages as decimals. 0.15 is the mathematical equivalent of 15%. To change the display, select the cell and click the % icon in the toolbar or go to Format > Number > Percent.
Does the order of the cells in the formula matter?
Yes. The formula must always be (New - Old) / Old. If you reverse it to (Old - New) / Old, your positive increases will show as negative decreases, and vice versa.