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

Data Analysis

  • How to Create Gantt Chart in Excel
  • How to sum a total in multiple Excel tables
  • How To Create Frequency Distribution in Excel
  • Number and Text Filters Examples in Excel
  • Add Outline to Data in Excel

References

  • Last row number in range
  • How to use Excel COLUMN Function
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • Basic INDEX MATCH approximate in Excel
  • How to use Excel ROW Function

Data Validations

  • Excel Data validation allow uppercase only
  • How To Create Drop-down List in Excel
  • Excel Data validation no punctuation
  • Data validation must not exist in list
  • Excel Data validation only dates between

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

  • Not Equal To ‘<>‘ operator in Excel
  • Extract multiple matches into separate rows in Excel
  • IF, AND, OR and NOT Functions Examples in Excel
  • Nested IF function example in Excel
  • How to use Excel AND Function

Date Time

  • TIME function: Description, Usage, Syntax, Examples and Explanation
  • DAYS360 function: Description, Usage, Syntax, Examples and Explanation
  • Get month name from date in Excel
  • Display Date is workday in Excel
  • Add years to date in Excel

Grouping

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

General

  • Excel Autofill Cell Ranges, Copy, Paste
  • How to generate random date between two dates in Excel
  • 231 Keyboard Shortcut Keys In Excel
  • How to Create Calendar in Excel
  • How to password protect excel sheet?
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning