Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default conditional sum for budget spreadsheet

I want to use a conditional sum function on a budget spreadsheet.

Eg: I have a food budget of £333 per month. What I want to do is track
any surplus that accrues from month to month if I underspend, and any
deficit if I overspend.

I want this amount to be recorded cumulatively in a cell marked
"surplus".

So if I put the budgeted amount (in this case £333) in C9, and then
record actual spends for April, May, June in C10, C11 and C12, I want
to put the difference between the sum of the actual spends and the
total budget (in this case 3*333) in the "surplus" cell, say C13.

What I need is for the formula to only perform this calculation if
there is an actual spend recorded for that month. If it isn't
conditional in this way then it calculates it for months in the
future, treats empty cells as zero actual spends and screws up the
amount in the surplus cell.

Can anyone help with this?

Thanks
Gareth

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default conditional sum for budget spreadsheet

Using your example data:

=COUNTA(C10:C12)*C9-SUM(C10:C12)

HTH

" wrote:

I want to use a conditional sum function on a budget spreadsheet.

Eg: I have a food budget of £333 per month. What I want to do is track
any surplus that accrues from month to month if I underspend, and any
deficit if I overspend.

I want this amount to be recorded cumulatively in a cell marked
"surplus".

So if I put the budgeted amount (in this case £333) in C9, and then
record actual spends for April, May, June in C10, C11 and C12, I want
to put the difference between the sum of the actual spends and the
total budget (in this case 3*333) in the "surplus" cell, say C13.

What I need is for the formula to only perform this calculation if
there is an actual spend recorded for that month. If it isn't
conditional in this way then it calculates it for months in the
future, treats empty cells as zero actual spends and screws up the
amount in the surplus cell.

Can anyone help with this?

Thanks
Gareth


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default conditional sum for budget spreadsheet

Toppers that's it - excellent, thanks a lot!

Gareth

On 17 Apr, 20:18, Toppers wrote:
Using your example data:

=COUNTA(C10:C12)*C9-SUM(C10:C12)

HTH

" wrote:
I want to use a conditional sum function on a budget spreadsheet.


Eg: I have a food budget of £333 per month. What I want to do is track
any surplus that accrues from month to month if I underspend, and any
deficit if I overspend.


I want this amount to be recorded cumulatively in a cell marked
"surplus".


So if I put the budgeted amount (in this case £333) in C9, and then
record actual spends for April, May, June in C10, C11 and C12, I want
to put the difference between the sum of the actual spends and the
total budget (in this case 3*333) in the "surplus" cell, say C13.


What I need is for the formula to only perform this calculation if
there is an actual spend recorded for that month. If it isn't
conditional in this way then it calculates it for months in the
future, treats empty cells as zero actual spends and screws up the
amount in the surplus cell.


Can anyone help with this?


Thanks
Gareth



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
Create a spreadsheet to budget CDH Excel Worksheet Functions 1 July 14th 21 06:40 AM
Average Non-Adjacent Cells in Budget Spreadsheet OPB3 Excel Worksheet Functions 5 April 23rd 06 11:03 AM
Average Non-Adjacent Cells in Budget Spreadsheet OPB3 Excel Worksheet Functions 4 April 21st 06 03:36 AM
help with personal budget spreadsheet darkwood Excel Worksheet Functions 3 February 7th 06 10:11 PM
Inheriting spreadsheet from another user for budget analysis trace Excel Discussion (Misc queries) 1 May 18th 05 03:51 AM


All times are GMT +1. The time now is 12:21 PM.

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"