按特定顺序排列小计 [英] Arranging subtotals in a particular order

查看:71
本文介绍了按特定顺序排列小计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

子类

class

分区

部分

压痕

已回复

总计

女性

总计

女性

总计

女性

默认

01117

0111

011

01

A

1

1

8

3

8

3

0

0

0

01211

0121

012

01

A

2

2

214

20

215

21

1

1

0

01224

0122

012

01

A

1

1

9

0

9

0

0

0

0

01403

0140

014

01

A

2

2

28

4

28

4

0

0

0

05001

0500

050

05

B

1

1

78

12

78

12

0

0

0

05005

0500

050

05

B

1

1

92

9

92

9

0

0

0

数据收集为sections.within sections,我们有group,division,class和sub-类。

我必须在Sections中到达小计。首先,我必须对每个更改进行小计子类并粘贴到第二张表格中。然后
i必须为Class中的每个更改获取小计。然后我以相同的方式继续分组,组的子总数以及最后的部分。

下面给出了两个部分的样本第二张。我必须生成21个部分。是,"A"到"U"。

我想要一个宏来做它。

压痕

响应

总计

女性

总计

女性

总计

女性

01117

1

1

8

3

8

3

0

0

0

0111

1

1

8

3

8

3

0

0

0

011

1

1

8

3

8

3

0

0

0

01211

2

2

214

20

215

21

1

1

0

0121

2

2

214

20

215

21

1

1

0

01224

1

1

9

0

9

0

0

0

0

0122

1

1

9

0

9

0

0

0

0

012

3

3

223

20

224

21

1

1

0

01403

2

2

28

4

28

4

0

0

0

0140

2

2

28

4

28

4

0

0

0

014

2

2

28

4

28

4

0

0

0

01

6

6

259

27

260

28

1

1

0

A

8

8

429

48

430

49

1

1

0

05001

1

1

78

12

78

12

0

0

0

05005

1

1

92

9

92

9

0

0

0

0500

2

2

170

21

170

21

0

0

0

050

2

2

170

21

170

21

0

0

0

05

2

2

170

21

170

21

0

0

0

B

1

1

2

0

2

0

0

0

0

Ravichandran 

ஜெ.இரவிச்சந்திரன்

ஜெ.இரவிச்சந்திரன்

推荐答案

Why not use Vlookup
function? Writing a macro may be complex.

Why not use Vlookup function? Writing a macro may be complex.

You can just copy column sub class to the first line in the new sheet and then copy all column class, division, group and section to the first column behind the
sub class as below.

You can just copy column sub class to the first line in the new sheet and then copy all column class, division, group and section to the first column behind the sub class as below.

01117

01211

01224

0111

0121

0122

011

012

012

01

01

01

Then you can remove the duplicate value in the first column.

Then you can remove the duplicate value in the first column.

01117

01211
$b$ b 01224

0111

0121

0122

011

012

01

01117
01211
01224
0111
0121
0122
011
012
01

Then use Vlookup function to fill the column address, responded, total......

Then use Vlookup function to fill the column address, responded, total......


这篇关于按特定顺序排列小计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