[英]Sumifs with or conditional in Google Sheets
I have a database and I need to create a sumifs
expression in Google sheets with the following rules: I have a range of cells and this would be a filter for what the sumifs
must sum (similar to an OR).我有一个数据库,我需要使用以下规则在 Google 表格中创建一个
sumifs
表达式:我有一系列单元格,这将是sumifs
必须求和的过滤器(类似于 OR)。 I think the image will explain a little bit better what my expected result is:我认为这张图片会更好地解释我的预期结果:
I have been trying with a lot of examples but none of them have given me the right result.我一直在尝试很多例子,但没有一个给我正确的结果。
You can filter the values and then sum up:您可以过滤值,然后总结:
First one would be: =SUM(FILTER($B$1:$B$6;$A$1:$A$6=$F$4:$F$6))
第一个是:
=SUM(FILTER($B$1:$B$6;$A$1:$A$6=$F$4:$F$6))
Second one: =SUM(FILTER($B$1:$B$6;$A$1:$A$6=$I$4:$I$5))
第二个:
=SUM(FILTER($B$1:$B$6;$A$1:$A$6=$I$4:$I$5))
You can see an example I uploaded to GDrive您可以看到我上传到 GDrive 的示例
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.