在Excel中的键,值对中查找键存在不同值的键

问题描述 投票:-1回答:1

例如,有一个键值对

X 1
Y 2
Z 3
W 1
Z 3
Y 1
X 2

我想要CF for X,Y因为存在不同的值。不是W,Z。

excel key-value conditional-formatting
1个回答
1
投票

使用COUNTIFS()

=COUNTIFS($A:$A,$A1,$B:$B,"<>" & $B1)>0

enter image description here


如果在同一列中:

=COUNTIFS($E:$E,"<>" & $E1,$E:$E,LEFT($E1,FIND(" ",$E1)) & "*")>0

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.