【问题标题】:Years of Service Formula in Google SheetsGoogle 表格中的多年服务公式
【发布时间】:2020-01-17 14:41:05
【问题描述】:

如何为 Google 表格中的服务年限创建公式?

这个公式在 Google 表格中给我一个错误。

=DATEDIF((B6,"7/10/2019", "Y")&" years")

我希望输出状态为“10 年”。我还需要将结束日期设置为 TODAY,但是当我输入 Today() 作为日期时,公式不起作用。

【问题讨论】:

    标签: date datetime google-sheets concatenation google-sheets-formula


    【解决方案1】:

    尝试:

    =DATEDIF(B6; TODAY(); "Y")&" years"
    

    【讨论】:

      【解决方案2】:

      括号太多...试试

      =DATEDIF(B6,"7/10/2019", "Y")&" years"
      

      【讨论】:

        猜你喜欢
        • 2023-01-25
        • 1970-01-01
        • 2023-02-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-07-24
        相关资源
        最近更新 更多