Formula for Budget vs Actual vs Difference

nothere1

New Member
Joined
Oct 29, 2019
Messages
20
Office Version
  1. 2016
Platform
  1. Windows
I need to figure out what formula can be used to calculate the difference between the budget vs actual.
What I want to happen is, when I put in the "Actual" number value, it will then in the 3rd column (+ / -) populate as either with a red negative value or a green positive value.

For example, the first line in the picture looks correct, and I used this formula below:

=IF(C3>D3,(-(C3-D3)),(-(D3-C3)))

However, the last line in the picture I used this formula, but didn't get the desired results. The fourth line should show a positive 100 instead of a -100.

=IF(C6>D6,(-(C6-D6)),(-(D6-C6)))

Thank you,
 

Attachments

  • Capture.JPG
    Capture.JPG
    17 KB · Views: 72

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
maybe use ABS(Budget - Actual)
you will get absolute values of amount of difference without +/-
or
IF(Budget>Actual , Budget-Actual , Actual-Budget)
 
Upvote 0
Actually, I figured out... here we go.

This is the formula.

=IF(OR(C$6>D$6,D$6>C$6),C$6-D$6,D$6-C$6)
 

Attachments

  • Capture.JPG
    Capture.JPG
    16 KB · Views: 46
Upvote 0
Actually Michael, what you have put works as well... However I ran into another issue, take a look. This issue is that it needed to be negative instead of positive. so I had to move the cell value around to get the negative...

Look at line 9 and line 31....as example. Basically if the number in the actual column is smaller than the number in the budget column the number should appear red and negative...
 

Attachments

  • Capture.JPG
    Capture.JPG
    108.7 KB · Views: 50
Upvote 0
I said change names to proper references
=IF(C3>=D3,C3-D3,D3-C3)
or if this is an Excel Table
=IF([Budget]>=[Actual],[Budget]-[Actual],[Actual]-[Budget])
 
Last edited:
Upvote 0
Thanks, yes already tried that... for the most part that formula works, but not sure how to add another condition to it...
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top