【问题标题】:How to force ArrayFormula to compare "line by line"如何强制 ArrayFormula 逐行比较
【发布时间】:2020-06-11 10:02:50
【问题描述】:

我想在 Google Sheet 中使用 ArrayFormula 来减少计算时间。我必须将 A 列的日期与 B 列的日期进行比较,并将结果写入 C 列。 逐行执行时很明显(“A2>B2”)。 使用 arrayFormula 时它不起作用,因为它将 A 列中的完整 Array 与 B 列中的数组进行比较。 https://docs.google.com/spreadsheets/d/1ao6gWFiu7WnwQISjQbEdDhY7xJ-HjLvWZEVmjU6bKog/edit?usp=sharing

感谢您提供的任何帮助!

【问题讨论】:

    标签: google-sheets google-sheets-formula array-formulas


    【解决方案1】:

    应该可以,但是你的公式必须是这样的

    =ArrayFormula(A3:A9<B3:B9)
    

    或者,如果您想使用开放范围

    =ArrayFormula(if(len(A3:A); A3:A<B3:B;))
    

    【讨论】:

    • @ArthurParkopoly 如果回答对您有帮助,请考虑将其标记为正确答案。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-23
    • 1970-01-01
    • 1970-01-01
    • 2020-06-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多