仅当 excel 相邻时突出显示重复数字 20
Highlighting Duplicate number 20 in excel only when they are adjacent
我有一个 Excel 2013 列,我需要在其中突出显示重复编号 20
但只有当它们彼此相邻时:
211
20<-- this should be highlighted
20<-- this should be highlighted
52
20<-- this should be highlighted
20<-- this should be highlighted
20<-- this should be highlighted
925
8745
20 <-- this should not be highlighted
33
我尝试了条件格式,但它不起作用。
欢迎提出任何建议
使用这个公式:
=AND(A2=20,OR(A1=20,A3=20))
- Select 所有你想要规则的单元格
- 单击
Conditional Formatting
下的 New Rule
- 在公式框中输入公式(见截图)
我有一个 Excel 2013 列,我需要在其中突出显示重复编号 20 但只有当它们彼此相邻时:
211
20<-- this should be highlighted
20<-- this should be highlighted
52
20<-- this should be highlighted
20<-- this should be highlighted
20<-- this should be highlighted
925
8745
20 <-- this should not be highlighted
33
我尝试了条件格式,但它不起作用。
欢迎提出任何建议
使用这个公式:
=AND(A2=20,OR(A1=20,A3=20))
- Select 所有你想要规则的单元格
- 单击
Conditional Formatting
下的 - 在公式框中输入公式(见截图)
New Rule