SUM关联矩阵 - 乘以出现

时间:2016-02-10 11:41:21

标签: excel

我有一个像这样的值的关联矩阵:

https://gooddevbaddev.wordpress.com/2013/10/22/ios-7-running-location-based-apps-in-the-background/

  • Col A:要计算的值
  • Col B:C:出现值
  • Cells B1,C1SUM Col A中的值1 Col B =SUMIF(B$2:B$5;">=1";$A$2:$A$5) 1*5+2*4+3*1+1*2=18

但是,如果我需要使用出现次数(1)也作为乘数,如何对它进行求和,如下所示:

enter image description here

  • 即。 1*5+5*1=10class TapUpdateView(SuccessMessageMixin, UpdateView): model = Tap fields = ['number', 'container'] template_name = 'shops/tap_update.html' success_url = '/shops/tap/' success_message = "Tap %(number)s was updated successfully" def get_success_url(self): return force_text(self.request.GET.get('next', self.success_url))

1 个答案:

答案 0 :(得分:3)

如果我理解你的问题:
B1:b
您可能需要将class更改为=SUMPRODUCT($A$2:$A$5;B2:B5)

,具体取决于您的区域设置