Try this:
- Select the whole column
- Click Format
- Click Conditional formatting
- Click Add another rule (or edit the existing/default one)
- Set Format cells if to:
Custom formula is
- Set value to:
=countif(A:A,A1)>1
(or change A
to your chosen column)
- Set the formatting style.
- Ensure the range applies to your column (e.g.,
A1:A100
).
- Click Done
Anything written in the A1:A100 cells will be checked, and if there is a duplicate (occurs more than once) then it'll be coloured.
For locales using comma (,
) as a decimal separator, the argument separator is most likely a semi-colon (;
). That is, try: =countif(A:A;A1)>1
, instead.
For multiple columns, use countifs
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…