银狐蓝媚 发表于 2007-7-26 11:04:20

急 急 急 函数公式高手帮帮!

<p>哪位函数高手,帮忙把这个公式设计出来,</p><p></p><p><table cellspacing="0" cellpadding="0" width="211" border="0" style="WIDTH: 159pt; BORDER-COLLAPSE: collapse;"><colgroup><col width="101" style="WIDTH: 76pt; mso-width-source: userset; mso-width-alt: 3232;"></col><col width="110" style="WIDTH: 83pt; mso-width-source: userset; mso-width-alt: 3520;"></col></colgroup><tbody><tr height="36" style="HEIGHT: 27pt;"><td class="xl22" width="101" height="36" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 76pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 27pt; BACKGROUND-COLOR: #ffcc99;"><strong><font face="宋体">劳动合到期时间</font></strong></td><td class="xl23" width="110" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 83pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: yellow;"><strong><font face="宋体">提前30天提醒</font></strong></td></tr><tr height="45" style="HEIGHT: 33.75pt; mso-height-source: userset;"><td class="xl24" height="45" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 33.75pt; BACKGROUND-COLOR: #ffcc99;"><font face="宋体">2007-1-17</font></td><td class="xl25" xfmla="=IF(DATEDIF(TODAY(),A2,&quot;m&quot;)=1,&quot;快要签合同了&quot;,&quot;&quot;)" xerr="#NUM!" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: #ffcc99;"><font face="宋体" color="#ff0000">#NUM!</font></td></tr></tbody></table>=IF(DATEDIF(TODAY(),A2,"m")=1,"快要签合同了","")</p><p>如何完善这个公式?</p><p>帮我解释一下这个公式,好吗.</p><p>谢谢</p>

aphay 发表于 2007-7-26 11:17:43

<p>把公式改成这样您看行不行?</p><p>=IF(TODAY()-合同到期时间单元格&lt;30,"快要签合同了","")</p>

rockking 发表于 2007-7-26 11:47:31

家园有excel函数的材料,看看吧

sailing23 发表于 2007-7-26 13:01:31

<p>如果要在恰好30天时提醒,将“M”改为“D”,将1改为30。如果30日以内都要提醒,就将=改为&lt;=.</p>

sailing23 发表于 2007-7-27 11:50:31

这个公式的意思是:如果今天和签合同的日期相隔的月数为1,就输出“快要签合同了”,否则为空白。但这个公式一般在不满一个月时会粗略计算,比如1个月零10天,它的计算结果也是1。所以建议按照上面的方式修改函数。
页: [1]
查看完整版本: 急 急 急 函数公式高手帮帮!