Sum a range of values depending on which month it is. (SUMIF?)

Darkzler

New Member
Joined
Sep 25, 2015
Messages
26
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,

Got a new issue which I can't really get to work.

I have the following:

Dates in column A
Repaired items in column C
Damaged items in column D

I want a table that summarizes repaired and damaged items depending on which month it has been added.

For examples, ten entries in january, then I want a cell that contains the total of januaries damaged and repaired items.

I tried using SUMIF and an IF statement but failed. Anyone who can assist me?


[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Broken[/TD]
[TD]Repaired[/TD]
[TD]Damaged[/TD]
[/TR]
[TR]
[TD]2015-10-01
[/TD]
[TD]1[/TD]
[TD]6[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]2015-10-02[/TD]
[TD]2[/TD]
[TD]7[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2015-10-03[/TD]
[TD]3[/TD]
[TD]9[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]2015-11-01[/TD]
[TD]4[/TD]
[TD]8[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]2015-11-04[/TD]
[TD]5[/TD]
[TD]1[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]











Results in:

[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Tot Repaired[/TD]
[TD]Tot Damaged[/TD]
[/TR]
[TR]
[TD]October[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]November[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Excel 2010
ABCD
1DateBrokenRepairedDamaged
201/10/2015162
302/10/2015273
403/10/2015394
501/11/2015485
604/11/2015515
7
8
9
10
11
12
13
14
15MonthRepairedDamaged
16October229
17November910
Sheet1
Cell Formulas
RangeFormula
B16=SUMIFS(INDEX($B$2:$D$6,,MATCH(B$15,$B$1:$D$1,0)),$A$2:$A$6,">="&$A16,$A$2:$A$6,"<="&EOMONTH($A16,0))


The months in the Summary Table are actually the first day of the month formatted as "MMMM" e.g. 01/10/15 = October

Or use a pivot table.

Row Labes = "Date"
Values = "Broken column" & "Repaired column"

Group the dates my Month and year.


Excel 2010
ABCD
2
3Row LabelsSum of RepairedSum of Damaged
42015
5Oct229
6Nov910
7Grand Total3119
Sheet4
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
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