Counting unique values in pivot table

In this lesson, you will teach yourself how to do counting only distinct values in pivot table. Do you think it is difficult? You will be suprised.

How to add unique values in pivot table?

In Microsoft Excel, you can count the number of unique values in a pivot table using the following steps:

1. Once the data is entered into Excel sheet, select the data then go to Insert -> Pivot Table. A dialogue window will appear.

create insert pivot table

2. Select Existing sheet and enter the Location where you want to create the pivot table. Then check the add this value to the Data Model option and click ok.

existing worksheet

How to count unique values in pivot table?

3. A pivot table field's pane will appear on the right. Then in the PivotTable Fields pane, drag the fields to lower boxes which are filter, column, rows, and sum of values as per your requirment. Then click the drop down list from Values, select Value Field Settings. A dialogue window will appear.

Value Field Settings Distinct Count

4. In this dialogue, select the tab Summarize Values By and scroll down. Then select Distinct Count. Then click ok. You will see a pivot table which will count only distinct values.

distinct count

Another way to count unique values in a pivot table is to use the "COUNTIF" function in a calculated field. To do this, you will need to create a calculated field in the pivot table and then use the "COUNTIF" function to count the number of unique values in the calculated field.