[英]Can I use a cell to tell me which column to use on a SUMPRODUCT formula?
I have the following formula below: =SUMPRODUCT('EC(C)DB'!M:M;--(ISNUMBER(MATCH('EC(C)DB'!A:A;$A$33:$A$39;0))) ... 我有以下公式:= SUMPRODUCT('EC(C)DB'!M:M;-(ISNUMBER(MATCH('EC(C)DB'!A:A; $ A $ 33:$ A $ 39; 0 )))...
The column which I want to sum (M:M) is variable depending on one Cell. 我想加总的列(M:M)取决于一个单元格。 Anyway I can have the formula look at that cell?
无论如何,我可以让公式查看该单元格? I can make that cell store M:M or just M, or 13. Nothing like that seems to work.
我可以使该单元格存储为M:M或仅存储M或13。类似的东西似乎都不起作用。
I could use a series of ifs, with all of the sumproduct possibilities and different columns but that doesnt look very efficient. 我可以使用一系列ifs,包括所有sumproduct可能性和不同的列,但看起来效率不高。
Thank you for your time! 感谢您的时间!
签出OFFSET
然后将列参数设置为“一个单元格”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.