Count distinct in Excel
- User
Count distinct in Excel
- Assistant
To count distinct values in Excel, you can use the "Remove Duplicates" feature or use the "COUNTIF" function with the "UNIQUE" function.
Method 1: Using "Remove Duplicates" feature
-
Select the range of cells that contains the data you want to count.
-
Click on the "Data" tab on the ribbon.
-
Click on "Remove Duplicates" in the "Data Tools" group.
-
In the "Remove Duplicates" dialog box, make sure that only the columns with the data you want to count are selected.
-
Click "OK" and Excel will remove duplicate values in the selected range.
-
The remaining number of unique values will be displayed in the "Status Bar" at the bottom of the screen.
Method 2: Using "COUNTIF" function with "UNIQUE" function
-
Select a cell where you want to display the count result.
-
Type the following formula: =COUNTIF(UNIQUE(A1:A10),"<>"&"")
-
Replace "A1:A10" with the range of cells that contains the data you want to count.
-