我有很多这一行来写每个单元格的更改。我想知道是否有更快的写作方式(考虑到5个不同的单元需要10个AND语句)
=NOT(OR(AND(H16 = "Yes", H12 = "Yes"), AND(H16 = "Yes", H13 = "Yes"),
AND(H16 = "Yes", H14 = "Yes"), AND(H16 = "Yes", H15 = "Yes"),
AND(H15 = "Yes", H12 = "Yes"), AND(H15 = "Yes", H13 = "Yes"),
AND(H15="Yes", H14="Yes"), AND(H14="Yes", H12="Yes"), AND(H14="Yes", H13="Yes"),
AND(H13="Yes", H12="Yes")))
由于
答案 0 :(得分:0)
您的情况似乎是
not(or( and(c16, or( c15,c14,c13,c12)),
and(c15, or( c14,c13,c12)),
and(c14, or( c13,c12)),
and(c13, c12 )
)
其中 c16 代表H16="Yes"
等等。
并且它意味着"不是(至少2个Hxx包含是)",即"最多一个Hxx包含是"。