C
C. Bailey
I track my finances in a spreadsheet. The dates are in a column, as well as
a description, amounts, etc. I want to develop a formula that will
summarize monthly expenses for a certain type of expenditure (e.g. all
expenditures in January, 2002 on utilities). I can do this with an array
formula similar to this:
=SUM(IF(AND(YEAR(Bank!$C$5:$C$10000)=Sheet1!D2,MONTH(Bank!$C$5:$C$10000)=She
et1!E2,Bank!$W$5:$W$10000=Sheet1!$F$1),Bank!$E$5:$E$10000+Bank!$G$5:$G$10000
+Bank!$I$5:$I$10000))
This formula slows Excel to a crawl. I haven't provided enough detail for
you to be able to optimize it because I really don't think this is the
solution. SUMIF won't work, because you can only check one condition.
I have tried a Pivot Table, but it hates grouping dates if you have any
blank cells. This means I have to recreate the pivot table each time I add
additional data to my sheet.
DSum seems to hold the most promise, but the drawback is that I can't copy
the formula down the page, because you need the criteria labels immediately
above the criteria (in this case the date labels). Thus, I can only group
one month at a time.
Any other suggestions? Anyone have examples on a webpage?
Chris
a description, amounts, etc. I want to develop a formula that will
summarize monthly expenses for a certain type of expenditure (e.g. all
expenditures in January, 2002 on utilities). I can do this with an array
formula similar to this:
=SUM(IF(AND(YEAR(Bank!$C$5:$C$10000)=Sheet1!D2,MONTH(Bank!$C$5:$C$10000)=She
et1!E2,Bank!$W$5:$W$10000=Sheet1!$F$1),Bank!$E$5:$E$10000+Bank!$G$5:$G$10000
+Bank!$I$5:$I$10000))
This formula slows Excel to a crawl. I haven't provided enough detail for
you to be able to optimize it because I really don't think this is the
solution. SUMIF won't work, because you can only check one condition.
I have tried a Pivot Table, but it hates grouping dates if you have any
blank cells. This means I have to recreate the pivot table each time I add
additional data to my sheet.
DSum seems to hold the most promise, but the drawback is that I can't copy
the formula down the page, because you need the criteria labels immediately
above the criteria (in this case the date labels). Thus, I can only group
one month at a time.
Any other suggestions? Anyone have examples on a webpage?
Chris