Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets Percent Difference Formula

· 4 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To calculate percent difference in Google Sheets, use the formula =(B2-A2)/A2 and format the result as a percentage. This gives you the percentage change from the old value in A2 to the new value in B2. The steps below show how to set it up correctly, avoid common errors like dividing by zero or mixing up the order, and apply it across a whole column.

What You'll Need

  • A Google account and access to Google Sheets (desktop browser or mobile app)
  • Two numeric values: an original (old) value and a new value
  • Basic familiarity with entering formulas and cell references

Step-by-Step

  1. Open your spreadsheet in Google Sheets. If you are starting fresh, create a new sheet and enter your data. For example, put the old value in cell A2 and the new value in cell B2.
  2. Click an empty cell where you want the percent difference to appear, such as C2.
  3. Type the formula: =(B2-A2)/A2. This subtracts the old value from the new value, then divides by the old value. Press Enter.
  4. Format the result as a percentage. Select the cell with the formula, then click the Format as percent button in the toolbar (it looks like a % sign). Alternatively, go to Format > Number > Percent. The decimal result will now display as a percentage, e.g., 0.25 becomes 25%.
  5. Copy the formula down if you have multiple rows. Drag the fill handle (small square at the bottom-right of the cell) down the column. Google Sheets will adjust the cell references automatically.
  6. Check for errors. If you see #DIV/0!, it means the old value (A2) is zero or empty. You can handle this with =IFERROR((B2-A2)/A2, "") to display blank instead of an error.

Common Mistakes

  • Reversing the order: Using =(A2-B2)/A2 gives the opposite sign. Decide whether you want the change from old to new (new minus old) or the reverse.
  • Forgetting to format as percent: The formula returns a decimal (e.g., 0.1). Without percentage formatting, it looks like 0.1 instead of 10%.
  • Dividing by zero: If the old value is 0, the formula returns #DIV/0!. Use IFERROR or ensure your data has no zeros in the denominator.
  • Using the wrong cell references: Double-check that you are referencing the correct cells, especially when copying the formula.
  • Confusing percent difference with percent change: Percent difference typically compares two values using the average as the denominator, while percent change uses the old value. The formula above calculates percent change. For true percent difference, use =ABS(A2-B2)/((A2+B2)/2) and format as percent.

Tips

  • Use absolute references (e.g., $A$2) if you need to compare all rows to a single baseline value.
  • Apply percentage formatting to the entire column before entering formulas to save time.
  • Use ROUND to limit decimal places: =ROUND((B2-A2)/A2, 4) then format as percent.
  • Label your columns clearly (e.g., "Old Value", "New Value", "% Change") to avoid confusion.
  • Test with simple numbers first, like old=100, new=110, to verify the formula gives 10%.

Troubleshooting

  • Formula shows as text: Make sure the cell is not formatted as plain text. Select the cell, go to Format > Number > Automatic or Percent.
  • Result is negative when you expect positive: Check the order of subtraction. Swap A2 and B2 if needed.
  • #DIV/0! error: The denominator (old value) is zero. Use IFERROR or replace zero with a small number if appropriate.
  • Percentage looks wrong (e.g., 0.1% instead of 10%): You may have formatted as percent but the formula already multiplied by 100. Remove the multiplication or adjust formatting.
  • Formula not copying correctly: Ensure you are dragging the fill handle, not just copying and pasting without adjusting references.

Frequently Asked Questions

What is the difference between percent change and percent difference?

Percent change measures the change from an old value to a new value using the old value as the base: (new - old) / old. Percent difference compares two values using their average as the base: |a - b| / ((a + b) / 2). Use percent change for tracking growth over time; use percent difference when neither value is a clear starting point.

How do I calculate percent difference between two columns in Google Sheets?

Assuming old values are in column A and new values in column B, enter =(B2-A2)/A2 in C2, format as percent, and drag the fill handle down. For true percent difference, use =ABS(A2-B2)/((A2+B2)/2).

Why do I get a negative percentage?

A negative result means the new value is less than the old value. If you want the absolute change, wrap the formula in ABS: =ABS((B2-A2)/A2).

Can I calculate percent difference across an entire row?

Yes. Use the same formula but reference cells in the same row, e.g., =(B1-A1)/A1 for row 1. Then copy across the row.

How do I avoid #DIV/0! errors?

Use =IFERROR((B2-A2)/A2, "") to return blank when the old value is zero or empty. Alternatively, ensure your data contains no zeros in the denominator.

Does Google Sheets have a built-in percent difference function?

No, there is no dedicated function. You must use a formula like the ones above. The PERCENTDIFF function does not exist in Google Sheets.