[英]Excel formula - column changes based on result of another column
I would like to know how to change the column of a formula based on the result of another formula:我想知道如何根据另一个公式的结果更改公式的列:
I have two columns:我有两列:
Column Letter专栏信 | Transaction Count交易计数 |
---|---|
A一个 | =countif(sheet1:$A$1,$$5, "Apple") =countif(sheet1:$A$1,$$5, "苹果") |
B乙 | =countif(sheet1:$B$1,$B$5, "Apple") =countif(sheet1:$B$1,$B$5, "苹果") |
C C | |
... ... | |
DY DY |
As opposed to having to copying the present formula and changing the range manually, is there a formula so that I can quickly populate C to DY?与必须复制当前公式并手动更改范围相反,是否有一个公式可以让我快速将 C 填充到 DY? Thank you for your help.谢谢您的帮助。
One way would be to use INDIRECT.一种方法是使用 INDIRECT。
=COUNTIF(INDIRECT(SUBSTITUTE("Sheet1:$#$1,$#$5", "#", A1)), "Apple") =COUNTIF(INDIRECT(SUBSTITUTE("Sheet1:$#$1,$#$5", "#", A1)), "Apple")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.