Happy New Year everyone.
I'm working on a spreadsheet designed to track my personal finances on a weekly basis. See the attached file. I want the formula to look at the master list of transactions on the left side of the spreadsheet and display the total debit amount for a particular category if it is within a specific date range. I'm using the array formula {=SUM(($A$2:$A$16<=I$5)*($B$2:$B$16="Mortgage")*($D$2:$D$16))} but I can't get it to look at only the date range that corresponds to the specific week.
I'm open to using other formulas if there is something else that will work but in my research the array formula seemed to be the best suited. Any help would be much appreciated and if you need clarification feel free to message me back.
Thanks,
Just a cell reference typo, I think.
I changed the formula in G3 to:
=SUM(($A$2:$A$16<=G$2)*($A$2:$A$16>=F$2)*($B$2:$B$16=F3)*($D$2:$D$16))
And copied that to the other cells, and it seemed to work fine.
Hi mkhagerty,
Welcome to the forum and have a lovely year ahead.
Have a look at the attached file where I have tried solving your problem. Let me know if this works for you.
Cheers
Regards,
DILIPandey
<click on below 'star' if this helps>
DILIPandey
+919810929744
dilipandey@gmail.com
Using your posted workbook...
These regular formulas return the total activity for the referenced Description that is between the referenced start and end dates:
For Excel 2007+
For Excel 2003G3: =SUMIFS($D:$D,$B:$B,F3,$A:$A,">="&F$2,$A:$A,"<="&G$2)
Copy either formula down as far as you need and into the other summary columns.G3: =SUMPRODUCT(($B$2:$B$1000=F3)*($A$2:$A$1000>=F$2)*($A$2:$A$1000<=G$2)*$D$2:$D$1000)
Is that something you can work with?
How about?
=SUMPRODUCT(--($A$2:$A$16>=F$2),--(A2:A16<=G$2),--($B$2:$B$16=F3),$D$2:$D$16)
copied down.
Then you can copy G3:G14 and paste to other tables.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Heh, I just came back to this thread to post the SUMPRODUCT alternative, but the big boys have been me to it![]()
Hi,
By looking at your profile, I could understand that you are using excel 2007 version, since you are using 2007 version. Your solution can be arrived very easily by using SUMIFS solution.
Check out the attachment and let me know your thoughts.
Hari
"Trying to find excel boundaries"
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks