UPDATE: You can do this now automatically with Excel 2013. I've created this as a new answer because my previous answer actually solves a slightly different problem.
(更新:您现在可以使用Excel 2013自动执行此操作。我已将此创建为新答案,因为我之前的答案实际上解决了一个稍微不同的问题。)
If you have that version, then select your data to create a pivot table, and when you create your table, make sure the option 'Add this data to the Data Model' tickbox is check (see below).
(如果您有该版本,则选择您的数据以创建数据透视表,并在创建表时,确保选中“将此数据添加到数据模型”复选框(见下文)。)
Then, when your pivot table opens, create your rows, columns and values normally.
(然后,当您的数据透视表打开时,通常会创建行,列和值。)
Then click the field you want to calculate the distinct count of and edit the Field Value Settings: (然后单击要计算其不同计数的字段并编辑“字段值设置”:)
Finally, scroll down to the very last option and choose 'Distinct Count.'
(最后,向下滚动到最后一个选项,然后选择“Distinct Count”。)
This should update your pivot table values to show the data you're looking for.
(这应该更新您的数据透视表值以显示您正在查找的数据。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…