用数据透视表如何分析各班各分数层的人数,好心人帮帮忙了
时间:2011-08-10
来源:互联网
应该是说总分在410以下,410以上,420以上,430以上,440以上,450以上,460以上,470以上,480以上,490以上,500以上,510以上,520以上,530以上,540以上,560以上,570以上,580以上,590以上,600以上分数层的各班人数各是多少,用数据透视表来分析!谢谢
Book1.rar(77.75 KB)
附件

2011-8-10 18:53, 下载次数: 6
作者: wenyuan8 发布时间: 2011-08-10
等于分界线的分数归属?比如某学生刚好410分,归哪
我搞了一个,你看看行不行,不含分界线上的分数
SQL:select "<410",班别,sum(iif(总分<410,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">410",班别,sum(iif(总分>410,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">420",班别,sum(iif(总分>420,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">430",班别,sum(iif(总分>430,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">440",班别,sum(iif(总分>440,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">450",班别,sum(iif(总分>450,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">460",班别,sum(iif(总分>460,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">470",班别,sum(iif(总分>470,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">480",班别,sum(iif(总分>480,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">490",班别,sum(iif(总分>490,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">500",班别,sum(iif(总分>500,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">510",班别,sum(iif(总分>510,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">520",班别,sum(iif(总分>520,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">530",班别,sum(iif(总分>530,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">540",班别,sum(iif(总分>540,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">550",班别,sum(iif(总分>550,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">560",班别,sum(iif(总分>560,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">570",班别,sum(iif(总分>570,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">580",班别,sum(iif(总分>580,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">590",班别,sum(iif(总分>590,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">600",班别,sum(iif(总分>600,1,0)) as 人数 from [Sheet1$] group by 班别
另外,你这个分级,比如410分以上,与420分以上,两个,前者包不包含后者(理论上,410分以上包含420分以上,如果不包含就要特别说明)
[ 本帖最后由 handsomcao 于 2011-8-10 20:05 编辑 ]
Book1.rar(88.58 KB)
我搞了一个,你看看行不行,不含分界线上的分数
SQL:select "<410",班别,sum(iif(总分<410,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">410",班别,sum(iif(总分>410,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">420",班别,sum(iif(总分>420,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">430",班别,sum(iif(总分>430,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">440",班别,sum(iif(总分>440,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">450",班别,sum(iif(总分>450,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">460",班别,sum(iif(总分>460,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">470",班别,sum(iif(总分>470,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">480",班别,sum(iif(总分>480,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">490",班别,sum(iif(总分>490,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">500",班别,sum(iif(总分>500,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">510",班别,sum(iif(总分>510,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">520",班别,sum(iif(总分>520,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">530",班别,sum(iif(总分>530,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">540",班别,sum(iif(总分>540,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">550",班别,sum(iif(总分>550,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">560",班别,sum(iif(总分>560,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">570",班别,sum(iif(总分>570,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">580",班别,sum(iif(总分>580,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">590",班别,sum(iif(总分>590,1,0)) as 人数 from [Sheet1$] group by 班别 union all select ">600",班别,sum(iif(总分>600,1,0)) as 人数 from [Sheet1$] group by 班别
另外,你这个分级,比如410分以上,与420分以上,两个,前者包不包含后者(理论上,410分以上包含420分以上,如果不包含就要特别说明)
[ 本帖最后由 handsomcao 于 2011-8-10 20:05 编辑 ]
附件

2011-8-10 19:56, 下载次数: 1
作者: handsomcao 发布时间: 2011-08-10
这样行不行:
Book1.rar (135.81 KB)

作者: b12b3bb 发布时间: 2011-08-10
先用函数分了等级,这样子?
Book1.rar (155.86 KB)
好像有 问题,等着看别人的吧………………
[ 本帖最后由 琴琴1122 于 2011-8-10 20:08 编辑 ]

好像有 问题,等着看别人的吧………………
[ 本帖最后由 琴琴1122 于 2011-8-10 20:08 编辑 ]
作者: 琴琴1122 发布时间: 2011-08-10
我搞了一个,附件看2楼,你条件没说清,SQL可以实现,你看了之后,提出要求,我修改
作者: handsomcao 发布时间: 2011-08-10
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28