I am trying to develop a formula that will calculate favorable /(unfavorable) variances between actual and budget, but both my income and expense amounts are positive. The following formula works for income items, but expenses should show unfavorable variances and they come out positive.
=IF(AND(B3>0,C3>0),B3-C3,(IF(AND(B3<0,C3<0),B3-C3,(IF(OR(B3>0,C3>0),C3-B3)))))
column B is actual and column C is budget
I know I could modify the formulas for each line item, but I'm trying to use the same formula that will work for all line items regardless of whether they are income or expense.
Anyone have any ideas? Is there possibly VBA code that will do this?
I wish Excel had built in Accounting functions, but it only has Financial functions ...
Here's a clue Mr. Gates, accountants use Excel too!
Thanks in advance for your help.
=IF(AND(B3>0,C3>0),B3-C3,(IF(AND(B3<0,C3<0),B3-C3,(IF(OR(B3>0,C3>0),C3-B3)))))
column B is actual and column C is budget
I know I could modify the formulas for each line item, but I'm trying to use the same formula that will work for all line items regardless of whether they are income or expense.
Anyone have any ideas? Is there possibly VBA code that will do this?
I wish Excel had built in Accounting functions, but it only has Financial functions ...

Thanks in advance for your help.