Why conditional formatting is not working properly?