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

Data Analysis

  • How to Create Area Chart in Excel
  • Conditional Formatting New Rule with Formulas in Excel
  • How To Create Frequency Distribution in Excel
  • How To Insert and Customize Sparklines in Excel
  • How to add Trendline to a chart in Excel

References

  • How to use Excel LOOKUP Function
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • Count rows with at least n matching values
  • How to retrieve first match between two ranges in Excel
  • Vlookup Examples in Excel

Data Validations

  • Excel Data validation with conditional list
  • Prevent invalid data entering in specific cells
  • Data validation must not exist in list
  • Excel Data validation must not contain
  • Excel Data validation unique values 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

  • SWITCH function example in Excel
  • How to return blank in place of #DIV/0! error in Excel
  • How to use IFS function in Excel
  • Return blank if in Excel
  • Complete List of Excel Logical Functions, References and Examples

Date Time

  • How to calculate next anniversary date or birthday in Excel
  • Get fiscal quarter from date in Excel
  • How to calculate nth day of week in month in Excel
  • Get work hours between dates in Excel
  • How to calculate Quarter of Date in Excel

Grouping

  • Group arbitrary text values in Excel
  • Running count group by n size in Excel
  • Group numbers with VLOOKUP in Excel
  • Group numbers at uneven intervals in Excel
  • Map text to numbers in Excel

General

  • Basic numeric sort formula in Excel
  • Delete Blank Rows at Once in Excel
  • How to calculate percent variance in Excel
  • How to create dynamic named range with INDEX in Excel
  • Index and match on multiple columns in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning