Select A1, go to conditional formating and select isformula from drop down and paste this formula =OR(B1=12,B1=14) and then select the format option and fortmat the cell as you want.