全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Sub 算成绩()m = InputBox(请输入年级如1、2、3、4、5、6) 记录年级Dim xx(1 To 8) As Stringxx(1) = 南村1: xx(2) = 南村2: xx(3) = 兴中: xx(4) = 东风: xx(5) = 西沟: xx(6) = 峪头: xx(7) = 普乐塬: xx(8) = 尧场Dim kmb(1 To 3) As Stringkmb(1) = 语: kmb(2) = 数: kmb(3) = 英For q = 1 To 8 Sheets(xx(q).Activate 计算成绩 n = Application.WorksheetFunction.CountA(Range(A2: A60) - 11 记录考试人数 l = Application.WorksheetFunction.Match(语文, Range(a2:e2), 0) 记录语文所在列数 ywzf = Application.WorksheetFunction.Sum(Range(Cells(3, l), Cells(n + 2, l) 语文总分 sxzf = Application.WorksheetFunction.Sum(Range(Cells(3, l + 1), Cells(n + 2, l + 1) 数学总分 ywjg = Application.WorksheetFunction.CountIf(Range(Cells(3, l), Cells(n + 2, l), 59) 语文及格人数 sxjg = Application.WorksheetFunction.CountIf(Range(Cells(3, l + 1), Cells(n + 2, l + 1), 59) 数学及格人数 ywyx = Application.WorksheetFunction.CountIf(Range(Cells(3, l), Cells(n + 2, l), 79) 语文优秀人数 sxyx = Application.WorksheetFunction.CountIf(Range(Cells(3, l + 1), Cells(n + 2, l + 1), 79) 数学优秀人数 If m 2 Then yyzf = Application.WorksheetFunction.Sum(Range(Cells(3, l + 2), Cells(n + 2, l + 2) 英语总分 yyjg = Application.WorksheetFunction.CountIf(Range(Cells(3, l + 2), Cells(n + 2, l + 2), 59) 英语及格人数 yyyx = Application.WorksheetFunction.CountIf(Range(Cells(3, l + 2), Cells(n + 2, l + 2), 79) 英语优秀人数 End If 在成绩单上输出成绩 Cells(n + 3, l) = ywzf: Cells(n + 3, l + 1) = sxzf 语文、数学总分 Cells(n + 4, l) = Round(ywzf / n, 2) 语文、数学均分 Cells(n + 4, l + 1) = Round(sxzf / n, 2) Cells(n + 5, l) = Round(Cells(n + 4, l) * 0.6, 2) 语文、数学均分折分 Cells(n + 5, l + 1) = Round(Cells(n + 4, l + 1) * 0.6, 2) Cells(n + 6, l) = ywjg: Cells(n + 6, l + 1) = sxjg 语文、数学及格人数 Cells(n + 7, l) = Round(ywjg / n * 100, 2) 语文、数学及格率 Cells(n + 7, l + 1) = Round(sxjg / n * 100, 2) Cells(n + 8, l) = Round(Cells(n + 7, l) * 0.25, 2) 语文、数学及格率折分 Cells(n + 8, l + 1) = Round(Cells(n + 7, l + 1) * 0.25, 2) Cells(n + 9, l) = ywyx: Cells(n + 9, l + 1) = sxyx 语文、数学优秀人数 Cells(n + 10, l) = Round(ywyx / n * 100, 2) 语文、数学优秀率 Cells(n + 10, l + 1) = Round(sxyx / n * 100, 2) Cells(n + 11, l) = Round(Cells(n + 10, l) * 0.15, 2) 语文、数学优秀率折分 Cells(n + 11, l + 1) = Round(Cells(n + 10, l + 1) * 0.15, 2) Cells(n + 12, l) = Cells(n + 5, l) + Cells(n + 8, l) + Cells(n + 11, l) 语文、数学积分 Cells(n + 12, l + 1) = Cells(n + 5, l + 1) + Cells(n + 8, l + 1) + Cells(n + 11, l + 1) If m 2 Then 英语科 Cells(n + 3, l + 2) = yyzf Cells(n + 4, l + 2) = Round(yyzf / n, 2) Cells(n + 5, l + 2) = Round(Cells(n + 4, l + 2) * 0.6, 2) Cells(n + 6, l + 2) = yyjg Cells(n + 7, l + 2) = Round(yyjg / n * 100, 2) Cells(n + 8, l + 2) = Round(Cells(n + 7, l + 2) * 0.25, 2) Cells(n + 9, l + 2) = yyyx Cells(n + 10, l + 2) = Round(yyyx / n * 100, 2) Cells(n + 11, l + 2) = Round(Cells(n + 10, l + 2) * 0.15, 2) Cells(n + 12, l + 2) = Cells(n + 5, l + 2) + Cells(n + 8, l + 2) + Cells(n + 11, l + 2) End If hg = 0 计算个人总分,统计合格人数 For i = 3 To n + 2 If m 59 And Cells(i, l + 1) 59 And Cells(i, l + 2) 59 Then hg = hg + 1 Else Cells(i, l + 3) = Round(Cells(i, l) + Cells(i, l + 1) + Cells(i, l + 2), 0) If Cells(i, l) 59 And Cells(i, l + 1) 59 And Cells(i, l + 2) 59 Then hg = hg + 1 End If Next i If m 3 Then Cells(n + 6, l + 2) = hg Else Cells(n + 6, l + 3) = hg End If If m 3 Then 单科成绩汇总 km = 2 Else km = 3 End If For gl = 1 To km Sheets(kmb(gl).Activate kml = Application.WorksheetFunction.Match(xx(q), Range(a2:j2), 0) 寻找学校所在列数 Cells(4, kml) = n If gl = 1 Then Cells(5, kml) = ywzf If gl = 2 Then Cells(5, kml) = sxzf If gl = 3 Then Cells(5, kml) = yyzf Cells(6, kml) = Round(Cells(5, kml) / n, 2) If gl = 1 Then Cells(7, kml) = ywjg If gl = 2 Then Cells(7, kml) = sxjg If gl = 3 Then Cells(7, kml) = yyjg Cells(8, kml) = Round(Cells(7, kml) / n * 100, 2) If gl = 1 Then Cells(9, kml) = ywyx If gl = 2 Then Cells(9, kml) = sxyx If gl = 3 Then Cells(9, kml) = yyyx Cells(10, kml) = Round(Cells(9, kml) / n * 100, 2) Cells(11, kml) = Round(Cells(6, kml) * 0.6 + Cells(8, kml) * 0.25 + Cells(10, kml) * 0.15, 2) Next glNext qIf m 3 Then 单科汇总表计算km = 2Elsekm = 3End IfFor gl = 1 To kmSheets(kmb(gl).Activatehjl = Application.WorksheetFunction.Match(合计, Range(a2:k2), 0) 寻找合计列Cells(4, hjl) = Application.WorksheetFunction.Sum(Range(Cells(4, 2), Cells(4, hjl - 1) 合计人数Cells(5, hjl) = Application.WorksheetFunction.Sum(Range(Cells(5, 2), Cells(5, hjl - 1) 合计总分Cells(6, hjl) = Round(Cells(5, hjl) / Cells(4, hjl), 2) 合计均分Cells(7, hjl) = Application.WorksheetFunction.Sum(Range(Cells(7, 2), Cells(7, hjl - 1) 合计及格人数Cells(8, hjl) = Round(Cells(7, hjl) / Cells(4, hjl) * 100, 2) 合计及格率Cells(9, hjl) = Application.WorksheetFunction.Sum(Range(Cells(9, 2), Cells(9, hjl - 1) 合计优秀人数Cells(10, hjl) = Round(Cells(9, hjl) / Cells(4, hjl) * 100, 2) 合计优秀率Cells(11, hjl) = Round(Cells(6, hjl) * 0.6 + Cells(8, hjl) * 0.25 + Cells(10, hjl) * 0.15, 2) 学科积分Cells(12, hjl) = -Cells(13, hjl) = -Cells(14, hjl) = -For mc = 2 To hjl - 1Cells(12, mc) = Round(Cells(11, mc) - Cells(11, hjl), 2) 与学科积分
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026浙江宁波前湾新区招聘事业编制教师(第四批)24人备考题库含答案详解(巩固)
- 2026河南事业单位联考焦作市招聘628人备考题库附答案详解(能力提升)
- 2026浙江温州行前农贸市场有限公司招聘1人备考题库及答案详解(真题汇编)
- 资阳市人才发展集团有限公司关于公开招聘资阳市数字化城市管理中心劳务派遣人员的备考题库及答案详解(夺冠系列)
- 2026浙商财产保险股份有限公司招聘3人备考题库(第6期)及完整答案详解一套
- 2026年马鞍山市和县文化旅游体育局度校园招聘备考题库含答案详解(精练)
- 2026浙江工业大学地理信息学院招聘科研助理1人备考题库(人才派遣B2岗)含答案详解ab卷
- 2026广东惠州仲恺高新区赴高校招聘编内教师50人备考题库(广州考点)附答案详解
- 2026浙江丽水市莲都区财政投资评审中心招聘见习生1人备考题库附答案详解(综合卷)
- 2026河南南阳方城县光明高级中学教师招聘59人备考题库附答案详解
- (2025年标准)厂房协议委托租赁协议书
- 2024年长沙市口腔医院招聘真题
- 2025年云南省住院医师规范化培训结业理论考核(中医骨伤科)历年参考题库含答案详解(5卷)
- 地铁行车调度管理办法
- T/CECS 10210-2022给水用胶圈电熔双密封聚乙烯复合管材及管件
- 院前急救指南
- 骨干教师考试试题及答案
- 艺术品销售佣金协议范文
- 抖音工会合同协议
- 2024年二级注册结构工程师专业考试试题及答案(下午卷)
- 2023年南山中学和南山中学实验学校自主招生考试数学试题
评论
0/150
提交评论