Expert tip: Calculate the number of unique values in Excel

So far, it has been tricky to calculate the number of unique values in a range in Excel. You can do it using array formulas, but in Excel 2013 there’s an easier way.<o_p>
In PivotTables, you can now calculate Distinct Count.<o_p>
In the example above, we don’t just want to calculate how many products each manufacturer has in a list, but also the number of different product categories.<o_p>
To get the Distinct Count option in the list of calculation types, two conditions must be met.<o_p>
1. The list of values must be defined as an Excel table. <o_p>
Place the cursor in the list and choose Table from the Insert tab.<o_p>
2. The PivotTable must be part of a data model. <o_p>
When you select PivotTable from the Insert tab to create your report, tick the box Add this data to the Data Model.<o_p>

You can now right-click a calculation in your PivotTable and choose Summarize Values By…, More Options, and select Distinct Count.<o_p>

Anna-Karin Petrusson runs courses in most areas of Microsoft Office, and you’ll of course find these courses on Informator’s training hub for end-user courses.

See all of Informator’s end-user application training.