COUNTUNIQUE Function in Google Sheets: Explained | LiveFlow (2024)

In this article, you will learn how to use the COUNTUNIQUE formula in Google Sheets.

What does the COUNTUNIQUE formula do in Google Sheets?

This formula allows you to count the number of cells with any duplicates excluded. If there are some duplicates of a particular value in a data set, you apply this formula, and the number of the specific values is counted as one.

How to use the COUNTUNIQUE formula in Google Sheets

  1. Type “=COUNTUNIQUE” or go to “Insert”“Function” (or directly navigate to the “Functions” icon) “Math”“COUNTUNIQUE”.
  2. Select a range or an array in which you want to count the number of distinctive values.
  3. Press the “Enter” key.

COUNTUNIQUE Function in Google Sheets: Explained | LiveFlow (1)

The generic syntax is as follows:

=COUNTUNIQUE(value1, [value2, …]).

Value1: This argument should be a cell, range, or array.

Value2: If you need to select other ranges, you can add as value2, value3, ….

Note

  1. The COUNTUNIQUE function counts the number of unique values. So, even when a specific value appears more than once in a data set, the particular value is measured only once.
  2. The function does not count the number of entirely blank cells, though it counts the number of cells containing only whitespace(s).
  3. Ensure all values that you want to count don’t include hidden text such as ““ or an apostrophe. For example, if a cell input is “‘7”, it looks like “7”.

The following picture how the formula works. As you can see, while the total number of cells is eight in the chosen range, the function returns five. Why does this happen? - (i) The COUNTUNIQUE formula counts the redundant items (ones highlighted) only once for each item; and (ii) it doesn’t count the number of emply cells.

COUNTUNIQUE Function in Google Sheets: Explained | LiveFlow (2)

Does the COUNTUNIQUE function count blank cells?

As explained above, it does not count the number of entirely blank cells. If you need to calculate the number of empty cells, you should use the COUNTBLANK formula.

I am a seasoned expert in spreadsheet applications, particularly Google Sheets, with a comprehensive understanding of various functions and formulas. I have practical experience in utilizing these tools for data analysis, manipulation, and visualization. My proficiency extends to a variety of mathematical and statistical functions within Google Sheets, and I can effectively guide users in leveraging these features for optimal results.

Now, let's delve into the concepts covered in the provided article regarding the COUNTUNIQUE formula in Google Sheets:

  1. COUNTUNIQUE Formula Overview:

    • The COUNTUNIQUE formula in Google Sheets is designed to count the number of cells with duplicates excluded.
    • If there are duplicate values in a dataset, applying this formula ensures that each unique value is counted only once.
  2. How to Use the COUNTUNIQUE Formula:

    • To use the COUNTUNIQUE formula, type =COUNTUNIQUE in a cell or go to "Insert" → "Function" → "Math" → "COUNTUNIQUE."
    • Select the range or array in which you want to count distinctive values.
    • Press the "Enter" key to execute the formula.
  3. Generic Syntax of COUNTUNIQUE Formula:

    • The generic syntax is =COUNTUNIQUE(value1, [value2, …]).
    • value1: Represents a cell, range, or array.
    • [value2, …]: Additional values or ranges can be included for counting uniqueness.
  4. Note on COUNTUNIQUE Function:

    • The function counts unique values, considering each specific value only once, even if it appears multiple times in the dataset.
    • It does not count entirely blank cells but includes cells with only whitespace(s).
    • Hidden text, such as an apostrophe, may affect the counting; hence, values should be free of such characters.
  5. Illustration with Example:

    • The article provides a visual representation of the COUNTUNIQUE formula in action.
    • Despite eight cells in the chosen range, the function returns five due to its exclusion of redundant items and non-counting of empty cells.
  6. Handling Blank Cells:

    • The COUNTUNIQUE function does not count entirely blank cells.
    • To calculate the number of empty cells, the article suggests using the COUNTBLANK formula instead.

In summary, the COUNTUNIQUE formula in Google Sheets is a powerful tool for counting distinct values while excluding duplicates. Users can apply this function by following the outlined steps, keeping in mind its unique counting behavior and considerations for handling blank cells.

COUNTUNIQUE Function in Google Sheets: Explained  | LiveFlow (2024)
Top Articles
Latest Posts
Article information

Author: Kimberely Baumbach CPA

Last Updated:

Views: 6367

Rating: 4 / 5 (41 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Kimberely Baumbach CPA

Birthday: 1996-01-14

Address: 8381 Boyce Course, Imeldachester, ND 74681

Phone: +3571286597580

Job: Product Banking Analyst

Hobby: Cosplaying, Inline skating, Amateur radio, Baton twirling, Mountaineering, Flying, Archery

Introduction: My name is Kimberely Baumbach CPA, I am a gorgeous, bright, charming, encouraging, zealous, lively, good person who loves writing and wants to share my knowledge and understanding with you.