person value month y/n
Matt 300 October y
Matt 50 October y
Peter 100 October y
Peter 400 October y
Sheila 20 October y
Sheila 70 October y
James 100 November y
James 120 November y
Piece 50 October n
Piece 150 October n
大家好,
我必须对上述假设数据应用sumifs(这是一个更大的数据库)。 sumifs结果必须复制到不同工作表的不同单元格中。
我到目前为止有这个
=(sumifs('sheet1'!$F$3:$F$1000),('sheet1'!$D$3:$D$1000,"Matt"),('sheet1'!$G$3:$G$1000,"October"),('sheet1'!$J$3:$J$1000,"Y"))
但是我遇到一个错误。最后我是否缺少某些条件? (例如,Y是否必须相等,或者缺少真声明)?
答案 0 :(得分:1)
尝试丢掉一些括号。
=sumifs('sheet1'!$F$3:$F$1000, 'sheet1'!$D$3:$D$1000, "Matt", 'sheet1'!$G$3:$G$1000, "October", 'sheet1'!$J$3:$J$1000, "Y")
'I see no reason why you couldn't use full column references
=sumifs('sheet1'!F:F, 'sheet1'!D:D, "Matt", 'sheet1'!G:G, "October", 'sheet1'!J:J, "Y")
是的,您可以在字符串文字数组内使用两个带有OR操作的条件,但是必须将整个sumif打包为sum。
=sum(sumifs('North - Delhi NCR- 2018 - 19'!$F$2:$F$400,
'North - Delhi NCR- 2018 - 19'!$D$2:$D$400, {"Sri", "Aanchal/Sri"} ,
'North - Delhi NCR- 2018 - 19'!$G$2:$G$400, "October",
'North - Delhi NCR- 2018 - 19'!$J$2:$J$400, "Y"))