sum based on date ranges

Victtor

Board Regular
Joined
Jan 4, 2007
Messages
170
Office Version
  1. 365
Platform
  1. Windows
2 column ranges
column AA=PayDate range
column AB=Wages range

What I have done is list all my bi-weekly pay dates for the next 3 years in column AA. The range is named 'PayDate'. I listed my net pay in column AB and this range is called 'Wages'.


I want to create a budget based on the number of pay dates are in a particular month. I get paid every 14 days. You can use 06/09/2011 as a starting paydate. Sometimes there are 2 paydates and sometimes there are 3 paydates that fall in a given month. I need either VB code or a formula to look in my PayDate range and return the total pay for a particular month.

In Cell B1 I have June, 2011; C1=July, 2011;D1=August, 2011 etc.


So,
In Cell B2, I need a total of all wages that fall in June, 2011
In Cell C2, I need a total of all wages that fall in July, 2011
In Cell D2, I need a total of all wages that fall in August, 2011
etc...
 
Last edited:

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
try this
Excel Workbook
AB
1DateWages this month
2Jun-20111,846.15
3Jul-20111,846.15
4Aug-20111,846.15
5Sep-20112,769.23
6Oct-20111,846.15
7Nov-20111,846.15
8Dec-20111,846.15
9Jan-20121,846.15
10Feb-20121,846.15
Sheet1
Excel 2003
Cell Formulas
RangeFormula
B2=SUMPRODUCT(--(MONTH(PayDate)=MONTH(A2)),--(YEAR(PayDate)=YEAR(A2)),(Wages))
Excel Workbook
NameRefers To
PayDate=Sheet1!$AA$1:$AA$461
Wages=Sheet1!$AB$1:$AB$461
Workbook Defined Names
 
Upvote 0
2 column ranges
column AA=PayDate range
column AB=Wages range

What I have done is list all my bi-weekly pay dates for the next 3 years in column AA. The range is named 'PayDate'. I listed my net pay in column AB and this range is called 'Wages'.


I want to create a budget based on the number of pay dates are in a particular month. I get paid every 14 days. You can use 06/09/2011 as a starting paydate. Sometimes there are 2 paydates and sometimes there are 3 paydates that fall in a given month. I need either VB code or a formula to look in my PayDate range and return the total pay for a particular month.

In Cell B1 I have June, 2011; C1=July, 2011;D1=August, 2011 etc.


So,
In Cell B2, I need a total of all wages that fall in June, 2011
In Cell C2, I need a total of all wages that fall in July, 2011
In Cell D2, I need a total of all wages that fall in August, 2011
etc...
What version of Excel are you using?
In Cell B1 I have June, 2011; C1=July, 2011;D1=August, 2011 etc.
Are those dates formatted to display that way? If they're dates, what dates? 1st of the month dates?
 
Upvote 0

Forum statistics

Threads
1,216,086
Messages
6,128,736
Members
449,466
Latest member
Peter Juhnke

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