Sum Excel Distinct Values

橙三吉。 提交于 2019-11-29 12:03:30

Here is how to achieve this using pivot table.

I just created a 20 seconds screencast here.

In column C use the SUMIF() Function like this:

=SUMIF(A:A,$A2,B:B)

This would give the total for every Phone#. I understand the benefits of the previous answers, but depending on the users needs this might be what is being sought.

I'd go with a pivot table for this. Select your data (with headings) and click the Pivot Table button on the Insert ribbon. Use the "number" field for row labels box and "duration" for the values.

I found something under the "Data" Tab in the "Outline" section called "Subtotal" which has done it. I just highlighted my two columns, and clicked "Subtotal" and it created group subtotals auto-magically.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!