

Still need some help with Excel formatting or have other questions about Excel? Connect with a live Excel expert here for some 1 on 1 help. This will show the distinct count 7 in cell B11. In the Summarize Values By tab, go to Summarize Value field by and set it to Distinct Count. Drag the Product ID field to Rows, Names field to Values in the PivotTable Fields.In the dialog box that pops up, check New Worksheet and Add this to the Data Model.To count the distinct items using a pivot table: To find the distinct count of the bike names from the previous example: You can also count distinct values in Excel using a pivot table. Like the first example, this counts the distinct values, but the ISTEXT function makes sure only the text values are taken into count.Ĭount Distinct Values using a Pivot Table Returns the count of distinct text values in a range. Here the COUNTIF formula counts the number of times each value in the range appears. The syntax for this combined formula is = SUM(IF(1/COUNTIF(data, data)=1,1,0)). You can use the combination of the SUM and COUNTIF functions to count unique values in Excel. The tables below show the unique and distinct values in this list. The distinct values are all the different values in the list. The unique values are the ones that appear only once in the list, without any duplications.

In this example, you have a list of numbers ranging from 1-6. How to Count Unique and Distinct Values in Excel In this tutorial, you will see a few techniques to count unique and distinct values in Excel. Though this may be required in many cases, Excel does not have any pre-defined formula to count unique and distinct values. Working with large data sets, we often require the count of unique and distinct values in Excel.
