具有来自相关单元格的一系列标准的Excel Countif
以下作品按预期工作,并计算包含pH,v或o的范围A2:p2中的所有单元格
(countifs(a2:p2; {“ pH”;“ v”;“ v”;“ o”}))
i必须重复使用这几个地方,因此希望将标准数组放入单元格中并从那里阅读。像: = sum(countifs(a2:p2;“& a1&“”))其中cell a1包含{“ pH”;“ v”;“ o”}。
是否可以将文本从A1解析为公式?
The following works as expected and counts all the cells in the range A2:P2 that contains either PH, V or O.
=SUM(COUNTIFS(A2:P2;{"PH";"V";"O"}))
I have to reuse this several places and therefore want to place the criteria array in a cell and read it from there. Something like:
=SUM(COUNTIFS(A2:P2;"&A1&")) where cell A1 contains {"PH";"V";"O"}.
Is it possible to parse the text from A1 into the formula?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更高版
假设您使用Excel 2013或 array公式如果您没有动态阵列)
Assuming that you're using Excel 2013 or later, and that
A1
contains the textPH;V;O
the formula below should work(this will have to be entered as an array formula if you don't have dynamic arrays)