2012-03-19 47 views
0

在下面的示例1100和工資中,實際上是單獨的列。我想結合所有1100個代碼並將數據彙總到一個像命名行中。並重復2100代碼,導致8行數據總結成2行數據。見下文。將來自類似命名行的數據合併爲一個加總行,省去多行

1100 SALARIES  $1,017,558 $1,001,728 $938,026 $(63,702)-6.4% 
1100 SALARIES  $237,325 $223,110 $225,622 $2,512  1.1% 
1100 SALARIES  $30,715  $35,000  $35,000  $-  0.0% 
2100 BENEFITS  $94,859  $96,378  $91,697  $(4,681) -4.9% 
2100 BENEFITS  $116,234 $138,774 $193,864 $55,090 39.7% 
2100 BENEFITS  $156,002 $155,823 $196,448 $40,625 26.1% 
2100 BENEFITS  $3,488  $3,430  $13,847  $10,418 303.8% 
2100 BENEFITS  $7,474  $7,349  $12,916  $5,567  75.8% 
3000 OTHER INSTRUCTIONAL COST  $2,865  $3,714  $3,714  $-  0.0% 
3001 PURCHASE SERVICES $-  $-  $-  $-  0.0% 
5500 PROFESSIONAL DEVELOPMENT  $2,690  $2,491  $2,367  $(124) -5.0% 
6000 MATERIALS/SUPPLIES  $19,983  $13,290  $12,625  $(665) -5.0% 
8200 EQUIPMENT ADDITIONS $3,353  $2,401  $2,281  $(120) -5.0% 

     TOTAL $1,692,546  $1,683,487  $1,728,407  $44,920 2.7% 

回答

0

這取決於您有多少類別以及它們是否經常更改。如果他們是相當穩定的,你可以使用公式,例如:

=SUMIF(A1:A8,1100,C1:C8) 

這將在C列,其中在A列中的值是1100

如果你的表是大或添加的所有號碼經常更改,您也可以使用數據透視表。