【问题标题】:Google Sheets, IF, AND, REGEXMATCH, DATE combined FormulaGoogle 表格、IF、AND、REGEXMATCH、DATE 组合公式
【发布时间】:2019-09-12 08:15:04
【问题描述】:

我正在努力实现以下目标:

IF
    Cells B5:B6 and B8:B9 contains ☑
AND
    Todays date is less than 7 days after the date defined in cell B2
THEN
    In the cell the formula is added write 'On Time' otherwise write 'Behind'

我尝试了以下公式,但它返回“公式解析错误”

=IF(AND((REGEXMATCH((B5:B6,B8:B9), "☑")),(B2+7) < today() ), 'On Time', 'Running Behind')

关于如何实现此功能的任何想法?

编辑

从测试来看,问题似乎在于 REGEXMATCH 无法以我定义的方式检查 2 个不同的单元格。

可能需要使用来自某些研究的ArrayFormula(--

【问题讨论】:

    标签: regex if-statement google-sheets google-sheets-formula textjoin


    【解决方案1】:

    像这样尝试:

    =IF((REGEXMATCH(JOIN("", B5:B6, B8:B9), "☑"))*
     ((B2+7) < TODAY() ), "On Time", "Running Behind")
    

    【讨论】:

      猜你喜欢
      • 2021-04-14
      • 1970-01-01
      • 2021-09-28
      • 1970-01-01
      • 1970-01-01
      • 2017-08-24
      • 2022-01-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多