Sum for specific month

sachin483

Board Regular
Joined
Mar 31, 2015
Messages
157
Office Version
  1. 2019
Platform
  1. Windows
I have data from which i would like sum the sales column from the month 202204 to 202302 & 202204 to 202303 for the code

resultresult
MONTHcodeSALESytd febytd mar
202204​
XXX047
7117271​
73259860​
79218678​
202204​
XXX053
2828876​
29408031​
32476995​
202204​
XXX076
2024273​
22511160​
25096332​
202205​
XXX047
4689776​
73259860​
79218678​
202205​
XXX053
2253672​
29408031​
32476995​
202205​
XXX076
1982671​
22511160​
25096332​
202206​
XXX047
6127362​
73259860​
79218678​
202206​
XXX053
2629121​
29408031​
32476995​
202206​
XXX076
1988150​
22511160​
25096332​
202207​
XXX047
6729839​
73259860​
79218678​
202207​
XXX053
2781318​
29408031​
32476995​
202207​
XXX076
1876402​
22511160​
25096332​
202208​
XXX047
6840406​
73259860​
79218678​
202208​
XXX053
2512318​
29408031​
32476995​
202208​
XXX076
1626990​
22511160​
25096332​
202209​
XXX047
7238547​
73259860​
79218678​
202209​
XXX053
2571109​
29408031​
32476995​
202209​
XXX076
2390532​
22511160​
25096332​
202210​
XXX047
6742770​
73259860​
79218678​
202210​
XXX053
2663412​
29408031​
32476995​
202210​
XXX076
1883259​
22511160​
25096332​
202211​
XXX047
6550329​
73259860​
79218678​
202211​
XXX053
2413417​
29408031​
32476995​
202211​
XXX076
2058613​
22511160​
25096332​
202212​
XXX047
7144123​
73259860​
79218678​
202212​
XXX053
3076389​
29408031​
32476995​
202212​
XXX076
2205149​
22511160​
25096332​
202301​
XXX047
7470260​
73259860​
79218678​
202301​
XXX053
2947495​
29408031​
32476995​
202301​
XXX076
2123584​
22511160​
25096332​
202302​
XXX047
6609177​
73259860​
79218678​
202302​
XXX053
2730904​
29408031​
32476995​
202302​
XXX076
2351537​
22511160​
25096332​
202303​
XXX047
5958818​
0​
79218678​
202303​
XXX053
3068964​
0​
32476995​
202303​
XXX076
2585172​
0​
25096332​
202304​
XXX047
9116659​
0​
0​
202304​
XXX053
3577718​
0​
0​
202304​
XXX076
3164970​
0​
0​
202305​
XXX047
7871403​
0​
0​
202305​
XXX053
2970228​
0​
0​
202305​
XXX076
3288483​
0​
0​
202306​
XXX047
1067500​
0​
0​
202306​
XXX053
1117500​
0​
0​
202306​
XXX076
1167500​
0​
0​
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
How about
Fluff.xlsm
ABCF
1
2MONTHcodeSALES
3202204XXX047711727173259860
4202204XXX053282887629408031
5202204XXX076202427322511160
6202205XXX047468977673259860
7202205XXX053225367229408031
8202205XXX076198267122511160
9202206XXX047612736273259860
10202206XXX053262912129408031
11202206XXX076198815022511160
12202207XXX047672983973259860
13202207XXX053278131829408031
14202207XXX076187640222511160
15202208XXX047684040673259860
16202208XXX053251231829408031
17202208XXX076162699022511160
18202209XXX047723854773259860
19202209XXX053257110929408031
20202209XXX076239053222511160
21202210XXX047674277073259860
22202210XXX053266341229408031
23202210XXX076188325922511160
24202211XXX047655032973259860
25202211XXX053241341729408031
26202211XXX076205861322511160
27202212XXX047714412373259860
28202212XXX053307638929408031
29202212XXX076220514922511160
30202301XXX047747026073259860
31202301XXX053294749529408031
32202301XXX076212358422511160
33202302XXX047660917773259860
34202302XXX053273090429408031
35202302XXX076235153722511160
36202303XXX04759588180
37202303XXX05330689640
38202303XXX07625851720
39202304XXX04791166590
40202304XXX05335777180
41202304XXX07631649700
42202305XXX04778714030
43202305XXX05329702280
44202305XXX07632884830
45202306XXX04710675000
46202306XXX05311175000
47202306XXX07611675000
Main
Cell Formulas
RangeFormula
F3:F47F3=IF(A3<=202302,SUMIFS(C:C,A:A,"<="&202302,B:B,B3),0)
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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