Conditional formatting given the column and/or row

Hello,

how can I tweak my conditional formatting to format cells indicated by data, as in this picture?

image description

Thanks