Summary

To conditionally sum numeric data in an Excel table, you can use SUMIFS with structured references for both sum and criteria ranges. In the example shown, the formula in I5 is:

=SUMIFS(Table1[Total],Table1[Item],H5)

Where Table1 is an Excel Table with the data range B105:F89.

Generic formula

=SUMIFS(Table[sum_col],Table[crit_col],criteria)

Explanation 

This formula uses structured references to feed table ranges into the SUMIFS function.

The sum range is provided as Table1[Total], the criteria range is provided as Table1[Item], and criteria comes from values in column I.

The formula in I5 is:

=SUMIFS(Table1[Total],Table1[Item],H5)

which resolves to:

=SUMIFS(F5:F89,D5:D89,"Shorts")

The SUMIFS function returns 288, the sum values in the Total column where the value in the Item column is "Shorts".

Dave Bruns Profile Picture

AuthorMicrosoft Most Valuable Professional Award

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.