How to Calculate Percentage Variance Between Two Numbers in Excel

The following dataset illustrates how to calculate the percentage variance between values in the Estimated Revenue and Actual Revenue columns. The Variance column shows the percentage change for each year.

How to calculate percentage variance


Method 1 – Combining Simple Formula & ABS Function

Steps:

  • Select the output column > Home tab > Number group > Number Format drop-down > Percentage.
    Changing format to percentage
  • Select a blank cell.
  • Enter the formula: =(D5-C5)/ABS(C5)
  • Replace C5 and D5 with your initial value and final value.
  • Press Enter.
    Note: If you want the absolute value of percentage variance, use: =ABS((D5-C5)/C5)Drag the Fill Handle down the column.
    The column will be filled with percentage variance accordingly.
    Using Simple formula and ABS functionNote: You can change the number of decimal places from the Home tab > Number group > Decrease Decimal/Increase Decimal option.

Method 2 – Using Arithmetic Formula

Steps:

  • Select the output column > Home tab > Number group > Number Format drop-down > Percentage.
  • Select a blank cell.
  • Enter the formula: =(D5/C5)-1
    Replace C5 and D5 with your initial value and final value.
  • Press Enter.
  • Use the Fill Handle to copy the formula down the column.

The percentage changes will be calculated accordingly.
Using Alternative Formula


Handling #DIV/0! Error While Calculating Percentage Variance Between Two Numbers in Excel

A division process is involved in calculating the percentage change between two values. If the denominator is 0, Excel will show a #DIV/0! error. The nested IF function, along with the IFERROR function, is used to tackle this error. Here’s how:

  • Select your output cell.
  • Insert the formula: =IF(D5<>0, IFERROR((D5-C5)/C5, 1), IFERROR((D5-C5)/C5, 0))
  • Replace C5 and D5 with your initial value and final value.
  • Press Enter.

The error will be tackled to show the percentage change.
Handling DIV/0! ErrorNote: When both the values are 0, the percentage change will be considered 0%. If the initial value is 0 but the final value is not, the percentage change will be considered 100%.


Download the Practice Workbook

You can download the Excel file and practice.


<< Go Back to Calculate Variance in Excel | Excel for Statistics | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Mrinmoy Roy
Mrinmoy Roy

Mrinmoy Roy, a dedicated professional with a BSc in Electronics and Communication Engineering from Khulna University of Engineering & Technology, Bangladesh, brings over two years of expertise to the ExcelDemy project. As a prolific contributor, he has authored around 180 articles, showcasing his deep knowledge and passion for Microsoft Excel, Data Analysis, and VBA. His unwavering commitment to continuous learning, combined with versatile skills, renders him well-suited for roles in data management and spreadsheet solutions. He has interest... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo