How to Calculate Percentage Increase or Decrease Between Two Values in WPS Spreadsheet
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.

- 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.
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.
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.
Click on the cell where you want the percentage change to appear (for example, cell E1).
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.
Right-click the cell, select 'Format Cells', choose the 'Number' tab, and click 'Percentage' to format the decimal as a readable percentage.
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.

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. Open your data in WPS: Launch WPS Spreadsheet and open the document containing the numerical data you want to compare.
- 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. Format and Export: Apply the Percentage style directly from the Home tab ribbon, then save your sheet as an .xlsx file.

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.




