This is a follow up question on a solution I obtained here many years ago (One of many, thank you)

I have a very long conditional formatting equation for a group of cells that format a cell with a text entry based on the text entry of the cell to its left. The text are simple letters.
For example if the cell in question is D and the cell to the left is any of the letters A, T, P, U, H, E, or N the cell with D in it will format to Yellow. The problem is that I have 6 different letters that can be in place of D and still need to highlight yellow so I have an OR(AND statement in the formula bar.
A section of it would look like this

=OR(AND(C5="D",B5="A"),AND(C5="Z",B5="A"),AND(C5="F",B5="A"),AND(C5="Q",B5="A"),AND(C5="B",B5="A"),AND(C5="G",B5="A"),AND(C5="D",B5="T"),AND(C5="Z",B5="T"),AND(C5="F",B5="T"),AND(C5="Q",B5="T"),AND(C5="B",B5="T"),AND(C5="G",B5="T"))

I am using a statement for every possibility

Is there a proper way of simplifying the formula. I want to be able to say if C5 is "Z", or "D" or " F" etc and B5 is "A", or " T", or "U" etc to format C5 to yellow.

Thank you,
Stuart