I'm working on a fairly large table that has multiple data points in it that contain various dates.
The table looks roughly like this:
Case No. | Request Date 1 | Response Date 1 | Request Date 2 | Response Date 2 |
---|---|---|---|---|
1 | 1 Jan 2021 | 7 Jan 2021 | 10 Jan 2021 | 21 Jan 2021 |
2 | 5 Jan 2021 | 8 Jan 2021 | 8 Jan 2021 | 15 Jan 2021 |
The 'Request' and 'Response' Dates - in theory could - go on infinitely. All of this data sits in a named excel table called "AllData".
To help easily visualise where a response has been slower than normal (imagine a response should be within 2 working days), I've been trying to do conditional formatting where the Response Date [x] cell changes colour to red if the date within it is greater than 2 working days from the Request Date [x], where [x] is the same number (i.e. Request Date 1 and Response Date 1; and so on).
Every approach I know seems to involve having a new conditional formatting rule for each cell. My current approach is to use the WORKDAY formula combined with conditional formatting:
Example, in cell C2 (Case No. 1, Response Date 1):
'Cell Value' 'greater than' =WORKDAY(B2, 2)
But this approach means that I have to apply a new rule for each cell to replace B2 with D2, F2, B3, etc.
Is there an efficient way of approaching this? I would have thought that by using tables the conditional formatting should 'update' the cell reference, but this does not appear to be the case.
Thanks!