Soma mensal acumulada / Accumulated Monthly Sum

asampaio

New Member
Joined
Nov 6, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi, all
Please support me.
I provided the spreadsheet in english and portuguese languages as you wish.
Many thanks for those that are interested on the solution of this issue.

Regards,
Albert

Soma Mensal Acumulada_Accumulated Monthly Sum.xlsx
BCDEFGHIJKLMNOPQRST
2Year202220222022202220222022202220222022202220222022202220232023202320232023
3MonthOctOctOctOctNovNovNovNovDecDecDecDecDecJanJanJanJanFeb
4WeekW40W41W42W43W44W45W46W47W48W49W50W51W52W1W2W3W4W5
5Week Start Date10/3~10/10~10/17~10/24~10/31~11/7~11/14~11/21~11/28~12/5~12/12~12/19~12/26~1/2~1/9~1/16~1/23~1/30~
6Qty30008512034048218889728413443161626752243212160729629184291845350441344437765593643776
7Accumulated Qty per month300088120122168144056972851072826881094402432145922188851072802565350494848138624194560238336
8
9
10Remarks:
11Please develop the formula for the range C7:T7, according to the results above (marked in yellow cells).
12Please consider that the dates (range C2:T5) will be changed eventually, and the quantities (range C6:T6); so the fomula in the range C7:T7 must becapable to calculate automatically.
13If possible, try to avoid matricial formula. If not possible, please provide your best solution.
English
Cell Formulas
RangeFormula
C2:T2C2=YEAR(C5)
C3:T3C3=TEXT(DATE(,MONTH(C5+3),1),"[$-en-US]mmm;@")
D5:T5D5=+C5+7



Soma Mensal Acumulada_Accumulated Monthly Sum.xlsx
BCDEFGHIJKLMNOPQRSTUV
2Ano202220222022202220222022202220222022202220222022202220232023202320232023
3MêsOctOctOctOctNovNovNovNovDecDecDecDecDecJanJanJanJanFeb
4SemanaW40W41W42W43W44W45W46W47W48W49W50W51W52W1W2W3W4W5
5Data inicial da semana10/3~10/10~10/17~10/24~10/31~11/7~11/14~11/21~11/28~12/5~12/12~12/19~12/26~1/2~1/9~1/16~1/23~1/30~
6Qtde30008512034048218889728413443161626752243212160729629184291845350441344437765593643776
7Qtde Acumulada por mês300088120122168144056972851072826881094402432145922188851072802565350494848138624194560238336
8
9
10Observações:
11Por favor desenvolva uma fórmula para o intervalo C7:T7 de acordo com os resultados acima (células em amarelo).
12Por favor considere que as datas (intervalo C2:T5) serão manualmente alteradas eventualmente, bem como as quantidades (intervalo C6:T6); então a fórmula do intervalo C7:T7 deve ser capaz de calclar automaticamente.
13Se for possível, evite fórmula matricial. Caso contrário, por favor dê sua melhor solução.
Portuguese
Cell Formulas
RangeFormula
C2:T2C2=YEAR(C5)
C3:T3C3=TEXT(DATE(,MONTH(C5+3),1),"[$-en-US]mmm;@")
D5:T5D5=+C5+7
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi there,

Why is the accumulated in February 2023 (cell T6) 238336?, I guess it should be 43776.

If it is a mistake, then try this in C7:

Excel Formula:
=IF(C3<>B3,C6,C6+B7)

Then copy to the right.
It just checks when there is a change of month and if so starts over adding the accumulated quatities.
 
Upvote 0
Solution
Hi there,

Why is the accumulated in February 2023 (cell T6) 238336?, I guess it should be 43776.

If it is a mistake, then try this in C7:

Excel Formula:
=IF(C3<>B3,C6,C6+B7)

Then copy to the right.
It just checks when there is a change of month and if so starts over adding the accumulated quatities.
Dear @Leo Skywalker . I deeply appreciate your support on this thread. About cell T6, it was a typo. Your solution works perfectly. Thank you so much.
 
Upvote 0

Forum statistics

Threads
1,223,883
Messages
6,175,167
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