I'm creating a formula to limit the entry of "S", "H" and numbers between 0-25 (exclussive) in multiple cells. I tried the formula below but not working.

HTML Code: