Complicated if/then formula with date ranges

txkaratemama

New Member
Joined
Jan 4, 2012
Messages
2
Hello everyone! Thanks in advance for any help you can offer me.

I'm trying to create a budget that autopopulates based on info entered into my checkbook. I have categories attached to each checkbook entry. I want the budget to create a sum based on both the category and date.

So for each entry, my checkbook has a column for the category (gas, grocery, utilities, etc.) and a column for date, in addition to the debit/credit column. I want my budget column for each category to look at the category, date, and debit columns from my checkbook and create a sum like this:

Add the debit columns IF category=gas AND date=1/1/12-1/31/12.

And I want to do this for each category for each month. I have a different budget for every month.

Any ideas? Thanks so much!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hello everyone! Thanks in advance for any help you can offer me.

I'm trying to create a budget that autopopulates based on info entered into my checkbook. I have categories attached to each checkbook entry. I want the budget to create a sum based on both the category and date.

So for each entry, my checkbook has a column for the category (gas, grocery, utilities, etc.) and a column for date, in addition to the debit/credit column. I want my budget column for each category to look at the category, date, and debit columns from my checkbook and create a sum like this:

Add the debit columns IF category=gas AND date=1/1/12-1/31/12.

And I want to do this for each category for each month. I have a different budget for every month.

Any ideas? Thanks so much!
What version of Excel are you using?
 
Upvote 0
Try something like this...

Data:

Book1
ABC
1DateCategoryDebit
212/27/2011Grocery48
312/28/2011Gas73
412/29/2011Cable97
512/30/2011Clothes84
612/31/2011Gas48
71/1/2012Cash14
81/2/2012Cash15
91/3/2012Gas73
101/4/2012Grocery27
111/5/2012Phone12
121/6/2012Cash15
131/7/2012Gas12
141/8/2012Electric84
151/9/2012Misc72
Sheet1

Summary area:

Book1
EFG
1MonthCategoryTotal
2Jan 2012Gas85
Sheet1

Cell E2 contains the date 1/1/2012 formatted to display as mmm yyyy.

This formula entered in G2:

=SUMPRODUCT(--(TEXT(A$2:A$15,"mmmyyyy")=TEXT(E2,"mmmyyyy")),--(B$2:B$15=F2),C$2:C$15)
 
Upvote 0

Forum statistics

Threads
1,216,590
Messages
6,131,614
Members
449,658
Latest member
JasonEncon

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top