#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 231
Default Formula for Budget

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!


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Formula for Budget

=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.

--
---
HTH

Bob


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



"Sarah" wrote in message
...
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!




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Formula for Budget

Maybe

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

Mike

"Sarah" wrote:

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!


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Formula for Budget

my previous (poor) effort works but this is better

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

Mike

"Mike H" wrote:

Maybe

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

Mike

"Sarah" wrote:

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!


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Formula for Budget



"Sarah" wrote:

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!




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Formula for Budget


=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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel formula to calculate % difference when actual 1, budget -48 yuppy flyer Excel Discussion (Misc queries) 1 March 23rd 07 12:34 PM
Formula to return under-budget store locations BeckyRode Excel Worksheet Functions 6 July 6th 06 07:27 AM
Divide Monthly Sales Budget to Day Budget Benedikt Fridbjornsson Excel Worksheet Functions 2 January 10th 06 03:42 PM
Budget jba Excel Discussion (Misc queries) 2 August 22nd 05 08:14 AM
how to do a budget marky Excel Discussion (Misc queries) 1 February 18th 05 04:36 AM


All times are GMT +1. The time now is 04:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"