excel - Sum a daily range into a weekly range -
i have table daily dates in column , dividend payments in column b. looks like:
6/1/2015 0.05 5/31/2015 5/30/2015 5/29/2015 5/28/2015 5/27/2015 5/26/2015 5/25/2015 5/24/2015 5/23/2015 0.03 5/22/2015 5/21/2015 5/20/2015 5/19/2015 5/18/2015 0.01 5/17/2015 5/16/2015 5/15/2015 5/14/2015 5/13/2015 5/12/2015 5/11/2015 5/10/2015 5/9/2015 5/8/2015 5/7/2015 5/6/2015 5/5/2015 5/4/2015 5/3/2015 5/2/2015 5/1/2015 4/30/2015 0.02 4/29/2015 4/28/2015 4/27/2015 4/26/2015 4/25/2015 4/24/2015 4/23/2015 4/22/2015 4/21/2015 i sum dividends weekly schedule, in table below:
6/1/2015 0.05 (= sum of entries in daily table between 6/1 , 5/26) 5/25/2015 0.04 (= sum of entries in daily table between 5/25 , 5/19) 5/18/2015 0.01 (= sum of entries in daily table between 5/18 , 5/12) 5/11/2015 (= sum of entries in daily table between 5/11 , 5/5) 5/4/2015 0.01 (= sum of entries in daily table between 5/4 , 4/28) 4/27/2015 (= sum of entries in daily table between 4/27 , 4/21) 4/20/2015 (= sum of entries in daily table between 4/20 , 4/14) basically, if dividend lies between 2 dates in weekly range, should summed corresponding cell in column b.
does have idea how tackle this? many thanks!
the first thought had make pivot table, , group days. website http://www.contextures.com/xlpivot07.html
grouping dates week
to group items in date field week
-right-click on 1 of dates in pivot table.
-in popup menu, click group
-in grouping dialog box, select days 'by' list.
-for 'number of days', select 7
-the week range determined date in 'starting at' box, adjust if necessary.
Comments
Post a Comment