The COUNTIF Formula to Avoid Duplicate Content in Excel.
Posted on December 12, 2007
Filed Under Excel Tips & Tricks
| New to the World of Office, XP and Vista Tips & Tricks? |
Here are a few posts the other readers recommend you check out. |
|
The next article in the category Excel Tips and Tricks isn’t a real Excel Tip or Trick. I would say it’s more a Tutorial for the advanced Excel users among us. Although it is a pretty cool Trick to know and to use.
This next Excel Tip and Trick will prevent you to enter duplicate content in your Excel spreadsheet. You’ll do this by using the COUNTIF function in your spreadsheet.
If you want to have Excel set to automatically avoid duplicate values, you need to follow the next steps.
-
Select the cells A1:A10
-
Go to the Data Menu
-
Click on the Data Validation menu (this isn’t necessary in Excel 2003)
-
And select Data Validation

-
Now select in the Data Validation window the settings tab
-
And select Custom
-
And enter the following Excel formula =COUNTIF($A:$A;A1)=1

Now for the fun part go to the Error Alert tab. You have the ability to customize your warning message. You just have to play around with this. As you can see you have several pictures and options like a customize title and/or error message.

Now click OK and you’re done. Now when you enter duplicate content in one of the select fields you’ll see your error message.



If you liked this article or you thought it was helpful then you would do us a real big favour by hitting one of the below icons. Thank you!! That’s really cool and we really appreciate your support.
Comments
2 Responses to “The COUNTIF Formula to Avoid Duplicate Content in Excel.”
Leave a Reply





































Very usefull tricks. As a suggestion: would’nt you classify them in a sort of complexity levels (say three) beginner, normal and advanced users tips?
Thanks
Hi Ricardo,
That’s a very good suggestion. I have been thinking about this but I’m not quite sure how to set-up the ranking and how to integrate it into the blog. Not only has it to be a useful ranking, fully integrated in my blog and archives but it also has to look good.
But it’s for sure something to think about. Thanks for your suggestion, I appreciated.
Cheers