EXCEL函数:如果A列同时包含A,B,C,D,E,F,G,H,那么黄色位置上面显示正确,否则显示错误。

2024-11-13 01:18:03
推荐回答(4个)
回答1:

E2输入

=IF(SUMPRODUCT(N(COUNTIF(A2:A11,{"A","B","C","D","E","F","G","H"})>=1))=8,"正确","错误")

数组公式,先按住CTRL+SHIFT,最后回车

回答2:

=IF(AND(COUNTIF(A:A,{"A","B","C","D","E","F","G","H"})),"正确","错误")
这个是普通公式。也可用下面的公式
=IF(AND(COUNTIF(A:A,CHAR(64+ROW(1:8)))),"正确","错误")
不过这个是数组公式,需要按Ctrl+Shift+Enter结束公式输入。

回答3:

=IF(COUNT(0/MATCH(CHAR(ROW(65:72)),A:A,))=ROWS(65:72),"正确","错误")
同时按Ctrl+Shift+Enter三键输入数组公式

回答4:

破案桨倬立式扛吨