【发布时间】: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