Hi Guys,
I'm using Excel 2016 and trying to retrieve some values from a table, here's a simple example;
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Dept[/TD]
[TD="width: 64"]Sub Dept[/TD]
[TD="width: 64"]Sales[/TD]
[/TR]
[TR]
[TD]Dept A[/TD]
[TD]Dept A1[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD]Dept A[/TD]
[TD]Dept A2[/TD]
[TD="align: right"]150[/TD]
[/TR]
[TR]
[TD]Dept B[/TD]
[TD]Dept B1[/TD]
[TD="align: right"]500[/TD]
[/TR]
[TR]
[TD]Dept B[/TD]
[TD]Dept B2[/TD]
[TD="align: right"]250[/TD]
[/TR]
[TR]
[TD]Dept B[/TD]
[TD]Dept B3[/TD]
[TD="align: right"]150[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Inputs[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dept[/TD]
[TD]Dept A[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sub Dept[/TD]
[TD]Dept A1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Output[/TD]
[TD="align: right"]100[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Where the formula in the output is "=SUMIFS( G8:G12, E8:E12, F15, F8:F12, F16 )"
What I'm looking for is the ability to sum up either all Depts or Sub Depts, I thought I could use wildcards in the inp[ut cells for this but it doesn't seem to work. Can anyone help?
I'm using Excel 2016 and trying to retrieve some values from a table, here's a simple example;
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Dept[/TD]
[TD="width: 64"]Sub Dept[/TD]
[TD="width: 64"]Sales[/TD]
[/TR]
[TR]
[TD]Dept A[/TD]
[TD]Dept A1[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD]Dept A[/TD]
[TD]Dept A2[/TD]
[TD="align: right"]150[/TD]
[/TR]
[TR]
[TD]Dept B[/TD]
[TD]Dept B1[/TD]
[TD="align: right"]500[/TD]
[/TR]
[TR]
[TD]Dept B[/TD]
[TD]Dept B2[/TD]
[TD="align: right"]250[/TD]
[/TR]
[TR]
[TD]Dept B[/TD]
[TD]Dept B3[/TD]
[TD="align: right"]150[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Inputs[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dept[/TD]
[TD]Dept A[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sub Dept[/TD]
[TD]Dept A1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Output[/TD]
[TD="align: right"]100[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Where the formula in the output is "=SUMIFS( G8:G12, E8:E12, F15, F8:F12, F16 )"
What I'm looking for is the ability to sum up either all Depts or Sub Depts, I thought I could use wildcards in the inp[ut cells for this but it doesn't seem to work. Can anyone help?