Excel中mod函数使用实例教程
时间:2022-11-29 04:07:11
Excel中mod是一个求余函数,其格式为: mod(nExp1,nExp2),即是两个数值表达式作除法运算后的余数。特别注意:在EXCEL中,MOD函数是用于返回两数相除的余数,返回结果的符号与除数(divisor)的符号相同。
mod表达式
语法:MOD(number,divisor)
参数:
Number 为被除数。
Divisor 为除数。在Oracle中,如果 divisor 为0,则函数直接返回number。
说明:
函数MOD可以借用函数 INT 来表示:
MOD(n, d) = n - d*INT(n/d)
在pl/sql dev中验证mod(3,-2)(2张)
示例:
MOD(3, 2) 等于 1
MOD(-3, 2) 等于-1
MOD(3, -2) 等于1
MOD(-3, -2) 等于-1
MOD(-3, 0) 等于-3
MOD(3, 0) 等于3
MOD(2, 0) 等于2
MOD(4, 3) 等于1
注意:以上为Oracle中MOD函数的计算方法,在Pl/sql Dev中测试过。
验证 mod(3,-2)
而在Excel中,除数不能为0,否则会报错。
MOD(3, -2) 等于-1(与后面的数符号相同)
MOD(3, 0) 报错,输出结果为#DIV/0!
Excel中,被除数小于等于除数的整数取值规律:
例:
1 |
|
例:
1 |
|
标签:mod函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
360安全浏览器提示安全证书未被信任要怎么解决?
2023-06-04 19:55:49
![](https://img.aspxhome.com/file/2023/30/a265555_0s.png)
Win10系统怎么打开windows media player?
2022-01-17 21:52:12
![](https://img.aspxhome.com/file/2023/1/a276140_0s.png)
Win10系统如何查看隐藏文件
2023-08-30 00:48:47
![](https://img.aspxhome.com/file/2023/4/a311325_0s.jpg)
如何在Word中换行英文和中文?
2023-10-14 23:20:46
![](https://img.aspxhome.com/file/2023/8/33558_0s.jpg)
谷歌浏览器怎么用-谷歌浏览器使用方法
2023-06-03 17:17:52
![](https://img.aspxhome.com/file/2023/3/a296739_0s.jpg)
Win11打印机文档被挂起怎么解决?
2022-01-27 16:44:32
![](https://img.aspxhome.com/file/2023/30/a271360_0s.png)
PPT配色技巧揭秘
2023-01-06 04:21:27
win7免费升级win10正版_win7免费升级win10正版教程
2022-03-03 21:18:17
![](https://img.aspxhome.com/file/2023/2/a289846_0s.png)
Mac系统中如何安装Sinp软件
2022-12-14 14:19:11
![](https://img.aspxhome.com/file/2023/6/a216656_0s.jpg)
Excel 2010如何加总已筛出来的项目?
2023-11-23 22:37:00
![](https://img.aspxhome.com/file/2023/9/41529_0s.jpg)
Nvidia控制面板怎么设置最好?
2022-01-16 20:20:20
![](https://img.aspxhome.com/file/2023/6/a322579_0s.png)
Luminar Neo 教程「69」,如何在 Luminar Neo 中导出图像?
2022-11-07 08:49:58
![](https://img.aspxhome.com/file/2023/7/a201987_0s.jpeg)
Win7系统当中DTC服务启动不了如何解决?
2023-06-29 22:42:09
![](https://img.aspxhome.com/file/2023/2/a291419_0s.jpg)
完整的DJ表演工具包djay Pro 2 Mac,DJ打碟神器
2023-07-11 17:06:53
![](https://img.aspxhome.com/file/2023/5/a213785_0s.jpeg)
wps office怎么设置磅?
2022-08-19 22:24:19
![](https://img.aspxhome.com/file/2023/8/a168168_0s.jpg)
Excel2010把小数转换百分数
2023-01-28 10:06:04
![](https://img.aspxhome.com/file/2023/5/37965_0s.jpg)
Win10如何重装小娜?Win10重装小娜的方法
2022-09-21 17:15:25
![](https://img.aspxhome.com/file/2023/26/a220502_0s.jpg)
msi微星冲锋坦克 Pro GP76笔记本安装win11系统教程
2023-06-24 00:54:37
![](https://img.aspxhome.com/file/2023/30/a265256_0s.png)
为什么Win10开机会提示“登录组件错误[4] 请重新启动电脑管家”?
2022-02-11 17:08:09
![](https://img.aspxhome.com/file/2023/7/a329158_0s.jpg)
ppt如何制作雪花
2023-11-07 17:23:03
![](https://img.aspxhome.com/file/2023/10/a352885_0s.png)