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

Data Analysis

  • How To Perform and Interpret Regression Analysis in Excel
  • Conflicting Multiple Conditional Formatting Rules in Excel
  • How to add Trendline to a chart in Excel
  • How to create running total in an Excel Table
  • How to sum a total in multiple Excel tables

References

  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • Approximate match with multiple criteria in Excel
  • Multi-criteria lookup and transpose in Excel
  • How to use Excel FORMULATEXT function
  • How to calculate two-way lookup VLOOKUP in Excel Table

Data Validations

  • Excel Data validation must contain specific text
  • Excel Data validation must begin with
  • Excel Data validation whole percentage only
  • Excel Data validation must not contain
  • Excel Data validation date in next 30 days

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

  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • Check multiple cells are equal in Excel
  • Not Equal To ‘<>‘ operator in Excel
  • Complete List of Excel Logical Functions, References and Examples

Date Time

  • TODAY function: Description, Usage, Syntax, Examples and Explanation
  • Get last weekday in month in Excel
  • Convert time to time zone in Excel
  • Get days between dates in Excel
  • Display Days in month in Excel

Grouping

  • Map inputs to arbitrary values in Excel
  • Group numbers with VLOOKUP in Excel
  • Running count group by n size in Excel
  • If cell contains one of many things in Excel
  • How to randomly assign data to groups in Excel

General

  • How to password protect excel sheet?
  • Convert column number to letter in Excel
  • Count cells that do not contain many strings in Excel
  • How to add sequential row numbers to a set of data in Excel
  • Mark Workbook as Final in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning