» Preventing Duplicates When Entering Data
CATEGORY - Excel Text Formulas
VERSION - All Microsoft Excel Versions
Problem: We want to make it impossible to enter duplicate values in List1 (cells A2:A10).
Solution:
Use Data Validation as follows:
1. Select the range to validate (cells A2:A10)
2. Data --> Data Validation --> Settings
3. From the Allow dropdown list, select Custom.
4. Enter the following COUNTIF formula in the Formula box:
=COUNTIF($A$2:$A$10,A2)=1
5. Select the Error Alert tab.
6. In the Title box, enter "Duplicate Entry".
7. In the Error Message box, enter "The value you entered already appears in the list above."
8. Click OK.
After following this procedure, any duplicate entry will cause the error message to pop up, forcing the user to enter a different value.
Book Store:
Recommended Books:
- The South Beach Diet: The Delicious, Doctor-Designed, Foolproof Plan for Fast and Healthy Weight Loss
- Yes, You Can Time the Market!
- The Analysis and Use of Financial Statements
- Marketing Management
- The Complete Book of Business Plans: Simple Steps to Writing a Powerful Business Plan (Small Business Sourcebooks)
- The Ernst & Young Business Plan Guide
No comments have been submitted.

