Formula for totaling $ Amount per Category per Month
I'm doing a Numbers spreadsheet similar to a check register and one page is a budget where I'm trying to keep track of how much money was spent on each category compared to a set amount I'm trying to budget for. I have a separate table for each month of the year. I know how to make it work with a fixed range of cells, but the problem with that is its too labor intensive having to go back and forth and change those at the end and beginning of each month.
My current formula that works is: =−SUMIF(Personal::Transactions::D407:D485,D1,Personal::Transactions::E407:E485)
I have the minus SUMIF because I enter debits as negative numbers and credits as positive numbers. D407:D485 is the arbitrary range I've set it at for now, at the end of the month I'll shorten that.
If someone could guide me to a formula that would allow me to accomplish the same thing but fixed at, say, for July, where it would total all $ Amounts where the date is greater than or equal to July 1, 2014 and less than or equal to July 31, 2014, with the category of Groceries, that is what I'm looking for.
Any help would be appreciated.
Thanks!
MacBook Air, OS X Mavericks (10.9.2)