EXAMPLE

=IF(OR(AND($B$5="EW",D19="W",E19="W",F19="P"),AND($B$5="EW",D19="W",E19="W",F19="W"),AND($B$5="EW",D19="W",E19="P",F19="W"),AND($B$5="EW",D19="W",E19="P",F19="P"),AND($B$5="EW",D19="P",E19="P",F19="P"),AND($B$5="EW",D19="P",E19="P",F19="W"),AND($B$5="EW",D19="P",E19="W",F19="P"),AND($B$5="EW",D19="P",E19="W",F19="W")),AF21,0)

The cells are D19,E19 & F19 and Possible Values are "W" & "P"

I am looking to expand this for 5 Cells each with 2 possible values which will return 32 possible combinations.

Is there a valid syntax that will shorten the formula, perhaps by identifying each cell and each possible value. Each possible combination will return TRUE.

I welcome any possible resolutions