简体   繁体   English

根据一列中的重复项在Excel中设置行格式

[英]Formatting rows in Excel based on duplicates in one column

Is it possible in Excel to apply a formatting (eg mark the whole row red) based on duplicates in one column? 在Excel中是否可以根据一列中的重复项应用格式设置(例如,将整个行标记为红色)? So far I was able to mark the whole column that needs to be looked for duplicates and mark all duplicates in specific way. 到目前为止,我已经能够标记需要查找重复项的整个列,并以特定方式标记所有重复项。 But how can I apply this formatting also to each row of the duplicate in that column? 但是如何将这种格式也应用于该列中重复项的每一行?

I think what you want is to select the entire sheet and apply a CF formula rule of this kind: 我认为您想要选择整个工作表并应用这种CF公式规则:

=COUNTIF($B:$B,$B1)>1

格式化示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM