You are here:

# Excel/excel over/under formula

Question
I need to do an over/under budget calculation in a spreadsheet. In cell A1 is the budgeted amount, in cell B1 is the actual cost. I would like cell C1 to show the amount I am over budget or cell D1 to show the amount I am under budget.

If you really want to do this with two cells, you can just use the IF function to display the value IF it's over/under the other value. For example:

C2: =IF(A1>B1, A1-B1, 0)
D2: =IF(A1<B1, B1-A1, 0)

See this lesson for more details on the IF function.

Be sure to visit my web site and watch my FREE 90-minute Microsoft Excel Video Tutorial

Cordially,
Richard Rost
Microsoft MVP
Computer Learning Zone
Questioner's Rating
 Rating(1-10) Knowledgeability = 10 Clarity of Response = 10 Politeness = 10 Comment THANK YOU FOR THE HELP!

This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

#### Richard Rost

##### Expertise

 I am the author of The Complete Idiot's Guide to Excel 2010.   I am happy to answer any questions about Microsoft Excel. If you have an Excel problem, let me help you with it. Also, please be sure to check the Excel Tips & Tricks and Excel Tutorials sections of my web site.   You can also watch my complete Excel 2010 For Beginners tutorial online which is over 90 minutes of FREE videos and an eBook.

##### Experience

I have been using Microsoft Excel since the very early Windows 3.1 versions. I have been teaching Microsoft Excel in the classroom since 1994, and online through computer tutorials since 2002.

Organizations
I have been volunteering on AllExperts in the categories of Microsoft Access, Visual Basic, and Weight Loss for years.

Publications
I am the author of The Complete Idiot's Guide to Excel 2010. I have created a line of computer tutorials online at www.ExcelLearningZone.com and www.599CD.com/Excel.

Education/Credentials
Personally, I am self taught. I've learned everything I know from books and trial & error. If I don't know the answer, I know how to find it.

Past/Present Clients
I have over 20,000 happy clients worldwide.