Calculation Issues

How to Calculate Percentage Increase or Decrease Between Two Values in WPS Spreadsheet

Aamir Naveed AkramAamir Naveed Akram Nov 10, 2026 870 views

Question details

The user needs to calculate the percentage change between two numbers across rows and wants the formula to return "N/A" if either value is zero to avoid errors.

How to Calculate Percentage Increase or Decrease Between Two Values
Product
Spreadsheet
Device & OS
not provided
Scenario
Performing financial analysis, data tracking, or general reporting where relative change over time or between categories needs to be computed without displaying division errors.
Observed behavior
A need for a specific formula that outputs the percentage difference and implements error handling for missing or zero values.
Before you start

Ensure your data is organized into columns with the original values separated from the new values, and identify an empty column to serve as the output for your percentage formula.

Solution 1Recommended

Use the IF and OR Functions to Calculate Percentage Change

Applying a standard percentage change formula combined with logical operators helps prevent division-by-zero errors when dealing with null or zero values.

The standard formula to find a percentage change is (New Value / Old Value) - 1. Wrapping this math inside an IF function allows you to specify exactly what the cell should display if the calculation encounters a zero value.

1
Select the target cell

Click on the cell where you want the percentage change to appear (for example, cell E1).

2
Input the conditional formula

Type the formula =IF(OR(B1=0,D1=0),"N/A",D1/B1-1) into the formula bar. In this example, B1 represents the original (old) value and D1 represents the new value.

3
Apply percentage formatting

Right-click the cell, select 'Format Cells', choose the 'Number' tab, and click 'Percentage' to format the decimal as a readable percentage.

4
Fill the formula down

Click and hold the small square at the bottom-right corner of the cell (the Fill Handle) and drag it down the column to apply the formula to the rest of your data rows.

Use the IF and OR Functions to Calculate Percentage Change
Understanding the Error Handling: The OR(B1=0,D1=0) segment checks if either the old or new value is 0. If true, it returns "N/A" instead of a #DIV/0! error, keeping your spreadsheet clean.
Efficient Data Calculation with WPS Office

Calculate Percentages Seamlessly with WPS Spreadsheet

WPS Spreadsheet provides robust formula support and intuitive formatting options to make complex data analysis simple. You can calculate percentage changes and handle errors effortlessly.

  1. 1. Open your data in WPS: Launch WPS Spreadsheet and open the document containing the numerical data you want to compare.
  2. 2. Use the built-in Formula bar: Select a blank cell, type your formula, and use the intelligent auto-complete to avoid syntax errors.
  3. 3. Format and Export: Apply the Percentage style directly from the Home tab ribbon, then save your sheet as an .xlsx file.
Fully compatible with Microsoft Excel formulas and formatsPre-built Number Formatting for instant percentage stylingEasily drag-and-fill features for large datasetsLightweight application that processes large data models quickly
microsoft office alternative - wps office

Frequently Asked Questions

Why am I getting a #DIV/0! error when calculating percentage change?

This error occurs when you attempt to divide a number by zero. In a percentage change formula, if the original value is 0, the program cannot divide by it. Use an IF function to return "N/A" or a blank value to prevent this.

How do I calculate percentage difference without returning N/A?

If you just want the math to run normally and do not have zero values in your original data column, you can simply use the formula =(New Value / Old Value) - 1.

Can I conditionally format percentage increases and decreases?

Yes. Once your formula is applied, go to 'Conditional Formatting' under the Home tab. You can set rules to highlight increases (values greater than 0) in green and decreases (values less than 0) in red.