Forum Discussion
Simpler Roster Conflict
- Aug 04, 2021
Hopefully this is better; I rather missed the point on the conditional formatting. This time I defined a Boolean 'Conflict?',
= IF(ISTEXT(currentAssigned), COUNTIFS( otherAssigned, currentAssigned, otherStart, "<"¤tFinish, otherFinish, ">"¤tStart ) > 1)
based upon relative references, to control the format.
I was rather hoping someone would have posted a solution to this question before I posted 'work-in-progress' which hopefully will lead to a completely dynamic solution once I have the new Lambda helper functions. As it is, I still have some relative referencing.
The underlying data is essentially 3 arrays (rostered team, start time and finish time) combined by interlacing rows and columns. Although it is easy to extract the constituent arrays, aggregations (normally requiring COUNTIFS) are tricky when one is working with arrays rather than range references. Even something as simply as summing the rows is not easy when working with arrays (MMULT could be used) but, as a temporary fix, I have fallen back on relative referencing.
The conditional formatting seems to work. Being antiquated functionality, there is no alternative to single-cell, relative referencing.
Conditional format
= IF( ISTEXT(currentCell),
COUNTIFS(currentColumn,currentCell) > 1)
PeterBartholomew1 Also Peter, the hours tallied weekly formula is brilliant. A million times better that embedded IF's 🙂 Now I need to research LET .... Thanks again 🙂