Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
查看: 4269|回复: 6

[通知] MOD命令请教

[复制链接]
发表于 2008-5-20 16:38 | 显示全部楼层 |阅读模式
MOD命令有些不明白 <table cellspacing="0" cellpadding="0" width="269" border="0" xstr="" style="WIDTH: 202pt; BORDER-COLLAPSE: collapse;"><colgroup><col width="98" style="WIDTH: 74pt; mso-width-source: userset; mso-width-alt: 3136;"></col><col></col><col width="72" style="WIDTH: 54pt;"></col><col></col><col width="99" style="WIDTH: 74pt; mso-width-source: userset; mso-width-alt: 3168;"></col><col></col></colgroup><tbody><tr height="19" style="HEIGHT: 14.25pt;"><td class="xl24" width="98" height="19" style="BORDER-RIGHT: #76ace4; BORDER-TOP: #76ace4; BORDER-LEFT: #76ace4; WIDTH: 74pt; BORDER-BOTTOM: #76ace4; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent;"><font face="宋体">=MOD(5,4)</font></td><td align="right" width="72" xfmla="=MOD(5,4)" xnum="" style="BORDER-RIGHT: #76ace4; BORDER-TOP: #76ace4; BORDER-LEFT: #76ace4; WIDTH: 54pt; BORDER-BOTTOM: #76ace4; BACKGROUND-COLOR: transparent;"><font face="宋体">1</font></td><td width="99" style="BORDER-RIGHT: #76ace4; BORDER-TOP: #76ace4; BORDER-LEFT: #76ace4; WIDTH: 74pt; BORDER-BOTTOM: #76ace4; BACKGROUND-COLOR: transparent;"><font face="宋体">&nbsp;&nbsp; 5/4的余数</font></td></tr><tr height="19" style="HEIGHT: 14.25pt;"><td class="xl24" height="19" style="BORDER-RIGHT: #76ace4; BORDER-TOP: #76ace4; BORDER-LEFT: #76ace4; BORDER-BOTTOM: #76ace4; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent;"><font face="宋体">=MOD(-5,4)</font></td><td align="right" xfmla="=MOD(-5,4)" xnum="" style="BORDER-RIGHT: #76ace4; BORDER-TOP: #76ace4; BORDER-LEFT: #76ace4; BORDER-BOTTOM: #76ace4; BACKGROUND-COLOR: transparent;"><font face="宋体">3</font></td><td class="xl24" style="BORDER-RIGHT: #76ace4; BORDER-TOP: #76ace4; BORDER-LEFT: #76ace4; BORDER-BOTTOM: #76ace4; BACKGROUND-COLOR: transparent;"><font face="宋体">&nbsp; -5/4的余数</font></td></tr><tr height="19" style="HEIGHT: 14.25pt;"><td class="xl24" height="19" style="BORDER-RIGHT: #76ace4; BORDER-TOP: #76ace4; BORDER-LEFT: #76ace4; BORDER-BOTTOM: #76ace4; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent;"><font face="宋体">=MOD(5,-4)</font></td><td align="right" xfmla="=MOD(5,-4)" xnum="" style="BORDER-RIGHT: #76ace4; BORDER-TOP: #76ace4; BORDER-LEFT: #76ace4; BORDER-BOTTOM: #76ace4; BACKGROUND-COLOR: transparent;"><font face="宋体">-3</font></td><td class="xl24" style="BORDER-RIGHT: #76ace4; BORDER-TOP: #76ace4; BORDER-LEFT: #76ace4; BORDER-BOTTOM: #76ace4; BACKGROUND-COLOR: transparent;"><font face="宋体">&nbsp; 5/-4的余数</font></td></tr><tr height="19" style="HEIGHT: 14.25pt;"><td class="xl24" height="19" style="BORDER-RIGHT: #76ace4; BORDER-TOP: #76ace4; BORDER-LEFT: #76ace4; BORDER-BOTTOM: #76ace4; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent;"><font face="宋体">=MOD(-5,-4)</font></td><td align="right" xfmla="=MOD(-5,-4)" xnum="" style="BORDER-RIGHT: #76ace4; BORDER-TOP: #76ace4; BORDER-LEFT: #76ace4; BORDER-BOTTOM: #76ace4; BACKGROUND-COLOR: transparent;"><font face="宋体">-1 </font></td><td class="xl24" style="BORDER-RIGHT: #76ace4; BORDER-TOP: #76ace4; BORDER-LEFT: #76ace4; BORDER-BOTTOM: #76ace4; BACKGROUND-COLOR: transparent;"><font face="宋体">&nbsp;-5/-4的余数</font></td></tr></tbody></table>后面三个不明白,希望大家帮忙解释下
发表于 2008-5-20 16:58 | 显示全部楼层

<p>函数 MOD 可以借用函数 INT 来表示:</p><pre><code>MOD(n, d) = n - d*INT(n/d)</code>
</pre><pre></pre>
回复

使用道具 举报

发表于 2008-5-20 21:22 | 显示全部楼层
回复

使用道具 举报

发表于 2008-6-6 16:26 | 显示全部楼层

<p>好东西,我也学习了</p>
回复

使用道具 举报

发表于 2008-6-6 16:26 | 显示全部楼层

<p>好东西,我也学习了</p>
回复

使用道具 举报

发表于 2008-6-6 16:27 | 显示全部楼层

<p>好东西,我也学习了</p>
回复

使用道具 举报

发表于 2010-8-10 11:44 | 显示全部楼层

路过,学习一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2025-8-16 13:42 , Processed in 0.244563 second(s), 4 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表