# Variances with % Issue

#### Mr Sloth

##### New Member
Cross-posted at: ExcelSloth 01:54 PM Today
Hi All,

Hoping someone could help me please, would really appreciate it.

I am an accountant and often have a % variance column when comparing Actual results against Budget. However, I have come across 2 issues:

1. If I start the variance percentage formula with '=+' if the budget number is a negative and the actual number is a positive, the percentage will be a minus percentage instead of a plus and if both numbers are minus, e.g. actual is -1 and budget is -5 it will show a negative percentage instead of a positive. To fix this, I've always had to keep changing the start of formula to =- or =+ depending on the numbers.

2. If I'm comparing an actual number of say 50 and a budget number of 0 the percentage will show the '#DIV/0!' sign instead of +100% and if I'm comparing an actual number of say -50 and budget number of 0 it will show the '#DIV/0!' instead of -100% so I always have to manually type in 100% or -100%.

I have found a formula to fix problem 1 with the 'ABS' function and have found a formula for problem 2 with IFERROR.

However, is there a way I can combine these 2 formulas together?

Chris

Last edited by a moderator:

### Excel Facts

Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

#### kevin9999

##### Well-known Member
Have you tried: =(Actual-Budget)/ABS(Actual)

#### Mr Sloth

##### New Member
Have you tried: =(Actual-Budget)/ABS(Actual)
Thanks for reply. I've got a formula for both:

Problem1:=A2/ABS(B2)
Problem 2: =IFERROR(A2/B2, SIGN(A2)*100%)

However, is there a way I can combine these 2 formulas togerher?

#### kevin9999

##### Well-known Member
You could combine the 2 in an IF formula. Assuming that the 1st formula 'kicks-in' when the Budget is 0 - and the Budget figure is in B2 - then this should work:

=IF(B2=0,A2/ABS(B2),IFERROR(A2/B2, SIGN(A2)*100%))

#### Mr Sloth

##### New Member
Thanks guys for help, I found =IFERROR((F8/ABS(E8)),1) to work.

The only issue with it is that when both actual and budget are 0 it won't say 0%.

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,678
Messages
5,838,734
Members
430,566
Latest member
ChanchalSingh

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back