如何根据工作表中另一个范围内的另一个范围对范围求和

How to sum a range based on another range which comes under another range in sheets

我想知道我们如何根据另一个范围内的另一个范围对 sheet 中的范围求和。

示例:如果对应的单元格 B1:B10 值位于 D2:D 或 E2:E

列表下,我想要 A2:A10 的总和

在示例中,

Sum of Fruits:    ? 
Sum of Vegetable: ?

=DSUM({"x", "y"; A2:B}, "x", {"y"; FILTER(E2:E, E2:E<>"")})

=DSUM({"x", "y"; A2:B}, "x", {"y"; FILTER(D2:D, D2:D<>"")})


欧盟语法:

  • =DSUM({"x"; "y"\ A2:B}; "x"; {"y"\ FILTER(E2:E; E2:E<>"")})
  • =DSUM({"x"; "y"\ A2:B}; "x"; {"y"\ FILTER(D2:D; D2:D<>"")})