本帖最后由 hgx126 于 2016-03-04 23:43 編輯
一文本如下:
- 機(jī)構(gòu)編號(hào),商戶號(hào),姓名,金額,等級(jí)
- 5411,54117648,張斌,67,100
- 5412,60519607,胡蓉,57,60
- 5412,54119444,羅鑫,17,30
- 5412,54119445,陳延德,38,60
- 5411,54119477,楊曉榮,13,30
- 5411,54119476,鄭元兵,58,60
- 5411,54119476,鄭元兵,98,100
- 5416,54119471,羅小平,21,30
- 5416,54119470,何燕,30,60
- 5416,54119470,何燕,30,60
- 5416,54119468,羅國(guó)江,74,100
復(fù)制代碼 按機(jī)構(gòu)號(hào)分為行,等級(jí)為列,統(tǒng)計(jì)商戶號(hào)數(shù)量,金額求和,類似excel數(shù)據(jù)透視表功能,結(jié)果如下:- 機(jī)構(gòu)編號(hào),30,30,60,60,100,100,合計(jì),合計(jì)
- 機(jī)構(gòu)編號(hào),商戶號(hào)數(shù)量,金額,商戶號(hào)數(shù)量,金額,商戶號(hào)數(shù)量,金額,商戶號(hào)數(shù)量,金額
- 5411,1,13,1,58,2,165,4,236
- 5412,1,17,2,95,0,0,3,112
- 5416,1,21,2,60,1,74,4,155
- 總計(jì),3,51,5,213,3,239,11,503
復(fù)制代碼 |