Change color of text or cell if the value entered is same [Closed]

Report
-
Posts
1927
Registration date
Monday August 16, 2010
Status
Contributor
Last seen
June 17, 2021
-
Hi! Can someone please share me how to change font or cell color if a value entered in a cell is already selected before.

Ex. I wanted the font or cell become red if the name "Peter" already exists in a column. So that I would know that the entry already exists or was doubled.

Thank you so much.

1 reply

Posts
1927
Registration date
Monday August 16, 2010
Status
Contributor
Last seen
June 17, 2021
143
Mark, Good morning.

Suppose your data is at A1:A10

Try to use:

Select A1:A10

Conditional Formating:
Formula:
=COUNTIF($A$1:$A$10,A1)>1

Choose the color RED for FILL COLOR.

Please, tell us if it worked for you.
I hope it helps.
--
Belo Horizonte, Brasil.
Marcílio Lobão

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!