auto sum for the same types

I need a quick an simple excel formula to get the sum of values for different types of objects as listed below:

Type1  10 
Type1  10 
Type1  10 
Type2  10 
Type2  10 
Type2  10 
Type2  10 
Type3  10 
Type3  10 

Number of items and number of types are unknown (long list), in a different worksheet I would like to get sum of types like:

Sumof Type1: 30
Sumof Type2: 40
Sumof Type3: 20

I need no VBA, just simple excel formula please..

BR


我认为sumif是你正在寻找的


Use a pivot table for this.

  • Add a header row to your data ("data type", "value")
  • Select your data
  • Insert pivot table
  • Drag "data type"-header to the Row Labels area
  • Drag "value"-header to the Values area
  • Make sure it says "Sum of value" and not "Count of value" in the Values area, if not you need to double-click it and change to use sum.
  • You could also use the "Add subtotals" feature for this, but pivot tables are more flexible and powerful.


      A        B
    

    1 Type1 10

    2 Type2 10

    3 Type2 10

    4 Type1 10

    =Sumif(A1:A4,"=Type1",B1:B4)

    链接地址: http://www.djcxy.com/p/60780.html

    上一篇: Excel中其他地方指定的公式

    下一篇: 自动求和为相同的类型