Formula Errors

How to Calculate Percentage Change in Excel When Starting Value is Zero

Huma Ashraf ChHuma Ashraf Ch Nov 10, 2026 868 views

Question details

The user needs to calculate a percentage change between two numbers where the starting value is zero, while avoiding the standard division error.

How to Calculate Percentage Change in Excel When the Starting Value is Zero
Product
Excel
Device & OS
not provided
Scenario
Calculating growth rates, budget variances, or financial metrics where the historical or baseline data happens to be zero.
Observed behavior
Standard percentage-change formulas like (New-Old)/Old or New/Old-1 return a #DIV/0! error because division by zero is mathematically undefined.
Before you start

Ensure your target cells are configured with 'Percentage' formatting so the formula output displays as a proper percentage rather than a raw decimal.

Solution 1Recommended

Use a Nested IF Formula for 100% or 0% Fallbacks

This method logically tests if the starting value is zero. It returns 100% if the new value grew from zero, 0% if both values are zero, and calculates normally otherwise.

By outputting numeric values (like 1 for 100% and 0 for 0%) rather than text strings, your data remains fully compatible with pivot tables and charts.

1
Select the target cell

Click on the cell where you want the percentage change result to appear.

2
Enter the nested IF formula

Type the formula: =IF(E2=0, IF(F2=0, 0, 1), (F2-E2)/E2). Replace E2 with your starting value cell and F2 with your new value cell.

3
Apply percentage formatting

Press Enter to calculate the result. Then, go to the Home tab and click the '%' icon in the Number formatting group.

Use a Nested IF Formula for 100% or 0% Fallbacks
Formula Customization: If you want the result to be exactly 100% whenever the starting value is zero and the new value is nonzero, this formula handles it cleanly without negative signs.

Calculate Percentage Change Flawlessly with WPS Spreadsheet

WPS Spreadsheet fully supports advanced logical functions like IF and IFERROR, making it easy to handle complex financial calculations and zero-denominator issues efficiently.

  1. 1. Open your dataset: Launch WPS Spreadsheet and open the document containing your starting and new values.
  2. 2. Input the logic formula: Click the desired result cell and type your IF or IFERROR formula to handle the zero starting values.
  3. 3. Format as percentage: Navigate to the Home tab and click the Percentage icon to instantly format the numeric outputs.
  4. 4. Apply to all rows: Drag the fill handle at the bottom-right corner of the cell downwards to apply the formula to the rest of your data.
100% compatible with Microsoft Excel formulas and formatsPre-built formatting tools for easy percentage applicationLightweight, fast, and completely free to use
microsoft office alternative - wps office

Frequently Asked Questions

Why do I get a #DIV/0! error when calculating percentage change?

This error occurs because dividing any number by zero is mathematically undefined. Excel displays #DIV/0! to indicate that the denominator (the starting value) in your formula is exactly zero or empty.

Can I format the formula output as '0.0%' directly in the text string?

While you can output text like '0.0%' in your IF formula, it is highly recommended to output the numeric value 0 or 1 and apply Excel's built-in Percentage formatting. This keeps the data numerical, allowing you to safely use it in charts or further spreadsheet calculations.

How do I hide the #DIV/0! error without changing the math?

You can wrap your existing formula in an IFERROR function, such as =IFERROR((New-Old)/Old, ""). This will leave the cell completely blank whenever a division by zero error occurs, keeping your worksheet looking clean.