在工作表中突出显示第二实例重复项 [英] Highlight 2nd Instance duplicates in sheets
问题描述
尝试在Google表格上标记重复项,但是我发现使用
Trying to mark duplicates on google sheets, but I see that First Instance is highlighted when I use
=COUNTIF(A1:A100, A1)>1.
我试图同时使用IF和COUNTIF,以便突出显示第二个实例.
I tried to use IF and COUNTIF together so that the 2nd Instance gets highlighted.
=IF(COUNTIF(A1:A97,A1)>1, "Duplicate", " ")
但没有用.
我正在尝试使用此功能,以便在我在列中输入重复的数字时,该单元格立即突出显示.
I am trying to use this so that the cell gets highlighted as soon as I enter the duplicate number in the column.
推荐答案
要突出显示工作表中的第二个实例副本,请使用COUNTIF 选择ColumnA并选择:格式>条件格式..,格式化单元格,如果... 自定义公式为并应用:
To Highlight 2nd Instance duplicates in sheets
with COUNTIF select ColumnA and: Format > Conditional formatting..., Format cells if... Custom formula is and apply:
=and(countif(A$1:A,A1)>1,countif(A$1:A1,A1)>1)
突出显示选择项,并完成.
第二个实例的格式不应仅为 ,而是第一个实例的格式除外.
Should format not only the second instance but all other than the first.
这篇关于在工作表中突出显示第二实例重复项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!