• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Combining IF with subtraction??

Hi,
any idea how I could write a formula for this? I know how to do the IF statement but how do I combine the two?
--------------------------------------------------------------
A calculation to show the difference between the budget and the actual figures and an if statement to show if the event was over or under budget.
Thanks,
Noel
 
Welcome to the forums!

Something like this?

=IF(Budget-Actual>=0,Budget-Actual&" Under", Actual-Budget&" OVER")

=IF(A2-B2>=0,A2-B2&" Under", B2-A2&" OVER")

See attached.
 

Attachments

  • noel1.xlsx
    8.5 KB · Views: 3
Try this :
=IF(budget-actual>=0, "Surplus "& budget-actual, "Deficit "&budget-actual)

replace "Budget" and "actual" with the cells containing the appropriate values.

reg
Sudhir
 
Here's a couple of ways of doing it - conditional formatting is my preference, but there's another method in there also ....
 

Attachments

  • Noel Example.xlsx
    13.3 KB · Views: 8
Thank you all for your quick replies, this is the solution supplied with the exercises, I just cannot figure out how to include include budget-actual into the formula? In the solution it shows at the end after the "by", the formula below is how it appears in the solution.
Regards,
Noel
=IF(C7>B7,"Over Budget","Under Budget")
49dynO-G8BBdALYiWXD8QG_eaedhSA_4CqbRMLrfRH5_arXs6hpkBJQrspKMtFWJkoZpY_KgJ8gmRwsl0kJYFf8PAKohQr0RhTQhjVFQbrL0HdIjQWBtRhH1e8enj34QJRfWwcTtJT-EvHvU77ovDBKwNkbZrOtVT-RvdEFiC3vydA=s0-d-e1-ft
wryO3TPso5-JxfU_tjUUyMu0sQ9dN2q0BbTi5wNfAVNoFIigL3SRxde5T93OTRrf7LkbQXBhvJnG0h9dyIL8tZDdk0yv-ENQtG-iv3eLmMYu3ugUk0wS_NAFalKKNQirmQCgxkohL4LxqAw37nBUVdODZmRchDTI84kH7rSa9Vqh=s0-d-e1-ft
byl=C7-B7
 
Back
Top