To give you an idea, I have applied conditional formatting in the range AZ4:BE41. Notice a lookup table in col. CA:CB. If this conditional formatting suits your requirements, you will have to create few more lookup table in the same fashion and make the changes in the current formula to reference different lookup tables for the formatting of different columns. (Because in the sheet you have merged cells which are barrier in making only one lookup table which can be referenced to all the columns. I have used the following formula for the conditional formatting in the range AZ4:BE41
=ROW()=MAX(INDEX((INDEX($AZ$4:$BE$41,,MATCH(AZ$2,$AZ$2:$BE$2,0))<>"")*(INDEX($AZ$4:$BE$41,,MATCH(AZ$2,$AZ$2:$BE$2,0))<=INDEX($CB$4:$CB$9,MATCH(AZ$2,$CA$4:$CA$9,0)))*(ROW($AZ$4:$AZ$41)),0))
Does this help?
Bookmarks