Google Sheets、IF、AND、REGEXMATCH、日期组合公式

Google Sheets、IF、AND、REGEXMATCH、日期组合公式,regex,if-statement,google-sheets,google-sheets-formula,textjoin,Regex,If Statement,Google Sheets,Google Sheets Formula,Textjoin,我正在努力实现以下目标: 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((REGEXMAT

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

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')
=IF(AND((REGEXMATCH((B5:B6,B8:B9))“☑")),(B2+7)
关于如何实现此功能有何想法

编辑

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

可能需要使用一些研究中的
数组公式(-

这样尝试:

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

像这样尝试:

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