I have a "Data" Excel table that i need to have columns summed up with multiple criteria and presented on two "Summary" Excel tables.
"DataTable" Table:
<table>
<tr>
<th>Date</th>
<th>Transaction Type</th>
<th>Contribution Type</th>
<th>Quantity</th>
</tr>
<tr>
<td>7/12/2018</td>
<td>sp</td>
<td>ec</td>
<td>23.56</td>
</tr>
<tr>
<td>7/12/2018</td>
<td>sp</td>
<td>aa</td>
<td>1.101</td>
</tr>
<tr>
<td>7/12/2018</td>
<td>sp</td>
<td>am</td>
<td>4.4059</td>
</tr>
<tr>
<td>7/13/2018</td>
<td>lt</td>
<td>ec</td>
<td>3.298</td>
</tr>
</table>
"TransactionTypeSummary" Table:
<table>
<tr>
<th>Date</th>
<th>lt Total (Formula)</th>
<th>lt Total (Result)</th>
<th>sp Total (Formula)</th>
<th>sp Total (Result)</th>
</tr>
<tr>
<td>7/12/2018</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Transaction Type],"lt")</td>
<td>0</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Transaction Type],"sp")</td>
<td>29.0669</td>
</tr>
<tr>
<td>7/13/2018</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Transaction Type],"lt")</td>
<td>3.298</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Transaction Type],"sp")</td>
<td>0</td>
</tr>
</table>
"ContributionTypeSummary" Table:
<table>
<tr>
<th>Date</th>
<th>ec Total (Formula)</th>
<th>ec Total (Result)</th>
<th>aa Total (Formula)</th>
<th>aa Total (Result)</th>
<th>am Total (Formula)</th>
<th>am Total (Result)</th>
</tr>
<tr>
<td>7/12/2018</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Contribution Type],"ec")</td>
<td>23.56</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Contribution Type],"aa")</td>
<td>1.101</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Contribution Type],"am")</td>
<td>4.4059</td>
</tr>
<tr>
<td>7/13/2018</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Contribution Type],"ec")</td>
<td>3.298</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Contribution Type],"aa")</td>
<td>0</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Contribution Type],"am")</td>
<td>0</td>
</tr>
</table>
For each summary table, for the match to occur, the row's date has to match and the type has to match as well. Is there an alternate way to sum these values without using the very slow SUMIFS function?
"DataTable" Table:
<table>
<tr>
<th>Date</th>
<th>Transaction Type</th>
<th>Contribution Type</th>
<th>Quantity</th>
</tr>
<tr>
<td>7/12/2018</td>
<td>sp</td>
<td>ec</td>
<td>23.56</td>
</tr>
<tr>
<td>7/12/2018</td>
<td>sp</td>
<td>aa</td>
<td>1.101</td>
</tr>
<tr>
<td>7/12/2018</td>
<td>sp</td>
<td>am</td>
<td>4.4059</td>
</tr>
<tr>
<td>7/13/2018</td>
<td>lt</td>
<td>ec</td>
<td>3.298</td>
</tr>
</table>
"TransactionTypeSummary" Table:
<table>
<tr>
<th>Date</th>
<th>lt Total (Formula)</th>
<th>lt Total (Result)</th>
<th>sp Total (Formula)</th>
<th>sp Total (Result)</th>
</tr>
<tr>
<td>7/12/2018</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Transaction Type],"lt")</td>
<td>0</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Transaction Type],"sp")</td>
<td>29.0669</td>
</tr>
<tr>
<td>7/13/2018</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Transaction Type],"lt")</td>
<td>3.298</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Transaction Type],"sp")</td>
<td>0</td>
</tr>
</table>
"ContributionTypeSummary" Table:
<table>
<tr>
<th>Date</th>
<th>ec Total (Formula)</th>
<th>ec Total (Result)</th>
<th>aa Total (Formula)</th>
<th>aa Total (Result)</th>
<th>am Total (Formula)</th>
<th>am Total (Result)</th>
</tr>
<tr>
<td>7/12/2018</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Contribution Type],"ec")</td>
<td>23.56</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Contribution Type],"aa")</td>
<td>1.101</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Contribution Type],"am")</td>
<td>4.4059</td>
</tr>
<tr>
<td>7/13/2018</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Contribution Type],"ec")</td>
<td>3.298</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Contribution Type],"aa")</td>
<td>0</td>
<td>SUMIFS(DataTable[Quantity],DataTable[Date],[@Date],DataTable[Contribution Type],"am")</td>
<td>0</td>
</tr>
</table>
For each summary table, for the match to occur, the row's date has to match and the type has to match as well. Is there an alternate way to sum these values without using the very slow SUMIFS function?