我想改变这个公式:
=(ArrayFormula(SUMPRODUCT(Transactions!$E$2:$E$30="ETH",Transactions!$K$2:$K$30,Transactions!$F$2:$F$30)))/(SUMIF(Transactions!$E$2:$E$30,"ETH",Transactions!$F$2:$F$30))
所以" ETH"可以转换为单元格引用(A2)。我已经尝试了很多不同的方法,但它们都不起作用而是返回" 0"。以下是我尝试过的内容:
=(ArrayFormula(SUMPRODUCT(Transactions!$E$2:$E$30&"="&""""&A2&""""&","Transactions!$K$2:$K$30,Transactions!$F$2:$F$30)))/(SUMIF(Transactions!$E$2:$E$30,&""""&A2&""""&","Transactions!$F$2:$F$30))
谢谢!
答案 0 :(得分:0)
你试过了吗?
=(ArrayFormula(SUMPRODUCT(Transactions!$E$2:$E$30=$A$2,Transactions!$K$2:$K$30,Transactions!$F$2:$F$30)))/(SUMIF(Transactions!$E$2:$E$30,$A$2,Transactions!$F$2:$F$30))