Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / December 2007

Tip: Looking for answers? Try searching our database.

Formula for Budget

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sarah - 31 Dec 2007 17:36 GMT
I need a formula for a budget I am drafting with estimated and actual costs.
Column B is estimated costs, Column C is actual costs. I can SUM the numbers
in Column B for the estimated total cost but for the actual total cost I need
to SUM the numbers in Column B unless there is a number in Column C that is
different, in which case I would like to use the value in C for that item
instead of B.

I am Excel illiterate so thanks for any help!
Bob Phillips - 31 Dec 2007 17:41 GMT
=SUM(IF(B2:B20<>C2:C20,C2:C20,B2:B20))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

Signature

---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> I need a formula for a budget I am drafting with estimated and actual
> costs.
[quoted text clipped - 8 lines]
>
> I am Excel illiterate so thanks for any help!
Mike H - 31 Dec 2007 17:46 GMT
Maybe

=SUMPRODUCT((B1:B100<>C1:C100)*(C1:C100))+SUMPRODUCT((B1:B100=C1:C100)*(B1:B100))

Mike

>  I need a formula for a budget I am drafting with estimated and actual costs.
> Column B is estimated costs, Column C is actual costs. I can SUM the numbers
[quoted text clipped - 4 lines]
>
> I am Excel illiterate so thanks for any help!
Mike H - 31 Dec 2007 17:52 GMT
my previous (poor) effort works but this is better

=SUMPRODUCT((B1:B100<>C1:C100)*(C1:C100))+(B1:B100=C1:C100)*(B1:B100)

Mike

> Maybe
>
[quoted text clipped - 10 lines]
> >
> > I am Excel illiterate so thanks for any help!
Adrian M - 31 Dec 2007 19:14 GMT
>  I need a formula for a budget I am drafting with estimated and actual costs.
> Column B is estimated costs, Column C is actual costs. I can SUM the numbers
[quoted text clipped - 4 lines]
>
> I am Excel illiterate so thanks for any help!
Adrian M - 31 Dec 2007 19:19 GMT
=SUM(B1:B100)-SUMIF(C1:C100,">0",B1:B100)+SUM(C1:C100)

the above range formula will work if you have blank cells in column C

hold down control and shift and then press enter to enter a range formula
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.