三个好用的计算日期的 MSO Excel 函数

Revision as of 11:12, 18 June 2024 by Mwroot (talk | contribs) (Created page with "; 计算两个日期之间差了几年 : =YEARFRAC("2018/9/30","2024/7/1",1) ; 对几年取整,舍弃小数部分 : =TRUNC(sth) ; 往后推算 5 年是哪个日期 : =EDAT...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
计算两个日期之间差了几年
=YEARFRAC("2018/9/30","2024/7/1",1)
对几年取整,舍弃小数部分
=TRUNC(sth)
往后推算 5 年是哪个日期
=EDATE("2018/9/30",5*12)