Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Example of COUNTIFS with variable table column in Excel
  • How To Filter Data in Excel
  • How to add Trendline to a chart in Excel
  • Excel Frequency Function Example
  • Conditional Formatting New Rule with Formulas in Excel

References

  • How to create dynamic named range with OFFSET in Excel
  • How to get first column number in range in Excel
  • Two-column Lookup in Excel
  • How to get last column number in range in Excel
  • Convert text string to valid reference in Excel using Indirect function

Data Validations

  • Excel Data validation only dates between
  • Excel Data validation exists in list
  • Excel Data validation don’t exceed total
  • Excel Data validation must not contain
  • Excel Data validation date in specific year

Excel Data validation unique values only

by

Reject duplicate data entry in a cell range.

To allow only unique values in a given range, you can use data validation with a custom formula based on the COUNTIF function.

Formula

=COUNTIF(range,A1)<2

Note: Cell references in data validation formulas are relative to the upper left cell in the range selected when the validation rule is defined, in this case B5.

Explanation

In the example shown, the data validation applied to C5:C9 is:

=COUNTIF(emails,C5)<2

where emails is the named range C5:C9.

How this formula works

Data validation rules are triggered when a user adds or changes a cell value. In this example, we are using a formula that checks that the input doesn’t already exist in the named range “emails”:

COUNTIF(ids,B5)<2

COUNTIF returns a count of the value in C5 inside the named range emails (C5:C9). If the count is less than 2, the expression returns TRUE and validation succeeds. If not, the expression returns FALSE and validation fails.

Post navigation

Previous Post:

DECIMAL function: Description, Usage, Syntax, Examples and Explanation

Next Post:

AVERAGE function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

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

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Complete List of Excel Logical Functions, References and Examples
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel OR Function
  • IF, AND, OR and NOT Functions Examples in Excel
  • IFNA function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • DATE function: Description, Usage, Syntax, Examples and Explanation
  • Display Days in month in Excel
  • Count dates in current month in Excel
  • How to get Holiday Date from Year in Excel
  • Calculate number of hours between two times in Excel

Grouping

  • Group numbers at uneven intervals in Excel
  • Group times into 3 hour buckets in Excel
  • Running count group by n size in Excel
  • Map text to numbers in Excel
  • Map inputs to arbitrary values in Excel

General

  • Check if range contains a value not in another range in Excel
  • How to add sequential row numbers to a set of data in Excel
  • How to calculate percent of students absent in Excel
  • Using Existing Templates in Excel
  • How to Delete Cells, Row and Rows in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning