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!
 

Some videos you may like

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

paddydive

Active Member
Joined
Jun 30, 2010
Messages
460
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:

Matt Rogers

Well-known Member
Joined
Sep 23, 2011
Messages
1,030
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
 

Karthik-Excelsior

Active Member
Joined
Mar 4, 2011
Messages
313
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,
 

Watch MrExcel Video

Forum statistics

Threads
1,122,964
Messages
5,599,069
Members
414,281
Latest member
Engjamal2021

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
Top