我有一个在Sheets中生成的报告,其中包含员工的姓名,但不包含他/她的交易状态 . 并非每个员工都会在任何一天的工作表上 .
在第二个工作表中,我列出了所有员工的姓名,交易及其状态 .
我想在第一个工作表中找到一个公式,在第二个工作簿中查找相同的值(员工姓名),然后 Sums 在他的名字下面的所有钱(转移的金额) IF 该事务已由单元格4行进行在第一个工作簿上的那个(事务状态)的左边 . 有没有办法做到这一点?谢谢!
SUMIF函数怎么样:
https://support.google.com/docs/answer/3093583?hl=en
你可以这样做:
=if(A2="foo",sumif(Sheet2!$A$2:$A$5,B2,Sheet2!$B$2:$B$5))
哪里:
a2 = status for this client in the first sheet sheet2!$a$2:$a$5 = list of all names in second sheet b2 = name of this client in first sheet sheet2:$b$2:$b$5 = corresponding transaction amount for each name in sheet2!$a$2:$a$5
这接近你想要的吗?
1 回答
SUMIF函数怎么样:
https://support.google.com/docs/answer/3093583?hl=en
你可以这样做:
哪里:
这接近你想要的吗?