简体   繁体   English

如何对多个条件使用 sumifs

[英]How to use sumifs for multiple criteria

i am looking to add a column values if it matches multiple criteria如果它符合多个条件,我希望添加一个列值

i like to get sum of Column-c if Column-E range is in Column-B and Column-D = A1如果 Column-E 范围在 Column-B 中并且 Column-D = A1,我想得到 Column-c 的总和

https://docs.google.com/spreadsheets/d/17RojhKkLbkkJ7o5dZjCrdeYAy48fK1O0yufbSg0GjlQ/edit?usp=sharing https://docs.google.com/spreadsheets/d/17RojhKkLbkkJ7o5dZjCrdeYAy48fK1O0yufbSg0GjlQ/edit?usp=sharing

i tried with single criteria using below formulae =SUMPRODUCT(sumif(E4:E13,B4:B18,C4:C18)) but not able to add one more criteria我尝试使用以下公式使用单个标准=SUMPRODUCT(sumif(E4:E13,B4:B18,C4:C18))但无法再添加一个标准

if you have multiple criteria you should go with SUMIFS如果你有多个标准,你应该使用SUMIFS go

在此处输入图像描述

or do:或做:

=SUM(FILTER(C4:C, D4:D="A1", COUNTIF(B4:B, E4:E)))

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM