简体   繁体   English

SUMIFS excel 中的多个求和范围

[英]Multiple Sumrange in SUMIFS excel

I am trying to use SUMIFS in excel.我正在尝试在 excel 中使用 SUMIFS。 I was thinking I can select the multiple cell for one sumrange criteria (SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)) in different column by pressing Ctrl+select but its not the case.我在想我可以通过按 Ctrl+select 在不同的列中为一个 sumrange 条件(SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], …))选择多个单元格,但事实并非如此。 When I am selecting like this, its adding comma and going to another criteria.当我这样选择时,它会添加逗号并转到另一个标准。 I can able to achieve this by adding multiple sumifs like =sumifs() + sumifs () to achieve what I need.我可以通过添加多个 sumifs 来实现这一点,比如=sumifs() + sumifs ()来实现我所需要的。 I wrote the working formula as我把工作公式写成

=SUMIFS('Daily Log Sheet'!E3:E63, 'Daily Log Sheet'!B3:B63, 'Monthly Record'!B4) + SUMIFS('Daily Log Sheet'!E74:E144, 'Daily Log Sheet'!B74:B144, 'Monthly Record'!B4)

Instead of using multiple sumifs statement, is there any way to select multiple cell in different column in one criteria.除了使用多个 sumifs 语句,有没有办法在一个条件中选择不同列中的多个单元格。 Like by adding & operator in one criteria.就像在一个条件中添加&运算符一样。 I tried this but not working.我试过这个但没有用。

Its taking a lot of time in writing multiple sumifs statement and I have many sheets to work on.编写多个 sumifs 语句需要花费大量时间,而且我有很多工作要做。 There is any way to select multiple cell in one criteria.有任何方法可以在一个条件中选择多个单元格。

SUMPRODUCT 将允许您排除 64:73 的行。

=SUMPRODUCT(('Daily Log Sheet'!B3:B144='Monthly Record'!B4)*((ROW($3:$144)<64)+(ROW($3:$144)>73)), 'Daily Log Sheet'!E3:E144)

The syntax of the SUMIF and SUMIFS Functions are: SUMIFSUMIFS函数的语法是:

SUMIF(range, criteria, [sum_range])

SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)

... regardless of whether it's being used in an array formula. ...不管它是否在数组公式中使用。

The number of parameters in a function do not change just because it's being used in an array formula.函数中参数的数量不会仅仅因为它在数组公式中使用而改变。

Parameters shown in [ square brackets ] are optional. [方括号]中显示的参数是可选的。 If there's more than one criterion within the same set of [ square brackets ] — like [criteria_range2, criteria2] — then they all must be included or excluded together .如果有同一组内的多个条件[方括号] -像[criteria_range2, criteria2] -那么他们必须包含排除在一起

Outside of that, you can't arbitrarily add or remove parameters from functions.除此之外,您不能从函数中任意添加或删除参数。


More information:更多信息:

我从来没有试过这个,也不能在我的手机上测试它,但你也许可以使用标准 sum() 函数,以及一个 if 作为数组公式......

=Sum(if({criteria_range1}={criteria1},{sum range1},if{criteria_range2}={criteria2},{sum range 2})

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

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