计算机Excel函数整编汇总.doc

上传人:一*** 文档编号:820101 上传时间:2019-07-19 格式:DOC 页数:8 大小:430.50KB
返回 下载 相关 举报
计算机Excel函数整编汇总.doc_第1页
第1页 / 共8页
计算机Excel函数整编汇总.doc_第2页
第2页 / 共8页
点击查看更多>>
资源描述

《计算机Excel函数整编汇总.doc》由会员分享,可在线阅读,更多相关《计算机Excel函数整编汇总.doc(8页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、4.8.34.8.3 常用函数常用函数Excel 一共提供了数百个内部函数,限于篇幅,此处仅对一些最常用的函数作一简单 介绍。如有需要,可查阅 Excel 的联机帮助或其它参考资料,以了解更多函数和更详细的 说明。 1 1、数学函数、数学函数 (1) 绝对值函数 ABS 格式:ABS(number) 功能:返回参数 number 的绝对值。 例如:ABS(-7)的返回值为 7;ABS(7)的返回值为 7。(2) 取整函数 INT 格式:INT(number) 功能:取一个不大于参数 number 的最大整数。 例如:INT(8.9),INT(-8.9) 其结果分别是 8,-9。(3) 圆周率函

2、数 PI 格式:PI() 功能:返回圆周率 的值。 说明:此函数无需参数,但函数名后的括号不能少。(4) 四舍五入函数 ROUND 格式:ROUND(number,n) 功能:根据指定位数,将数字四舍五入。 说明:其中 n 为整数,函数按指定 n 位数,将 number 进行四舍五入。当 n0,数字将被四 舍五入到所指定的小数位数;当 n0,数字将被四舍五入成整数;当 n=40“)为 2。例 在工资表中统计职称是副教授的人数和 40 岁以上职工人数。=countif(c3:c22,”副教授”) =countif(e3:e22,”=40”)(5) 最大值函数 MAX 格式:MAX(number1

3、,number2,) 功能:求参数表(最多 30 个)中的最大值。 说明:参数可以是数值、空白单元格、逻辑值或数字的文本表达式等。错误值或不能转化 为数值的文字作为参数时,会引起错误。若参数中不含数字,则返回 0。 例如:MAX(78, “98“,TRUE,66)的计算结果为 98。(6) 最小值函数 MIN 格式:MIN(number1,number2,) 功能:求参数表(最多 30 个)中的最小值。 说明:参数说明与 MAX 相同。3 3、文本函数、文本函数 (1) LOWER 函数 格式:LOWER(text) 功能:将一个字符串中的所有大写字母转换为小写字母。 说明:text 是要转换

4、为小写形式的字符串。函数 LOWER 不改变字符串中的非字母的字符。 例如:LOWER(“Apt. 2B“) 等于 “apt. 2b“。(2) UPPER 函数 格式: UPPER(text) 功能:将一个字符串中的所有小写字母转换为大写字母。 说明:text 是要转换为大写形式的字符串。函数 UPPER 不改变字符串中的非字母的字符。relationship, established equivalent relationship 14, and subject: application problem (4)-scores and percentage application proble

5、m review content overview answers scores, and percentage application problem of key is: according to meaning, (1) determine standard volume (units “1“) (2) find associate “volume rate corresponds to“ relationship, Then in-line solution. Category fraction multiplication word problem score Division ap

6、plications engineering problem problem XV, a subject: review of the measurement of the amount of capacity, measurement and units of measurement of common units of measurement and their significance in rate 1, currency, length, area, volume, unit size, volume, weight and rate. (Omitted) 2, commonly u

7、sed time units and their relationships. (Slightly) with a measurement units Zhijian of of poly 1, and of method 2, and poly method 3, and of method and poly method of relationship measurement distance of method 1, and tool measurement 2, and estimates 16, and subject: geometry preliminary knowledge

8、(1)-line and angle review content line, and segment, and Ray, and vertical, and parallel, and angle angle of classification (slightly) 17, and subject: geometry preliminary knowledge (2)-plane graphics review content triangle, and edges shaped, and round, and fan axisymmetric graphics perimeter and

9、area combination graphics of area subject : Preliminary knowledge (3)-review of solid content category 1-d shapes are divided into: cylinder and cone 2, column is divided into: cuboid, square 3, cone cone of the features of cuboids and cubes relationship between characteristics of circular cone is s

