lxr760
V2EX  ›  问与答

如何使用 Excel 计算 2 个日期的差值,以**年**天为格式

  •  
  •   lxr760 · May 21, 2022 · 784 views
    This topic created in 1480 days ago, the information mentioned may be changed or developed.
    目前尝试使用的公式是
    =DATEDIF(B2,TODAY(),"y")&" Years, "
    &DATEDIF(B2,TODAY(),"yd")&" Days "

    假设 B2 日期为 2005.1.25 与今天的差值为 19 年 121 天 但使用公式算出来的日期是 19 年 116 天 少了 5 天


    如何修复这个 bug 也就是说 要让 Excel 计算天数的时候,还要考虑起止年份中存在的润年问题
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5685 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 06:24 · PVG 14:24 · LAX 23:24 · JFK 02:24
    ♥ Do have faith in what you're doing.