Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • Basic INDEX MATCH approximate in Excel
  • How to get last row in mixed data with blanks in Excel
  • Excel Advanced Lookup using Index and Match Functions
  • Count rows with at least n matching values
  • How to get last column number in range in Excel

Data Analysis Examples

  • How to create Gauge Chart in Excel
  • Move chart to a separate worksheet in Excel
  • How to calculate average last N values in a table in Excel
  • Conditional Formatting Color Scales Examples in Excel
  • Conditional Formatting Rules in Excel

Data Validation Examples

  • Excel Data validation whole percentage only
  • Excel Data validation number multiple 100
  • Excel Data validation date in next 30 days
  • Excel Data validation unique values only
  • Prevent invalid data entering in specific cells

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.

Worked Example:   IF with wildcards in Excel

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.

Worked Example:   Count unique values in a range with COUNTIF in Excel

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:

Worked Example:   IF with boolean logic in Excel

{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:

Excel Standard Deviation

Next Post:

How To Multiply Numbers in Excel

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
  • Split dimensions into three parts in Excel
  • How to create email address with name and domain in Excel
  • FIXED function: Description, Usage, Syntax, Examples and Explanation
  • SUBSTITUTE function vs REPLACE function in Excel
  • How to strip non-numeric characters in Excel
  • Series of dates by day
  • How to calculate next scheduled event in Excel
  • EOMONTH function: Description, Usage, Syntax, Examples and Explanation
  • How to determine year is a leap year in Excel
  • Basic Overtime Calculation Formula in Excel
  • ODDLYIELD function: Description, Usage, Syntax, Examples and Explanation
  • ACCRINT function: Description, Usage, Syntax, Examples and Explanation
  • Calculate periods for annuity in Excel
  • Calculate payment periods for loan in Excel
  • DDB function: Description, Usage, Syntax, Examples and Explanation
© 2022 xlsoffice . All Right Reserved. | Teal Smiles