【问题标题】:How to calculate months with arrayformula in google script如何在谷歌脚本中使用 arrayformula 计算月份
【发布时间】:2021-04-09 14:09:10
【问题描述】:

我可以使用 dateif 而不是 arrayformula 来计算月差

示例:开始日期:2020 年 10 月 5 日 结束日期:2021 年 6 月 9 日月差:使用公式 (DATEDIF(D3,E3 , "M"))。

但我无法使用数组公式进行计算,因为我希望每一行都自动计算日期。

感谢 Google 专家的帮助!

【问题讨论】:

    标签: google-sheets array-formulas


    【解决方案1】:

    试试

    =ArrayFormula(IF(LEN(D3:D), DATEDIF(D3:D,E3:E, "M"),))
    

    看看这是否有效?


    参考文献

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-04-19
    • 2013-04-15
    • 2022-08-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多