Forum Discussion
Conditional format cells based on overbooking of slot for a resource
Hi,
I am trying to highlight resource in column A starting cell A2. Here I will list resources and many will come more than once. This resource shall be shown as booking in time slots starting column B2. Such slots can be many (~300). Booking is shown by marking a x in corresponding cell.
If a resource comes more than once, and it has same slot more than once, then this resouce needs to be highlighted.
Example data is below:
| Resource | Slot-1 | Slot-2 | Slot-3 | Slot-4 | Slot-5 | Slot-6 | Slot-7 | Slot-8 | Slot-9 | Slot-10 | Slot-11 | Slot-12 | Slot-13 |
| M-1 | x | x | |||||||||||
| M-2 | x | x | |||||||||||
| M-2 | x | x | |||||||||||
| M-3 | x | x | x | x | x | ||||||||
| M-4 | x | ||||||||||||
| M-3 | x | x | |||||||||||
| M-4 | x | x | x | x | x |
In this case, resource M-3 cell will be highlighted.
So conditional formatting shall be in Column A.
Pls help with suitable formula,
As variant
if I understood the logic correctly. M-4 shares Slot-7, thus also highlighted
Formula is
=SUMPRODUCT(--(MMULT(TRANSPOSE(--($A$2:$A$8=A2)),--($B$2:$N$8="x")) > 1))
1 Reply
- SergeiBaklanDiamond Contributor
As variant
if I understood the logic correctly. M-4 shares Slot-7, thus also highlighted
Formula is
=SUMPRODUCT(--(MMULT(TRANSPOSE(--($A$2:$A$8=A2)),--($B$2:$N$8="x")) > 1))