Sum Excel Distinct Values

后端 未结 4 1608
灰色年华
灰色年华 2020-12-19 21:16

I know how to do this with MySQL, but am at a loss as to how (or even if possible) within MS Excel. I am running Excel version 14 on Windows (part of Office Professional 20

相关标签:
4条回答
  • 2020-12-19 22:04

    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.

    0 讨论(0)
  • 2020-12-19 22:09

    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.

    0 讨论(0)
  • 2020-12-19 22:14

    Here is how to achieve this using pivot table.

    I just created a 20 seconds screencast here.

    0 讨论(0)
  • 2020-12-19 22:21

    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.

    0 讨论(0)
提交回复
热议问题