基于具有日期范围+单一日期的单个单元格条件格式化多个单元格
Conditional Formatting multiple cells based on a single cell with date range + singular dates
根据 C2:C 列中单个单元格中的多个奇异日期,通过条件格式突出显示 G2:Z 列中的多个单元格适用于 =ArrayFormula(OR((SUBSTITUTE(SPLIT($C2, CHAR(10)), ".", "/")*1)=G))
但我正在寻找一种方法,通过条件格式仍然突出显示 G2:Z 列中的多个单元格,但基于包含 日期的 C2:C 列中的单个单元格范围 + 单数日期.
在这种情况下应该可行:
=ArrayFormula(
OR(
(G=SUBSTITUTE(SPLIT(TRANSPOSE(SPLIT($C2,CHAR(10)))," - "),".","/")*1)+
(G>=INDEX(SUBSTITUTE(SPLIT(TRANSPOSE(SPLIT($C2,CHAR(10)))," - "),".","/")*1,0,1))*
(G<=IFERROR
(
INDEX(SUBSTITUTE(SPLIT(TRANSPOSE(SPLIT($C2,CHAR(10)))," - "),".","/")*1,0,2),
INDEX(SUBSTITUTE(SPLIT(TRANSPOSE(SPLIT($C2,CHAR(10)))," - "),".","/")*1,0,1))
)
)
)
根据 C2:C 列中单个单元格中的多个奇异日期,通过条件格式突出显示 G2:Z 列中的多个单元格适用于 =ArrayFormula(OR((SUBSTITUTE(SPLIT($C2, CHAR(10)), ".", "/")*1)=G))
但我正在寻找一种方法,通过条件格式仍然突出显示 G2:Z 列中的多个单元格,但基于包含 日期的 C2:C 列中的单个单元格范围 + 单数日期.
在这种情况下应该可行:
=ArrayFormula(
OR(
(G=SUBSTITUTE(SPLIT(TRANSPOSE(SPLIT($C2,CHAR(10)))," - "),".","/")*1)+
(G>=INDEX(SUBSTITUTE(SPLIT(TRANSPOSE(SPLIT($C2,CHAR(10)))," - "),".","/")*1,0,1))*
(G<=IFERROR
(
INDEX(SUBSTITUTE(SPLIT(TRANSPOSE(SPLIT($C2,CHAR(10)))," - "),".","/")*1,0,2),
INDEX(SUBSTITUTE(SPLIT(TRANSPOSE(SPLIT($C2,CHAR(10)))," - "),".","/")*1,0,1))
)
)
)