10、lightly solid surface area and volume 1, size 2, table .和和4例如:UPPER(“total“) 等于 “TOTAL“。(3) LEFT 函数 格式:LEFT(text,num_chars) 功能:在字符串 text 中从左边第一个字符开始截取 num_chars 个字符。 说明:参数 num_chars 为截取的字符串的长度,必须大于等于零。如果 num_chars 大于 text 的总长度,则返回 text 全部内容。如果省略 num_chars,则视为 1。 例如:LEFT(“计算机应用基础“,5)为 “计算机应用” ,LEFT(“

11、abcd“)为 “a” 。(4) RIGHT 函数 格式:RIGHT(text,num_chars) 功能:在字符串 text 中从右边第一个字符开始截取 num_chars 个字符。 说明:参数说明同 LEFT 函数。 例如:RIGHT(“Merry,Chrismas“,8)为 “Chrismas” ,RIGHT(“abcd“)为 “d” 。(5) MID 函数 格式:MID(text,start_num,num_chars) 功能:从字符串 text 的第 start_num 个字符开始截取 num_chars 个字符。 说明:start_num 是截取字符串的起始位置。如果 start_

12、num 大于字符串的长度,则函数 mid 返回“” (空字符串) ;如果 start_num 小于字符串的长度,但 start_num 与 num_chars 的和超过字符串长度,则函数 mid 返回从 start_num 到字符串结束的所有 字符;如果 start_num 小于 1,则函数 Mid 将返回错误值#VALUE! 例如:MID(“peking university“,1,6)为“peking”(6) LEN 函数 格式:LEN(text) 功能:返回字符串 text 中字符的个数。 例如:len(“university“)为 10。4 4、日期与时间函数、日期与时间函数 (1)

13、DATE 函数 格式:DATE(year,month,day) 功能:返回指定日期的序列数,所谓序列数是从 1900 年 1 月 1 日到所输入日期之间的总天 数。 说明:year 代表年份,是介于 1900 到 9999 之间的一个数字。month 代表月份,如果输入 的月份大于 12,将从指定年份的一月份开始往上加算。day 代表该月份中第几天, 如果 day 大于该月份的最大天数,将从指定月份的第一天开始往上加算。 例如:DATE(2008,5,1)为 39569,返回代表 2008 年 5 月 1 日的序列数。(2) YEAR 函数 格式:YEAR(serial_number) 功能:

14、返回于序列数 serial_number 相对应的年份数。 例如:YEAR(39569)为 2008。relationship, established equivalent relationship 14, and subject: application problem (4)-scores and percentage application problem review content overview answers scores, and percentage application problem of key is: according to meaning, (1) dete

15、rmine standard volume (units “1“) (2) find associate “volume rate corresponds to“ relationship, Then in-line solution. Category fraction multiplication word problem score Division applications engineering problem problem XV, a subject: review of the measurement of the amount of capacity, measurement

16、 and units of measurement of common units of measurement and their significance in rate 1, currency, length, area, volume, unit size, volume, weight and rate. (Omitted) 2, commonly used time units and their relationships. (Slightly) with a measurement units Zhijian of of poly 1, and of method 2, and

17、 poly method 3, and of method and poly method of relationship measurement distance of method 1, and tool measurement 2, and estimates 16, and subject: geometry preliminary knowledge (1)-line and angle review content line, and segment, and Ray, and vertical, and parallel, and angle angle of classific

18、ation (slightly) 17, and subject: geometry preliminary knowledge (2)-plane graphics review content triangle, and edges shaped, and round, and fan axisymmetric graphics perimeter and area combination graphics of area subject : Preliminary knowledge (3)-review of solid content category 1-d shapes are

19、divided into: cylinder and cone 2, column is divided into: cuboid, square 3, cone cone of the features of cuboids and cubes relationship between characteristics of circular cone is slightly solid surface area and volume 1, size 2, table .和和5(3) MONTH 函数 格式:MONTH(serial_number) 功能:返回序列数 serial_number

20、 相对应的月份数。 例如:MONTH(39569)为 5。(4) DAY 函数 格式:DAY(serial_number) 功能:返回序列数 serial_number 相对应的天数。 例如:DAY(39569)为 1。(5) TODAY 函数 格式:TODAY() 功能:返回计算机系统内部时钟现在日期的序列数。 例如:TODAY()为 39570,表示计算机系统当前日期是 2008 年 5 月 2 日。(6) TIME 函数 格式:TIME(hour,minute,second) 功能:返回指定时间的序列数。 说明:该序列数是一个介于 0 到 0.之间的十进制小数,对应着自 0:00:00(

21、12:00:00 AM) 到 23:59:59(11:59:59 PM)的时间。其中 hour 介于 0 到 23,代表小时;minute 介 于 0 到 59,代表分钟;second 介于 0 到 59,代表秒。 例如:TIME(12,0,0)为 0.5,对应 12:00:00 PM;TIME(17,58,10)为 0.,对应 5:58PM。(7) NOW 函数 格式:NOW() 功能:返回计算机系统内部时钟的现在日期和时间的序列数。 说明:该序列数是一个大于 1 的带小数的正数,其中整数部分代表当前日期,小数部分代 表当前时间。 例如:NOW()为 39523.,表示 2008 年 3 月

