I have a data set with unique id numbers down the left hand colum and dates (week commencing) across the top. For each unique ID I want to sum the data if it falls under a specific month. So for example I want to say for the unique id number, if the date contains the month of october then sum this data. I would normally use a sumifs for this but I'm not sure how to do this when the criteria is a column header? Not sure if it needs to be combined with Index match but not sure how?
Thanks
Example table below
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]10 Oct 16[/TD]
[TD]17 Oct 16[/TD]
[TD]24 Oct 16[/TD]
[TD]31 Oct 16[/TD]
[TD]7 Nov 16[/TD]
[/TR]
[TR]
[TD]Unique ID[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]070[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]6[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]071[/TD]
[TD]3[/TD]
[TD]6[/TD]
[TD]7[/TD]
[TD]2[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]072[/TD]
[TD]6[/TD]
[TD]8[/TD]
[TD]1[/TD]
[TD]4[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]073[/TD]
[TD]9[/TD]
[TD]2[/TD]
[TD]8[/TD]
[TD]8[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
Thanks
Example table below
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]10 Oct 16[/TD]
[TD]17 Oct 16[/TD]
[TD]24 Oct 16[/TD]
[TD]31 Oct 16[/TD]
[TD]7 Nov 16[/TD]
[/TR]
[TR]
[TD]Unique ID[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]070[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]6[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]071[/TD]
[TD]3[/TD]
[TD]6[/TD]
[TD]7[/TD]
[TD]2[/TD]
[TD]6[/T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