How To Subtotal Weekly Data By Months

Karthik-Excelsior

Active Member
Joined
Mar 4, 2011
Messages
313
Hi,

I've a set of weekly data as shown in the doc here I need a formula to fill the table that is to the right of the list with data related to that particular month and year.

Any help is much appreciated!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi Karthik,

You can add 2 column with heading Year And month
Takeout year for every cell by using =Year(A2) &
Month by = Text(A2,"mmm")

Then use Pivot table with Month as column, Year as Row and Sum of Quantity in Values

Or other option is Just creat a column for month as mentioned above and in Pivot group the date with Year

Paddydive
 
Last edited:
Upvote 0
Hi.

Pivot is a good idea.
If formulas then maybe like this:
Excel Workbook
ABCDEFGH
1WeekQuantityJanFebMarApr
201/01/2011100200919200143001550025500
301/14/20114002010102008300950016500
401/27/201170020111200230035007500
502/09/20111000
602/22/20111300
703/07/20111600
803/20/20111900
904/02/20112200
1004/15/20112500
1104/28/20112800
1201/01/20103100
Sheet
 
Upvote 0
Hi guys,

Thanks!

Actually, what I did was

- insert a column 'B' and entered '=TEXT(A2,"mmm-yy")'
- in the table, I entered the formula "=SUMIF($B$2:$B$32,CONCATENATE(F$1,""-"",$E2),$C$2:$C$32)"

This worked!

Best,
 
Upvote 0

Forum statistics

Threads
1,214,561
Messages
6,120,228
Members
448,951
Latest member
jennlynn

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