SUMIF contains one of elements in array (OR)

那年仲夏 提交于 2019-12-02 01:30:16

Wrap the SUMIF / SUMIFS function in a SUMPRODUCT function to provide an extra level of cyclic calculation.

=SUMPRODUCT(SUMIFS(B:B, A:A, {"Lidl","Aldi"}))

        

You could use a pivot table to get the result. The advantage of this solution is that it does not require complex formulas and is easy to change. To create the pivot table:

  • Select your data and use Insert > PivotTable
  • Drag your first column to ROW, your second column to VALUES
  • Make sure the VALUES are aggregated using a SUM
  • In the top row of your PivotTable you see a DropDown that allows you to select the values that should be included in your report
  • Make sure a grand total is displayed for all rows
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!