Have any question?
(+91) 9899366218
info@nurturetechacademy.in
Register Login
No apps configured. Please contact your administrator.

Login with your site account

Lost your password?

Not a member yet? Register now

Nurture Tech Academy Nurture Tech Academy
  • Excel Course
  • Corporate Training
  • Portfolio
  • Blog
  • Excel Assessment
  • Contact
    • Cart

      0
  • Excel Course
  • Corporate Training
  • Portfolio
  • Blog
  • Excel Assessment
  • Contact

Blog Excel

  • Home
  • Excel
  • How to Prevent duplicate values in a range

How to Prevent duplicate values in a range

  • Posted by Lokesh Lalwani
  • Categories Excel
  • Date July 20, 2016
  • Comments 0 comment

How to Prevent Duplicate values through Data Validation

 

In this post we will see how we can prevent/stop any range to accept any duplicate values. We all know the power of Data Validation. We can do a lot of stuff through Data validation e.g. we can restrict cells to accept any number of any specific digits, we can assign any specific text length which can be accepted by a particular range, we can create a drop-down list in a cell etc….

Now, to prevent any duplicate values we’ll again knock the door of Data Validation.

Let’s take an example; here we want to enter some employee’s data of a company. The first thing which we need to put in is Employee ID. As we know that Employee ID is unique in nature i.e. a unique Employee ID is assigned to each employee.

 

1

 

Step1:   Select the range of cells on which we need to apply the data validation.

 

2

 

Step2:   Go to Data Tab -> Data Validation.

 

3

 

Step3:   A Data Validation dialog box will appear. In this box under the settings tab -> Allow: -> Custom.

 

4

 

Step4:   When we choose custom, just below that we have a Formula input box. Here we will use Countif formula. (Let me just take few words to explain this formula to those who don’t use it, here countif will keep a check on the number of times an entry is coming. If any entry repeats more then once, a message box will appear to show the error). The formula will be written as =COUNTIF($A$2:$A$12,A2)=1

 

5

 

Step5:   Now if we just press OK then Data validation will be applied and while entering Employee IDs, if the user put any Employee ID twice he/she will get a default message from Excel but if we want to edit this message as per our requirement, we can go to Error alert tab in Data validation Dialog box.

 

6

 

Step6:   Here we can edit the Title of the message in Title box and Error message in Error Message box.

 

7

 

Step7:   Now press OK.

 

8

You can download the Excel file used for this post here…..

 

432 total views, 3 views today

Tag:Advanced Excel, Data Validation, Duplicate Values, Excel

  • Tweet
  • Pinterest
Lokesh Lalwani
    Hey there, I am Lokesh Lalwani. I just love Excel and that is why i am here. We founded Nurture Tech Academy with only one goal in mind to make you SUPERHERO in Excel, Yes and that's true. Here at Nurture Tech Academy we work all day and make some impressive Excel Videos, Blog Posts and other stuff just to take you one step closer to become a Smart Excel user.

    Previous post

    How to Create a Dependent drop down list
    July 20, 2016

    Next post

    Magic of IFERROR in Excel……
    20 September, 2016

    You may also like

    • Heat Map Chart through Radio Button in Excel
      27 December, 2018
    • How to Create a Histogram Chart in Excel
      22 November, 2018
    • Count Functions in MS Excel
      12 November, 2018

    Leave A Reply Cancel reply

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

    Join our Newsletter

    Latest Courses

    Excel – Beginner to Advanced (In-depth)

    Excel – Beginner to Advanced (In-depth)

    ₹5,990.00

    logo-eduma-the-best-lms-wordpress-theme

    (+91) 9899 366 218

    info@nurturetechacademy.in

    Other

    • Blog
    • Corporate Training
    • Portfolio
    • Contact

    Learn MS Excel

    Microsoft Excel Learning
    Learn MS Excel Online

    Corporate Training

    Online Corporate Training Programs
    Corporate Training Companies in Delhi

    Online Training

    MS Excel Training Courses
    MS Excel Online Training
    MS Excel Course Online Training
    MS Excel Online Training in Delhi
    Join our Newsletter
    Why Wait? Start with our awesome Excel updates for free....