22、 16 日 11:52AM。5 5、逻辑函数、逻辑函数 (1) AND 函数 格式:AND(logical1,logical2,logical30) 功能:当所有参数的逻辑值为真(TRUE)时返回 TRUE;只要一个参数的逻辑值为假 (FALSE)即返回 FALSE。 说明:logical1, logical2, .为待检测的若干个条件值(最多 30 个) ,各条件值必须是 逻辑值(TRUE 或 FALSE) 、计算结果为逻辑值的表达式、或者是包含逻辑值的单元格 引用。如果引用的参数包含文字或空单元格,则忽略其值;如果指定的单元格区域 内包含非逻辑值,则返回错误值#VALUE。 例如:AND(

23、TRUE,72) 为 TRUE;AND(9-5=4,58)为 FALSE。(2) OR 函数 格式:OR(logical1,logical2, ,logical30)relationship, established equivalent relationship 14, and subject: application problem (4)-scores and percentage application problem review content overview answers scores, and percentage application problem of key is

24、: according to meaning, (1) determine standard volume (units “1“) (2) find associate “volume rate corresponds to“ relationship, Then in-line solution. Category fraction multiplication word problem score Division applications engineering problem problem XV, a subject: review of the measurement of the

25、 amount of capacity, measurement and units of measurement of common units of measurement and their significance in rate 1, currency, length, area, volume, unit size, volume, weight and rate. (Omitted) 2, commonly used time units and their relationships. (Slightly) with a measurement units Zhijian of

26、 of poly 1, and of method 2, and poly method 3, and of method and poly method of relationship measurement distance of method 1, and tool measurement 2, and estimates 16, and subject: geometry preliminary knowledge (1)-line and angle review content line, and segment, and Ray, and vertical, and parall

27、el, and angle angle of classification (slightly) 17, and subject: geometry preliminary knowledge (2)-plane graphics review content triangle, and edges shaped, and round, and fan axisymmetric graphics perimeter and area combination graphics of area subject : Preliminary knowledge (3)-review of solid

28、content category 1-d shapes are divided into: cylinder and cone 2, column is divided into: cuboid, square 3, cone cone of the features of cuboids and cubes relationship between characteristics of circular cone is slightly solid surface area and volume 1, size 2, table .和和6功能:在参数中,任何一个参数逻辑值为真,即返回逻辑值

29、TRUE;只有全部参数为假,才 返回 FALSE。 说明:与 AND 函数相同。 例如:OR(TRUE,3+5=8)为 TRUE;OR(1+1=3,3+2=6)为 FALSE。(3) NOT 函数 格式:NOT(logical) 功能:对逻辑参数 logical 求相反的值。 例如:NOT(FALSE)为 TRUE;NOT(1+4=5)为 FALSE。(4) IF 函数 格式:IF(logical_test,value_if_true,value_if_false) 功能:对条件式 logical_test 进行测试,如果条件为逻辑值 TRUE,则取 value_if_true 的值,否则取

30、value_if_false 的值。 说明: 函数 IF 最多可以嵌套七层,用 value_if_false 及 value_if_true 参数可以构造复 杂的检测条件。 在计算参数 value_if_true 和 value_if_false 后,函数 IF 返回相应语句执行后的 返回值。例如:在如图 4-51 所示的商品销售业绩表中,要求用 IF 函数完成对每位人员的业绩评价。 评价的标准是:全年销售额=为“优秀” ,=,“优秀“,IF(J3=,“良好“,IF(J3=, “一般“,“较差“)) 将 J3 中的公式复制到 J4:J17。6 6、数据库统计函数、数据库统计函数 数据库统计函数

31、的格式为:函数名(database,field,criteria)。其中 database 是 包含字段的数据库区域;field 指定函数所要统计的数据列,可以是带引号的字段名,如 “级别” ,也可以是是字段名所在单元格地址,还可以是代表数据库中数据列位置的序号, 1 表示第一列,2 表示第二列等;criteria 为一组包含给定条件的单元格区域,即条件区 域。条件区域的写法同高级筛选。 常用的数据库统计函数有: DAVERAGE(database,field,criteria):对数据库中满足条件记录的指定字段求平均值。 DSUM(database,field,criteria):对数据库中

32、满足条件记录的指定字段求和。 DMAX(database,field,criteria):对数据库中满足条件记录的指定字段求最大值。 DMIN(database,field,criteria):对数据库中满足条件记录的指定字段求最小值。图 4-51 用 IF 函数进行等级分类relationship, established equivalent relationship 14, and subject: application problem (4)-scores and percentage application problem review content overview answe

33、rs scores, and percentage application problem of key is: according to meaning, (1) determine standard volume (units “1“) (2) find associate “volume rate corresponds to“ relationship, Then in-line solution. Category fraction multiplication word problem score Division applications engineering problem

