Calculate Percentage Change After Refreshing Excel Data
Question details
Calculate the percentage change between a refreshed Excel value and its previous value.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user refreshes imported data repeatedly and wants to compare each new total with the total before the refresh.
- Observed behavior
- The refresh overwrites the previous value, leaving nothing for a formula to compare unless that value was saved elsewhere.
Identify the cell containing the current total and choose a separate worksheet that the refresh will not overwrite. Wait for any current refresh to finish before saving the value.
Save the Previous Value Before Each Excel Refresh
Use a separate comparison sheet to preserve the old value and calculate the change after each refresh.
The following example assumes the refreshed total is in cell B2 on a sheet named Data. Replace the sheet name and cell reference if your total is elsewhere.
Create a worksheet named Comparison. In cell C2, enter =Data!B2 to display the current total.
Before refreshing, copy Comparison!C2, select Comparison!B2, and use Home > Paste > Values. This saves the current number rather than its formula.
Select Data > Refresh All and wait for the refresh to finish. Comparison!C2 should then display the updated total.
In Comparison!D2, enter =IF(OR(B2="",B2=0),"",(C2-B2)/B2). Select D2 and choose Home > Percent Style.
Before each subsequent refresh, copy C2 and paste it as a value into B2. The formula in D2 will compare that saved value with the next refreshed total.

Use VBA to Save the Value Before Refreshing Excel Data
Use a small macro to copy the current total into a comparison cell before you manually refresh.
Calculate Percentage Changes in WPS Spreadsheet
Use WPS Spreadsheet to save an old total, enter or link to the updated total, and calculate the percentage change with a formula.
- 1. Open the workbook: Open WPS Spreadsheet and use Open to select the workbook containing the current total.
- 2. Save the old total: On a separate comparison sheet, copy the current total and use Paste Special > Values to place it in B2.
- 3. Enter the updated total: Enter the new total in C2, or link C2 to the cell containing the updated value.
- 4. Calculate and format the result: In D2, enter =IF(OR(B2="",B2=0),"",(C2-B2)/B2), then select D2 and apply Percentage formatting.

Frequently Asked Questions
Why can't Excel compare the value after it has been overwritten?
A formula cannot recover an old value that was not stored. Before using Data > Refresh All, copy the current total to a separate cell with Paste > Values, or save it in a history table.
What is the formula for percentage change?
Use =(new value-old value)/old value. For example, if B2 holds the old value and C2 holds the new value, enter =(C2-B2)/B2 and apply Home > Percent Style.
What happens if the previous value is zero?
The standard percentage-change formula would divide by zero. Use =IF(OR(B2="",B2=0),"",(C2-B2)/B2) to leave the result blank when the old value is empty or zero.
Does Power Query automatically keep previous refresh results?
No. A normal Power Query refresh can replace its previous output. To compare refreshes, store each result separately, such as in a history table with an import timestamp, before the old result is overwritten.
Why do my percentages differ from 38.88% and 16.66%?
Those figures use the new total as the denominator. Standard percentage change uses the previous total: 1,528 to 2,500 is about 63.61%, and 2,500 to 3,000 is 20%.




