Forum Discussion
zaidk4496
Jan 30, 2023Copper Contributor
Highlight cells based on public holidays for different states
Greetings everyone, I'm trying to highlight cells in columns A:H if they fall on public holiday dates mentioned in the cells J2:L18. Now what if the public holidays differ according to different st...
- Jan 30, 2023
zaidk4496 I would start by assigning a name to each range of state holidays, using the abbreviations used in column B.
Then the following rule, applied to columns A:H will highlight the row if the date in A is a holiday in state B:
=SUM(IFERROR(FIND($A2,INDIRECT($B2)),0))
Please find a working example attached.
Riny_van_Eekelen
Jan 30, 2023Platinum Contributor
zaidk4496 I would start by assigning a name to each range of state holidays, using the abbreviations used in column B.
Then the following rule, applied to columns A:H will highlight the row if the date in A is a holiday in state B:
=SUM(IFERROR(FIND($A2,INDIRECT($B2)),0))
Please find a working example attached.
- zaidk4496Jan 31, 2023Copper Contributor