Sum between two date ranges, and account number.

Huey_IP

New Member
Joined
Sep 21, 2005
Messages
9
I need some help.

I have an Excel workbook in which one spreadsheet "Budget Expenses" contains invoices that were paid and are entered as they are received (in no specific date order). The spreadsheet also contains the amount paid, and the account number it came out of.

For example:
On 9/20/2010 I spent $52.00 from account number 4700
The date is in Cell A1, the amount in in cell E1, and the account it came from is in cell F1.

The other spreadsheet in the workbook “Budget Totals” needs to calculate what I spent each quarter from each account number. It calculates the total spent per quarter from a specified account number.

Now... I need to calculate the amounts spent per quarter. So... I want to add up all the entries that fall within the first quarter date range in A1-A999 from 1 Oct 2010 to 31 December 2010. Then I want the formula to look at column F1-999 to determine if I spent it from account number 4700. Once it meets all that criteria I want it to sum up the totals in cell ranges E1-E999. The outcome of that formula will then be contained in a cell in the “Budget Totals” spreadsheet.

Also, is there any way to indicate infinity for a vertical cell range instead of typing A1-A999?

Thanks for any help you can give,
Steve
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Hi Steve,

If you can add some sample data to your post that may help get you a suitable reply, you also need to state which version of Excel you are using.
I don't believe this is the best solution, but it's all I can think of.


Excel Workbook
ABCDEFG
1Date***AmountAccountHelper
201/01/2010***1,000.00ABC123Q1
320/01/2010***500.00ABC124Q1
430/01/2010***250.00ABC125Q1
502/02/2010***100.00ABC126Q1
625/02/2010***500.00ABC123Q1
710/03/2010***100.00ABC124Q1
825/04/2010***250.00ABC125Q2
930/05/2010***100.00ABC126Q2
1002/06/2010***100.00ABC123Q2
1120/07/2010***125.00ABC124Q3
1221/07/2010***750.00ABC125Q3
1301/08/2010***50.00ABC126Q3
1430/09/2010***100.00ABC123Q3
1501/10/2010***125.00ABC124Q4
1602/10/2010***400.00ABC125Q4
1730/11/2010***125.00ABC126Q4
1801/12/2010***125.00ABC123Q4
1922/12/2010***2,000.00ABC124Q4
2023/12/2010***2,500.00ABC125Q4
Budget Expenses


The formula in G2 needs to be copied down.

Excel Workbook
ABCDEFGH
1QuarterAccountAmountAmount**Helper Data
2Q4ABC1242,125.002,125.00**01/01/2010Q1
3******01/02/2010Q1
4******01/03/2010Q1
5Q1ABC123ABC124ABC125ABC126*01/04/2010Q2
6Amount1,500.00600.00250.00100.00*01/05/2010Q2
7Amount1,500.00600.00250.00100.00*01/06/2010Q2
8******01/07/2010Q3
9Q2ABC123ABC124ABC125ABC126*01/08/2010Q3
10Amount100.000.00250.00100.00*01/09/2010Q3
11Amount100.000.00250.00100.00*01/10/2010Q4
12******01/11/2010Q4
13Q3ABC123ABC124ABC125ABC126*01/12/2010Q4
14Amount100.00125.00750.0050.00***
15Amount100.00125.00750.0050.00***
16********
17Q4ABC123ABC124ABC125ABC126***
18Amount125.002,125.002,900.00125.00***
19Amount125.002,125.002,900.00125.00***
Budget Totals


The formulas in B6:B19 need to be copied across.
As you can see I have given you 2 formula options.
Sumifs will only work in 2007-10
Sumproduct will work in all versions.

In A2:B2 you can type in the criteria for 1 Quarter and 1 Account if you wish.

To answer your last question try A:A instead of A1:A999

I hope this helps or gives you some ideas, if not it has bumped you up for someone else to look at.

Good luck.

Ak
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,497
Members
448,967
Latest member
visheshkotha

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