Prevent Duplicate Entries in Microsoft Excel

Prevent Duplicate Entries in Microsoft Excel

This post explains how you can prevent of duplicate entries in Microsoft Excel and how it can be used to avoid redundancy of data in the worksheet.

How to Prevent Duplicate Entries in Microsoft Excel ?

In Microsoft Excel, you can validate data to allow unique entries and disallow duplicates using the custom data validation feature.

  • Select the range of cells that should not contain any duplicates.
  • Select Data Tab -> Data Tools -> Data Validation.
  • Click Custom from Allow section and enter the formula in the formula box.

The formula used to identify duplicates :

=COUNTIF(rangetopmost_cell)<=1

For example, if you want a unique entry of values in column A2 to A10, then create a custom rule with this data validation formula:

=COUNTIF($A$2:$A$10, A2)<=1

Prevent Duplicate Entries in Microsoft Excel

So here excel allows only unique values in the specified range and when redundancy occurs it shows an error.

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn how to Find Blank cells in excel so that you can remove or delete the blank cells form...
In this article, you’ll learn what is a Gauge Chart in Microsoft Excel. Also, you will learn how to add...
Microsoft Excel provides a shortcut for the users to move columns in excel using two different ways – using Shift...