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

Data Analysis

  • Chart Axes in Excel
  • Working With Tables in Excel
  • Conditional Formatting Icon Sets Examples in Excel
  • How to add Trendline to a chart in Excel
  • Add Outline to Data in Excel

References

  • Create hyperlink with VLOOKUP in Excel
  • Multi-criteria lookup and transpose in Excel
  • Vlookup Examples in Excel
  • Convert text string to valid reference in Excel using Indirect function
  • Complete List of Excel Lookup and Reference Functions, References and Examples

Data Validations

  • Excel Data validation allow uppercase only
  • Excel Data validation specific characters only
  • Excel Data validation unique values only
  • Excel Data validation no punctuation
  • Excel Data validation exists in list

Count Unique Values in Excel

by

This example shows you how to create an array formula that counts unique values.

Examples:

1.. To count the number of 5’s, use the following function.

We use the COUNTIF function.

 2. To count the unique values (don’t be overwhelmed), we add the SUM function, 1/, and replace 5 with A1:A6.

3. Finish by pressing CTRL + SHIFT + ENTER.

Note: The formula bar indicates that this is an array formula by enclosing it in curly braces {}. Do not type these yourself. They will disappear when you edit the formula.

Explanation: The range (array constant) created by the COUNTIF function is stored in Excel’s memory, not in a range. The array constant looks as follows:

{3;1;1;1;3;3} – (three 7’s, one sun, one moon, one 5, three 7’s, three 7’s)

This reduces to:
{1/3;1/1;1/1;1/1;1/3;1/3}

This array constant is used as an argument for the SUM function, giving a result of 1/3+1+1+1+1/3+1/3 = 4.

Post navigation

Previous Post:

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

Next Post:

Excel Data validation require unique number

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
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • Excel If, Nested If, And/Or Criteria Examples
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Series of dates by day
  • Get work hours between dates in Excel
  • Calculate expiration date in Excel
  • Get fiscal year from date in Excel
  • Calculate retirement date in Excel

Grouping

  • If cell contains one of many things in Excel
  • Categorize text with keywords in Excel
  • Group times into 3 hour buckets in Excel
  • Map text to numbers in Excel
  • Group times into unequal buckets in Excel

General

  • 44 Practical Excel IF function Examples
  • Select, Insert, Rename, Move, Delete Worksheets in Excel
  • Check if multiple cells have same value in Excel
  • How to set or clear a print area in Excel Worksheet
  • Find, Trace and Correct Errors in Excel Formulas using ‘Formula Auditing’
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning