Conditional Sum?

vasishta1729

New Member
Joined
Jul 9, 2015
Messages
2
I am trying to perform a conditional sum for something similar to the following data. I have some part numbers in the first column and the weeks in the first row and some data. What I am looking for is, for each month, if the data values start in that month, I want the sum of "Total".

So, for January, I want the sum of Total of ABCD, EFGH, IJKL, MNOP (data values are starting in January). For February, the result would be sum of Totals of QRST, UVWX (data values are starting in February) and for March, the result would be sum of Totals of YZAA and so on.


[TABLE="width: 792"]
<colgroup><col><col><col span="3"><col span="2"><col span="2"><col span="3"></colgroup><tbody>[TR]
[TD]Part Number [/TD]
[TD="align: right"]1/5/2015[/TD]
[TD="align: right"] 1/12/2015[/TD]
[TD="align: right"] 1/19/2015 [/TD]
[TD="align: right"]1/26/2015 [/TD]
[TD="align: right"]2/2/2015 [/TD]
[TD="align: right"]2/9/2015[/TD]
[TD="align: right"] 2/16/2015[/TD]
[TD="align: right"] 2/23/2015[/TD]
[TD="align: right"] 3/2/2015[/TD]
[TD="align: right"] 3/9/2015[/TD]
[TD] Total[/TD]
[/TR]
[TR]
[TD]ABCD[/TD]
[TD="align: right"]267[/TD]
[TD="align: right"]267[/TD]
[TD="align: right"]267[/TD]
[TD="align: right"]267[/TD]
[TD] [/TD]
[TD="align: right"]267[/TD]
[TD="align: right"]267[/TD]
[TD="align: right"]267[/TD]
[TD] [/TD]
[TD="align: right"]267[/TD]
[TD="align: right"]2136[/TD]
[/TR]
[TR]
[TD]EFGH[/TD]
[TD="align: right"]2388.75[/TD]
[TD] [/TD]
[TD="align: right"]2388.75[/TD]
[TD="align: right"]2388.75[/TD]
[TD="align: right"]2388.75[/TD]
[TD="align: right"]2388.75[/TD]
[TD] [/TD]
[TD="align: right"]2388.75[/TD]
[TD="align: right"]2388.75[/TD]
[TD="align: right"]2388.75[/TD]
[TD="align: right"]19110[/TD]
[/TR]
[TR]
[TD]IJKL[/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]7.08[/TD]
[TD="align: right"]26.45[/TD]
[TD] [/TD]
[TD="align: right"]26.79[/TD]
[TD] [/TD]
[TD="align: right"]131[/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]191.32[/TD]
[/TR]
[TR]
[TD]MNOP[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]120.45[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]120.45[/TD]
[/TR]
[TR]
[TD]QRST[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]10.45[/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]44.46[/TD]
[TD] [/TD]
[TD="align: right"]54.91[/TD]
[/TR]
[TR]
[TD]UVWX[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]9.78[/TD]
[TD="align: right"]9.78[/TD]
[TD="align: right"]9.78[/TD]
[TD="align: right"]9.78[/TD]
[TD="align: right"]39.12[/TD]
[/TR]
[TR]
[TD]YZAA[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]20.23[/TD]
[TD="align: right"]23.46[/TD]
[TD="align: right"]43.69[/TD]
[/TR]
</tbody>[/TABLE]



Is there a function/combination of functions that can be used to get this in Excel without using VBA? I am not very familiar with VBA yet to use it.
Thanks much for your help!
Vasishta.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Thank you! But it did not work. It is giving the totals of data values of just that month. I am looking for the sum of values in "Total" column based on the month data starts appearing in the table. For all the part numbers the data starts appearing in January, I want the sum of values in "Total" column and similarly for all months.
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,924
Members
452,366
Latest member
TePunaBloke

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