34、problem XV, a subject: review of the measurement of the amount of capacity, measurement and units of measurement of common units of measurement and their significance in rate 1, currency, length, area, volume, unit size, volume, weight and rate. (Omitted) 2, commonly used time units and their relati

35、onships. (Slightly) with a measurement units Zhijian of of poly 1, and of method 2, and poly method 3, and of method and poly method of relationship measurement distance of method 1, and tool measurement 2, and estimates 16, and subject: geometry preliminary knowledge (1)-line and angle review conte

36、nt line, and segment, and Ray, and vertical, and parallel, and angle angle of classification (slightly) 17, and subject: geometry preliminary knowledge (2)-plane graphics review content triangle, and edges shaped, and round, and fan axisymmetric graphics perimeter and area combination graphics of ar

37、ea subject : Preliminary knowledge (3)-review of solid content category 1-d shapes are divided into: cylinder and cone 2, column is divided into: cuboid, square 3, cone cone of the features of cuboids and cubes relationship between characteristics of circular cone is slightly solid surface area and

38、volume 1, size 2, table .和和7DCOUNT(database,field,criteria):计算指定数据库中符合条件且包含有数字的单元格数。DCOUNTA(database,field,criteria):返回数据库中满足给定条件的非空单元格数目。例如,在商品销售业绩表(见图 4-54)中,计算男性中级销售人员的人数以及他们业 绩奖金的平均值。操作步骤如下: (1) 在空白区域 E19:F20 建立条件,方法同“高级筛选”条件区域的建立。 (2) 在 E21、E22 单元分别输入各统计函数: E21:DCOUNT(A2:J17, ,E19:F20) E22:DAVE

39、RAGE(A2:J17,8, E19:F20) 统计结果如图 4-65 所示。8 8、其他函数、其他函数 (1) 频率分析函数 FREQUENCY 格式:FREQUENCY(range1,range2) 功能:将区域 range1 中的数据按垂直区域 range2(分段点)进行频率分布的统计,统计结 果放在 range2 右边列的对应位置。 说明:输入公式前要选定显示结果的区域,返回数组中的元素个数比 range2 中的元素数目 多一个,输入公式完毕要按“Ctrl+Shift+Enter”组合键,不能按 Enter 键。 例如:若工作表中已输入某班学生成绩,如图 4-52 所示。统计成绩在 0

40、59、6069、7079、8089 和 90100 各区间中的人数。图 4-52 学生成绩图 4-53 使用频度函数图 4-65 数据库统计函数结果relationship, established equivalent relationship 14, and subject: application problem (4)-scores and percentage application problem review content overview answers scores, and percentage application problem of key is: accordi

41、ng to meaning, (1) determine standard volume (units “1“) (2) find associate “volume rate corresponds to“ relationship, Then in-line solution. Category fraction multiplication word problem score Division applications engineering problem problem XV, a subject: review of the measurement of the amount o

42、f capacity, measurement and units of measurement of common units of measurement and their significance in rate 1, currency, length, area, volume, unit size, volume, weight and rate. (Omitted) 2, commonly used time units and their relationships. (Slightly) with a measurement units Zhijian of of poly

43、1, and of method 2, and poly method 3, and of method and poly method of relationship measurement distance of method 1, and tool measurement 2, and estimates 16, and subject: geometry preliminary knowledge (1)-line and angle review content line, and segment, and Ray, and vertical, and parallel, and a

44、ngle angle of classification (slightly) 17, and subject: geometry preliminary knowledge (2)-plane graphics review content triangle, and edges shaped, and round, and fan axisymmetric graphics perimeter and area combination graphics of area subject : Preliminary knowledge (3)-review of solid content c

45、ategory 1-d shapes are divided into: cylinder and cone 2, column is divided into: cuboid, square 3, cone cone of the features of cuboids and cubes relationship between characteristics of circular cone is slightly solid surface area and volume 1, size 2, table .和和8操作步骤如下: 在区域 C2:C5 中输入分段点的分数 59、69、79

46、、89。 选定显示结果的区域 D2:D6。 用鼠标单击编辑栏,在编辑栏中输入公式“=FREQUENCY(A1:A10,C2:C5)” 。 按“Ctrl+Shift+Enter”组合键,结果如图 4-53 所示。(2) 排名函数 RANK 格式:RANK(number,range,rank-way) 功能:返回单元格 number 在一个垂直区域 range 中的排位名次,rank-way 是排位的方式。 rank-way 为 0 或省略,则按降序排列(值最大的为第 1 名)。Rank-way 不为 0 则按升 序排列(值最小的为第 1 名)。 说明:RANK 函数对相同数的排位相同。但相同数的存在将影响后续数值的排位。 例如:A1:A5 区域中含有数字 5、7、3、9、3,则 RANK(A2,A1:A5)=2;RANK(A2,A1:A5,1) =4。

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 教案示例

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com