Criteria range in SUMIFS array formula

一世执手 提交于 2020-01-05 04:48:43

问题


=ARRAYFORMULA(IF(ROW(A:A)=1,"Spend",SUMIFS(Expenses!G:G,Expenses!D:D,A:A,Expenses!B:B,"Budget")))

Doesn't produce a result

If I change the criteria that was "A:A" to a certain field it works

=ARRAYFORMULA(IF(ROW(A:A)=1,"Spend",SUMIFS(Expenses!G:G,Expenses!D:D,"A1",Expenses!B:B,"Budget")))

If I use simple SUMIF the first version also works

=ARRAYFORMULA(IF(ROW(A:A)=1,"Spend",SUMIF(Expenses!D:D,A:A,Expenses!G:G)))

How come not as SUMIFS?


回答1:


could it be u need to use sumproduct() function? you probably need to know which Excel version you are in.

if before 2007 SUMIFS() won't work.

rr



来源:https://stackoverflow.com/questions/30390690/criteria-range-in-sumifs-array-formula

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!