Sum of every 3rd column as per the month

manojk71273

Board Regular
Joined
Apr 28, 2006
Messages
115
Office Version
  1. 365
Platform
  1. Windows
Dear All

I have an excel sheet having data like below


Column ABCDEFGHIJ
AprMayJun
Particular NameGNGTotalGNGTotalGNG

Now i want a total of Quarter to date and Year to date total on the basis of Month/s

if month is Q1 Apr then Column E , if Month is May then total of column E+H .... for Jun total of column E+H+K and every Qtr the cell reference will change.

for YTD in Apr E in May E+H, in Jun E+H+K in Jul it will be E+H+K+N and so on.......

how can I do it please help,

Thanks in advance.
Manojk.
 
part 3 of 4:



mr excel questions 17.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZCACBCCCDCECFCGCHCICJCKCLCMCNCOCPCQCRCSCTCUCVCWCXCYCZDADBDCDDDEDFDGDHDIDJDKDLDMDNDODPDQDRDSDTDUDVDWDXDYDZEAEBECEDEEEFEGEHEIEJEKELEMENEOEPEQERESETEUEVEWEXEYEZFAFBFCFDFEFFFGFHFIFJFKFLFMFNFOFPFQFRFSFTFUFVFWFXFYFZGAGBGCGDGEGFGGGHGIGJGKGLGMGNGOGPGQGRGSGTGUGVGWGXGYGZHAHBHCHDHEHF
11Category7Product30.010.020.030.010.020.030.010.020.030.010.020.030.010.020.030.010.020.030.010.020.030.010.020.030.010.020.030.010.020.030.010.020.030.010.020.030.120.240.360.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.120.120.240.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.120.120.240.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.010.010.020.120.120.240.040.050.090.040.050.090.040.050.090.040.050.090.040.050.090.040.050.090.040.050.090.040.050.090.040.050.090.040.050.090.040.050.090.040.050.090.480.61.080.030.020.020.020.090.060.060.060.360.240.240.24
12 Grand Total 0.070.140.210.070.140.210.070.140.210.070.140.210.070.140.210.070.140.210.070.140.210.070.140.210.070.140.210.070.140.210.070.140.210.070.140.210.841.682.5200.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.840.841.6800.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.840.841.6800.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.070.070.140.840.841.6800.280.350.630.280.350.630.280.350.630.280.350.630.280.350.630.280.350.630.280.350.630.280.350.630.280.350.630.280.350.630.280.350.630.280.350.633.364.27.560.210.140.140.140.630.420.420.422.521.681.681.68
13
Sheet1
Cell Formulas
RangeFormula
E11,FB11,EY11,EV11,ES11,EP11,EM11,EJ11,EG11,ED11,EA11,DX11,DU11,DN11,DK11,DH11,DE11,DB11,CY11,CV11,CS11,CP11,CM11,CJ11,CG11,BZ11,BW11,BT11,BQ11,BN11,BK11,BH11,BE11,BB11,AY11,AV11,AS11,AL11,AI11,AF11,AC11,Z11,W11,T11,Q11,N11,K11,H11E11=C11+D11
AM11:AN11,FC11:FD11,DO11:DP11,CA11:CB11AM11=C11+F11+I11+L11+O11+R11+U11+X11+AA11+AD11+AG11+AJ11
AO11,FE11,DQ11,CC11AO11=SUM(AM11:AN11)
FG11:GS11FG11=+C11+AQ11+CE11+DS11
GU11:GX12GU11=INDIRECT(LEFT(TEXT(ADDRESS(5,(GU$2),4),0),2)&ROW(),TRUE)
GY11:GY12GY11=AF11+AI11+AL11
GZ11:GZ12GZ11=BT11+BW11+BZ11
HA11:HA12HA11=DH11+DK11+DN11
HB11:HB12HB11=EV11+EY11+FB11
HC11:HC12HC11=E11+H11+K11+N11+Q11++T11+W11+Z11+AC11+AF11+AI11+AL11
HD11:HD12HD11=AS11+AV11+AY11+BB11+BE11++BH11+BK11+BN11+BQ11+BT11+BW11+BZ11
HE11:HE12HE11=CG11+CJ11+CM11+CP11+CS11++CV11+CY11+DB11+DE11+DH11+DK11+DN11
HF11:HF12HF11=DU11+DX11+EA11+ED11+EG11++EJ11+EM11+EP11+ES11+EV11+EY11+FB11
C12:GS12C12=SUM(C5:C11)
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
This section should first be put in your cell A14 to start with and to see how the formulas work:

Cell Formulas
RangeFormula
A15:A34A15=INDEX($A$5:$A$11,INT(((ROW(A15)-15)+1)/199)+1,1)
B15B15=IF(INDEX(SUBSTITUTE($C$2:$HF$2," ",""),1,MOD((ROW(A15)-15),199)+1)="",B14,INDEX(SUBSTITUTE($C$2:$HF$2," ",""),1,MOD((ROW(B15)-15),199)+1))
C15:C34C15=INDEX($B$5:$B$11,INT(((ROW(C15)-15)+1)/199)+1,1)
D15:D34D15=IF(INDEX(SUBSTITUTE($C$3:$HF$3," ",""),1,MOD((ROW(D15)-15),199)+1)="",D14,INDEX(SUBSTITUTE($C$3:$HF$3," ",""),1,MOD((ROW(D15)-15),199)+1))
E15:E34E15=INDEX(SUBSTITUTE($C$4:$HF$4," ",""),1,MOD((ROW(E15)-15),199)+1)
F15:F34F15=INDEX(SUBSTITUTE($C$5:$HF$11," ",""),INT(((ROW(F15)-15)+1)/199)+1,MOD((ROW(F15)-15),199)+1)
B16:B34B16=IF(INDEX(SUBSTITUTE($C$2:$HF$2," ",""),1,MOD((ROW(A16)-15),199)+1)="",B15,INDEX(SUBSTITUTE($C$2:$HF$2," ",""),1,MOD((ROW(A16)-15),199)+1))
 
Upvote 0
So, in the above, the fourth mini workbook is the critical one as it creates the flat file.
The top three are just the data I used. If you want you make you own data up (for testing)... but.. you must keep the header rows as they are the first of the mini workbooks.
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,591
Members
449,174
Latest member
chandan4057

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