Multiplying data of range, then skip a cell and multiply for another range

ohidur

New Member
Joined
Sep 15, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I want to multiply the data of Bangladesh Finance Limited every 11 months and skip 12 months. For instance, I want to multiply the data from January to November of 2015, then Skip December and then again multiply the data from January to November of 2016 and continue that for the rest of the years. Would you please help me with the formula?
Multiply.xlsx
ABCDEFGH
1Bangladesh Finance LimitedBay leasingDelta brac housing financeAgni SystemsDaffodil ComBD Industrial Fin
2YearMonth
32015Jan0.920.961.101.031.091.03
4Feb0.941.021.041.021.020.97
5Mar0.880.911.001.030.930.85
6Apr0.780.870.830.780.850.81
7May1.181.051.231.271.111.35
8Jun0.950.911.050.871.110.66
9Jul1.201.021.090.991.041.05
10Aug0.860.941.060.941.310.91
11Sep1.241.091.031.000.951.02
12Oct0.780.880.990.821.240.86
13Nov1.031.051.161.190.921.36
14Dec1.161.081.061.011.090.99
152016Jan1.591.071.971.161.231.05
16Feb0.831.040.780.911.021.07
17Mar1.070.901.020.990.850.80
18Apr0.790.810.970.900.960.91
19May1.171.081.011.081.181.00
20Jun0.961.031.021.040.990.96
21Jul1.011.021.040.920.910.97
22Aug1.041.021.021.021.021.03
23Sep1.261.240.981.061.211.06
24Oct0.690.960.970.921.220.95
25Nov1.091.101.041.201.091.03
26Dec1.311.161.001.061.281.33
272017Jan1.181.111.051.080.920.94
28Feb1.060.991.011.061.010.96
29Mar0.951.171.130.990.921.00
30Apr1.090.860.931.041.170.97
31May1.231.021.031.110.901.02
32Jun1.100.951.000.971.071.03
33Jul0.901.120.991.061.251.11
34Aug1.041.001.110.980.951.00
35Sep0.990.951.010.940.941.03
36Oct1.041.020.990.911.130.94
37Nov1.071.021.061.040.930.97
38Dec0.990.991.020.960.931.06
392018Jan1.080.990.970.950.960.93
40Feb0.920.941.011.020.921.00
41Mar0.940.951.020.980.850.91
42Apr0.941.151.010.981.161.04
43May1.030.821.000.980.970.71
44Jun0.930.980.980.971.070.99
45Jul0.870.931.031.201.110.97
46Aug1.251.081.010.980.970.98
47Sep0.860.880.980.870.870.97
48Oct1.180.951.000.970.870.85
49Nov0.950.990.961.211.120.98
50Dec1.051.211.010.971.251.20
512019Jan1.191.031.051.041.091.08
52Feb0.840.891.070.991.040.85
53Mar0.920.951.040.931.031.02
54Apr0.950.970.920.991.090.91
55May1.221.150.991.050.921.15
56Jun0.940.911.020.970.980.87
57Jul0.870.800.970.951.130.42
58Aug1.021.010.991.011.041.41
59Sep1.021.001.020.870.970.97
60Oct0.760.960.980.900.950.77
61Nov1.111.141.001.111.091.78
62Dec0.990.910.940.951.210.68
632020Jan0.890.970.980.960.880.86
64Feb1.000.971.051.121.041.04
65Mar0.890.850.920.831.091.08
66May1.001.001.001.001.000.96
67Jun1.001.001.001.000.971.00
68Jul1.001.021.001.311.011.00
69Aug1.611.501.001.181.341.50
70Sep1.961.271.001.000.991.74
71Oct0.911.011.000.870.910.69
72Nov1.060.991.000.950.990.89
73Dec1.271.211.001.101.171.10
Sheet1
Cell Formulas
RangeFormula
C3:H73C3=1+'[Templted.xlsx]Monthly Actual Return'!C4
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Welcome to the MrExcel forum!

Here are 2 ways to do it:

