EXCEL利用函数求最大公约数和最小公倍数
时间:2023-01-16 01:53:09
GCD函数返回两个或多个整数的最大公约数,最大公约数是能分别将Number1和Number2除尽的最大整数。
LCM函数返回整数的最小公倍数。最小公倍数是所有整数参数number1、number2等等的最小正整数倍数。用函数LCM可以将分母不同的分数相加。
这两个函数的语法为:
GCD(number1, [number2], …)
LCM(number1, [number2], …)
▲Number1,number2,…:Number1是必需的,后续数值是可选的。数值的个数可以为1到255个,如果任意数值为非整数,则截尾取整。
提示:
●如果参数为非数值型,则函数GCD和函数LCM均返回错误值#VALUE!。
●如果参数小于零,则函数GCD和函数LCM均返回错误值#NUM!。
●如果GCD的参数>=2^53,则GCD返回错误值#NUM!。
●如果LCM(a,b)>=2^53,则LCM返回错误值 #NUM!。
示例:
=LCM(5,2):5和2的最小公倍数,返回“10”
=LCM(24,36):24和36的最小公倍数,返回“72”
=GCD(24,36):24和36的最大公约数,返回“12”
=GCD(5,2):5和2的最大公约数,返回“1”
标签:函数,最大公约数,最小公倍数,返回,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
iOS 新功能“隔空播放 2”是什么意思?
2023-04-10 06:45:37
![](https://img.aspxhome.com/file/2023/8/a197808_0s.jpg)
Win10系统怎么使用人脸解锁功能?
2023-11-13 03:18:52
![](https://img.aspxhome.com/file/2023/1/49111_0s.png)
win10电脑截图快捷键ctrl加什么
2023-11-13 20:13:22
![](https://img.aspxhome.com/file/2023/6/48366_0s.png)
Win10已经是管理员还要权限的情况要怎么解决?
2023-10-14 20:19:21
![](https://img.aspxhome.com/file/2023/1/a277774_0s.png)
Excel2010如何设置鼠标滚轮控制窗口大小的操作方法分享
2023-09-06 05:37:45
![](https://img.aspxhome.com/file/2023/8/16038_0s.png)
PPT图表美化教程五:常用的折线图样式
2023-09-16 17:51:05
电脑Win7怎么换Win10?Win7改Win10系统教程
2023-11-11 22:50:41
![](https://img.aspxhome.com/file/2023/26/a227957_0s.png)
如何使用Excel自动批量发送邮件
2022-09-23 12:04:26
![](https://img.aspxhome.com/file/2023/3/a154423_0s.jpg)
赛博朋克20778g内存能玩吗?赛博朋克20778g内存能不能玩详细介绍
2023-07-12 18:49:38
![](https://img.aspxhome.com/file/2023/6/a324811_0s.jpg)
抖音如何删除喜欢的作品-抖音删除喜欢作品方法
2022-09-10 10:25:55
![](https://img.aspxhome.com/file/2023/3/a296006_0s.jpg)
12306如何更改通知方式?教你一招轻松更改铁路12306通知方式!
2022-04-02 16:50:51
![](https://img.aspxhome.com/file/2023/7/a329501_0s.jpg)
Win11小组件打不开怎么办?
2022-11-06 10:32:25
![](https://img.aspxhome.com/file/2023/1/a281828_0s.jpg)
word如何进行全文分栏和某段落分栏
2023-11-29 13:33:43
![](https://img.aspxhome.com/file/2023/1/18031_0s.jpg)
Win10系统安全中心服务启动不了问题的解决方法
2022-02-07 18:03:35
![](https://img.aspxhome.com/file/2023/28/a245341_0s.jpg)
Win7系统总是自动删除桌面快捷方式怎么办?
2022-02-16 08:37:21
![](https://img.aspxhome.com/file/2023/29/a252241_0s.jpg)
Win11 cmd命令窗口中文乱码怎么办?Win11 cmd命令提示符乱码解决方法
2022-11-28 16:29:43
![](https://img.aspxhome.com/file/2023/28/a239688_0s.jpg)
板栗怎么私信主播?板栗私信主播的方法
2022-10-31 05:28:36
![](https://img.aspxhome.com/file/2023/8/a335192_0s.jpg)
excel表格中怎么连续使用格式刷?
2022-01-31 21:13:35
![](https://img.aspxhome.com/file/2023/6/41326_0s.jpg)
Win10专业版分区格式GPT和MBR的区别是什么?
2022-11-14 08:56:28
![](https://img.aspxhome.com/file/2023/26/a223014_0s.png)
学会了这几个Word技巧,日常办公更轻松
2022-09-12 05:35:54
![](https://img.aspxhome.com/file/2023/7/34237_0s.png)