I have an Excel sheet with 4 columns of data (in reality there's more, but for simplicity's sake I shaved it down). Column A denotes a given grouping, say "1" or "2". Assume there will always be at least one grouping. Column B is a random list of words with an arbitrary number of rows. So A1:B1 when taken together might mean "1: cat", A2:B2 is "2: dog", etc.
Columns C and D each hold lists of the words belonging to Group 1 and Group 2, respectively. They each have a header row denoting what group they belong to, then the rest of their rows make up the word lists. Each word list could have any number of words. Words don't have to be unique among lists either; it's often the case that the Group 1 word list is nearly identical to the Group 2 word list, only it has one additional word, or something along those lines.
I need some conditional formatting formulas that would apply to columns C and D. In C, it should mark a cell red if and only if:
- The cell is not blank.
- The cell's word does not show up at all in column B, or...
- The cell's word does show up in column B, but only next to the wrong group. In this case the wrong group would be "Group 2" since column C is for Group 1 words only.
And then in D the same process should apply, but the wrong group number would be 1 instead.
I think covering the third condition would necessarily cover the second condition, I just split them up into two because I could only figure out how to cover the simpler one.
Here's some sample data.

In column C (headed by "Group 1), nothing should be marked red since all words do show up in B alongside the right group number. In column D, everything should be marked red except for "wolf"; even though 4 out of the 6 words show up in B, they only show up next to group 1. And "bear" is simply missing altogether.
With the following formula I can cover the first 2 conditions: =and(NOT(ISBLANK($C1)),ISERROR(MATCH($C1,B:B,0)))
But I'm having trouble approaching how to cover the third condition. I've tried something along the lines of "AND(ISNUM(Match($L1,B:B,0)),ISERROR(MATCH($L$1,$A1,0))))" as an additional condition to the above formula but then nothing gets marked red at all. If anyone could point me in the right direction or has a better way of approaching this problem altogether, I would very much appreciate it.


Maybe like this:
Adjust ranges accordingly.