Book1 (version 1).xlsb
ABCDEFGHIJKLM
1Bangladesh Finance LimitedBay leasingDelta brac housing financeAgni SystemsDaffodil ComBD Industrial Fin11-month productYear11-month product
2YearMonth20150.851533
32015Jan1.081.20.961.0610.820.85153320160.65927
4Feb1.161.031.080.80.881.03 20170.801276
5Mar0.991.090.941.020.91.16 20181.458189
6Apr0.861.131.180.840.870.86 20191.677538
7May10.981.131.20.830.87 20200.642308
8Jun1.110.921.071.20.91 
9Jul0.81.020.991.21.20.88 
10Aug0.850.810.961.041.190.88 
11Sep1.0411.151.081.041.11 
12Oct0.90.990.971.040.930.82 
13Nov1.1310.841.051.110.91 
14Dec1.181.011.021.150.810.94 
152016Jan0.870.950.891.071.011.040.65927
16Feb0.91.191.130.990.911.13 
17Mar1.11.180.90.931.161.07 
18Apr0.810.990.951.181.040.96 
19May1.030.930.91.161.151.04 
20Jun1.160.971.111.10.94 
21Jul1.140.840.91.080.921.12 
22Aug1.070.860.951.130.961.14 
23Sep0.930.9110.90.91.11 
24Oct0.830.840.850.920.831.08 
25Nov0.840.911.191.20.971.2 
26Dec1.1210.840.910.880.98 
272017Jan0.91.10.980.90.880.990.801276
28Feb1.040.950.860.821.021.04 
29Mar0.950.820.81.21.170.92 
30Apr0.90.931.061.121.151.01 
31May1.171.011.120.931.090.89 
32Jun1.081.160.990.860.810.88 
33Jul1.030.811.011.20.931.08 
34Aug10.850.981.180.930.87 
35Sep0.881.091.21.0710.8 
36Oct0.930.860.910.891.091.12 
37Nov0.940.8611.020.910.99 
38Dec0.961.050.940.90.870.87 
392018Jan1.20.90.981.1310.911.458189
40Feb1.140.980.90.841.191.05 
41Mar0.851.20.931.181.190.88 
42Apr1.171.011.061.151.080.89 
43May1.071.1611.181.040.86 
44Jun0.960.871.130.840.951.09 
45Jul0.971.130.950.981.190.99 
46Aug1.080.971.10.930.941.06 
47Sep1.191.130.950.811.070.9 
48Oct0.90.880.930.910.880.97 
49Nov0.931.080.880.920.831.03 
50Dec0.91.071.130.860.920.83 
512019Jan0.810.910.931.121.011.091.677538
52Feb1.071.160.90.871.091.02 
53Mar1.191.181.081.050.830.86 
54Apr1.161.030.91.10.960.8 
55May0.960.80.910.970.970.81 
56Jun0.921.071.181.031.150.99 
57Jul1.120.881.111.071.161.13 
58Aug1.011.091.140.951.090.9 
59Sep1.150.861.10.861.111 
60Oct1.130.850.960.911.10.96 
61Nov1.081.010.980.90.911.07 
62Dec0.830.870.930.850.990.88 
632020Jan0.880.91.011.190.821.050.642308
64Feb0.991.071.161.031.071.03 
65Mar0.990.80.940.81.141.05 
66May0.850.970.821.070.891.06 
67Jun1.070.881.090.911.050.83 
68Jul0.970.871.080.90.811.11 
69Aug0.961.131.010.950.850.87 
70Sep0.980.930.850.841.21.06 
71Oct1.160.831.061.071.180.99 
72Nov0.850.90.80.821.020.84 
73Dec0.911.181.121.110.920.97 
74
Sheet2
Cell Formulas
RangeFormula
L2:M7L2=CHOOSE({1,2},FILTER(A3:A100,A3:A100<>""),SUBTOTAL(6,OFFSET(C3,SEQUENCE(COUNTA(A3:A100),,0,12),0,11)))
J3:J73J3=IF(A3<>"",PRODUCT(C3:C13),"")
Dynamic array formulas.


Note that your numbers did not copy since your mini-sheet was pointing to another sheet which you didn't provide, so I just put in some random numbers. Hope this helps!
 
Upvote 0
=CHOOSE({1,2},FILTER(A3:A100,A3:A100<>""),SUBTOTAL(6,OFFSET(C3,SEQUENCE(COUNTA(A3:A100),,0,12),0,11)))
If I want to apply the formula to other columns as well by dragging, what changes should be made to the formula?
 
Upvote 0
Mainly by adding $ signs to the A column references, but I also broke out the year portion of the SPILL formula:

Book1 (version 1).xlsb
JKLMNOPQRSTUVWX
111-month product, BFLBLDbhfAgniDCBDYear11-month product, BFLBLDbhfAgniDCBD
220150.8515331.1226841.238291.5399220.7891010.470187
30.8515331.1226841.238291.5399220.7891010.47018720160.659270.5986630.736211.6351430.8976272.167598
4      20170.8012760.5182270.8565321.0911240.914770.624506
5      20181.4581891.2699410.7982540.7890821.3209730.661943
6      20191.6775380.7777511.1440180.8050411.3747010.640783
7      20200.6423080.5299730.8668130.6678290.855140.824962
8      
9      
10      
11      
12      
13      
14      
150.659270.5986630.736211.6351430.8976272.167598
16      
17      
Sheet2
Cell Formulas
RangeFormula
Q2:Q7Q2=FILTER(A3:A100,A3:A100<>"")
R2:W7R2=SUBTOTAL(6,OFFSET(C3,SEQUENCE(COUNTA($A3:$A100),,0,12),0,11))
J3:O17J3=IF($A3<>"",PRODUCT(C3:C13),"")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,883
Messages
6,175,168
Members
452,615
Latest member
bogeys2birdies

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