【发布时间】:2018-06-26 07:24:27
【问题描述】:
我的谷歌电子表格中有 2 张表格,都有一些球员名单和得分。我需要公式来计算每个的分数差异。例如:
在表 1 中我们有
Adam - 20
Eve - 30
John - 10
在第 2 页中,我们有
Adam - 35
Dave - 10
Eve - 45
John - 30
所以,我需要表格 2 中每个人得分之间的差异,看起来像
Adam - 35 - 15
Dave - 10 - 0 (since this player was not there before)
Eve - 45 - 15
John - 30 - 20
我似乎想不出一个正确的公式来做到这一点。我该怎么办?
我试过下面的公式,但它返回一个错误。
=B2-sumif('Sheet1'!A2:A90,A2==VLOOKUP('Sheet1'!A2,'Sheet1'!A2:A90,1,FALSE),'Sheet1'!B2:B90)
【问题讨论】:
-
我已经尝试过 =B2-sumif('Sheet1'!A2:A90,A2==VLOOKUP('Sheet1'!A2,'Sheet1'!A2:A90,1,FALSE) ,'Sheet1'!B2:B90) 但它的返回错误。
标签: excel function google-sheets excel-formula spreadsheet