OaklandJim
Well-known Member
- Joined
- Nov 29, 2018
- Messages
- 855
- Office Version
- 365
- Platform
- Windows
Team Mr. excel
I am trying to make a Gantt chart worksheet. Need to use conditional formatting. I thought that I was adept at writing formulas for conditional formatting. But I'm having trouble with this. I am using this formula -- which works in worksheet cells -- =ISNUMBER(MATCH(TEXT(rcDayDate,"ddd"),WorkDaysInAWeek,0)) to detect "current" date is a workday.
rcDayDate is a name whose RefersTo is a basic relative address like L$5. For a given cell within the Gantt chart range it refers to the cell containing the date being "processed." WorkDaysInAWeek is merely a named range containing a list of day names that are within the workweek like "Mon","Tue","Wed","Thu" for a four day workweek.
Aside: I searched on-line and it seems that conditional formatting is ok with relative addressing.
As I said above, the formula works (returns true or false) when used in cells. But the conditional formatting does not seem to get that formula to evaluate to true or false.
Any guidance would be appreciated. Is my formula not acceptable? Should I try helper cells in each column that say true or false and refer to those in the conditional formatting.
I really appreciate your assistance.
Jim
I am trying to make a Gantt chart worksheet. Need to use conditional formatting. I thought that I was adept at writing formulas for conditional formatting. But I'm having trouble with this. I am using this formula -- which works in worksheet cells -- =ISNUMBER(MATCH(TEXT(rcDayDate,"ddd"),WorkDaysInAWeek,0)) to detect "current" date is a workday.
rcDayDate is a name whose RefersTo is a basic relative address like L$5. For a given cell within the Gantt chart range it refers to the cell containing the date being "processed." WorkDaysInAWeek is merely a named range containing a list of day names that are within the workweek like "Mon","Tue","Wed","Thu" for a four day workweek.
Aside: I searched on-line and it seems that conditional formatting is ok with relative addressing.
As I said above, the formula works (returns true or false) when used in cells. But the conditional formatting does not seem to get that formula to evaluate to true or false.
Any guidance would be appreciated. Is my formula not acceptable? Should I try helper cells in each column that say true or false and refer to those in the conditional formatting.
I really appreciate your assistance.
Jim