简体   繁体   English

向数组公式添加多个条件

[英]Add multiple criteria to array formula

I'm having a hard time finding a way to add a second criterion to my array formula.我很难找到一种方法来为我的数组公式添加第二个标准。

I have 3 columns that I'm tracking data from and I'm outputting this data onto a separate 'summary' tab.我有 3 列用于跟踪数据,并将这些数据输出到单独的“摘要”选项卡上。

Tab 1 has the following columns选项卡 1 具有以下列

B (quantity), C (employee name), and D (date) B(数量)、C(员工姓名)和 D(日期)

Tab 2 has the following cells选项卡 2 具有以下单元格

A3 (daily total), B3 (weekly total), C3 (monthly total) A7 (daily total for employee mark), A7 (weekly total for employee mark), C7 (monthly total for employee mark) A3(每日总计)、B3(每周总计)、C3(每月总计) A7(员工标记每日总计)、A7(员工标记每周总计)、C7(员工标记每月总计)

I created an array formula so that I could count all of the quantities added up over certain date ranges (daily, weekly, and monthly), but I also want to output this data and separate it by the employee also.我创建了一个数组公式,这样我就可以计算在某些日期范围(每天、每周和每月)内加起来的所有数量,但我也想 output 这个数据并由员工分开。

I can't for the life of me figure out a way to add this to my current formula or find another way to do it where it accurately can track the daily, weekly, and monthly sums of the quantity column.我一辈子都想不出一种方法来将它添加到我当前的公式中,或者找到另一种方法来准确地跟踪数量列的每日、每周和每月总和。

I've attached a demo sheet so that you can see what I'm working with.我附上了一个演示表,以便您可以看到我正在使用的内容。

https://docs.google.com/spreadsheets/d/1iAS_U33lPCr-8xnmfK9WuL5URnK8ovY7V-TlKrrSKdQ/edit?usp=sharing https://docs.google.com/spreadsheets/d/1iAS_U33lPCr-8xnmfK9WuL5URnK8ovY7V-TlKrrSKdQ/edit?usp=sharing

I really appreciate any help I can get on this.我非常感谢我能得到的任何帮助。

try:尝试:

=ARRAYFORMULA(SUMIFS(Updating!B:B, 
 WEEKNUM(Updating!D:D), 47,
   MONTH(Updating!D:D), 11,
    YEAR(Updating!D:D), 2019,
         Updating!C:C, "Santosh"))

0


and for Rina:对于丽娜:

=ARRAYFORMULA(SUMIFS(Updating!B:B, 
 WEEKNUM(Updating!D:D), 47,
   MONTH(Updating!D:D), 11,
    YEAR(Updating!D:D), 2019,
         Updating!C:C, "Rina"))

0

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

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