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

Data Analysis

  • Randomize/ Shuffle List in Excel
  • Chart Axes in Excel
  • How to do a t-Test in Excel?
  • Get column index in Excel Table
  • How To Create Frequency Distribution in Excel

References

  • How to use Excel LOOKUP Function
  • Extract all partial matches in Excel
  • How to use Excel VLOOKUP Function
  • Basic INDEX MATCH approximate in Excel
  • How to use Excel OFFSET function

Data Validations

  • Data validation must not exist in list
  • Excel Data validation only dates between
  • Prevent invalid data entering in specific cells
  • Excel Data validation allow uppercase only
  • Excel Data validation allow weekday only

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

  • Excel If, Nested If, And/Or Criteria Examples
  • How to use Excel XOR Function
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • Nested IF function example in Excel
  • TRUE function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • List holidays between two dates in Excel
  • EOMONTH function: Description, Usage, Syntax, Examples and Explanation
  • Convert date to month and year in Excel
  • DAY function: Description, Usage, Syntax, Examples and Explanation
  • How to determine year is a leap year in Excel

Grouping

  • Group numbers with VLOOKUP in Excel
  • Map text to numbers in Excel
  • Group arbitrary text values in Excel
  • Group times into 3 hour buckets in Excel
  • How to randomly assign people to groups in Excel

General

  • List worksheet index numbers in Excel
  • Excel Autofill Cell Ranges, Copy, Paste
  • How to choose page/paper size in Excel before Printing
  • Cell References: Relative, Absolute and Mixed Referencing Examples
  • How to generate random times at specific intervals in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning