Highlighting, via conditional formatting, multiple cells in column G2:Z based on the multiple singular dates in single cells in column C2:C works with =ArrayFormula(OR((SUBSTITUTE(SPLIT($C2, CHAR(10)), ".", "/")*1)=G$1))
But I'm looking for a way to still highlight, via conditional formatting, multiple cells in columns G2:Z but based on single cells in column C2:C that contains date range singular dates.
CodePudding user response:
In this case should work:
=ArrayFormula(
OR(
(G$1=SUBSTITUTE(SPLIT(TRANSPOSE(SPLIT($C2,CHAR(10)))," - "),".","/")*1)
(G$1>=INDEX(SUBSTITUTE(SPLIT(TRANSPOSE(SPLIT($C2,CHAR(10)))," - "),".","/")*1,0,1))*
(G$1<=IFERROR
(
INDEX(SUBSTITUTE(SPLIT(TRANSPOSE(SPLIT($C2,CHAR(10)))," - "),".","/")*1,0,2),
INDEX(SUBSTITUTE(SPLIT(TRANSPOSE(SPLIT($C2,CHAR(10)))," - "),".","/")*1,0,1))
)
)
)