
4.6 练习:分析员工信息
练习要点
·设置数字格式
·使用数据验证
·套用表格格式
·使用函数
·填充公式
·使用数组公式
对于职员比较多的企业来讲,统计不同学历与不同年龄段内职员的具体人数,将是人力资源部人员比较费劲的一件工作。在本练习中,将运用函数等功能,对人事数据进行单条件汇总、多条件汇总。

操作步骤
STEP|01 制作标题。设置工作表的行高,合并单元格区域B1:M1,输入标题文本并设置文本的字体格式。

STEP|02 设置数字格式。输入列表标题和列标题文本,选择单元格区域B8:B31,右击执行【设置单元格格式】命令,自定义单元格区域的数字格式。

STEP|03 同时选择单元格区域G8:G31和J8:J31,执行【开始】|【数字】|【数字格式】|【短日期】命令,设置单元格区域的日期格式。

STEP|04 使用数据验证。选择单元格区域D8:D31,执行【数据】|【数据工具】|【数据验证】|【数据验证】命令,在弹出的对话框中设置验证条件。使用同样方法,设置其他单元格区域的数据验证。

STEP|05 计算数据。输入基础数据,选择单元格J8,在编辑栏中输入计算公式,按Enter键返回出生日。

STEP|06 选择单元格K8,在编辑栏中输入计算公式,按Enter键返回性别。

STEP|07 选择单元格L8,在编辑栏中输入计算公式,按Enter键返回年龄。

STEP|08 选择单元格M8,在编辑栏中输入计算公式,按Enter键返回生肖。

STEP|09 选择单元格区域J8:M31,执行【开始】|【编辑】|【填充】|【向下】命令,向下填充公式。

STEP|10 美化表格。选择单元格区域B7:M321,执行【开始】|【样式】|【套用表格格式】|【表样式中等深浅14】命令。

STEP|11 在弹出的【套用表格式】对话框中,启用【表包含标题】复选框,单击【确定】按钮即可。

STEP|12 选择套用的表格中的任意一个单元格,右击执行【表格】|【转换为区域】命令,将表格转换为普通区域。

STEP|13 汇总数据。在单元格区域B2:M5中制作“条件汇总人事数据”列表,并设置表格的对齐、字体和边框格式。

STEP|14 选择单元格E3,在编辑栏中输入计算公式,按Enter键返回本科学历人数。

STEP|15 选择单元格E4,在编辑栏中输入计算公式,按Enter键返回年龄大于等于30的人数。

STEP|16 选择单元格E5,在编辑栏中输入计算公式,按Enter键返回女性员工人数。

STEP|17 选择单元格J3,在编辑栏中输入计算公式,按Enter键返回介于25~30岁之间的人数。

STEP|18 选择单元格J4,在编辑栏中输入计算公式,按Enter键返回年龄大于30的男性人数。

STEP|19 选择单元格J5,在编辑栏中输入计算公式,按Enter键返回年龄大于30岁本科学历人数。

STEP|20 选择单元格区域L3:M4,执行【开始】|【字体】|【字体颜色】|【白色,背景1】命令,隐藏数据。
