You've got numbers all over the sheet but I'm not sure which ones you want to format. The only ones formatting in your example lie within the range H5:M23. The shading you show does not match your description, because the odd number above 9 are not shaded gray. (Numbers in N5:N23 are yellow, which is not mentioned in your description.)
This does not require VBA; it can be done simply with conditional formatting. I have attached a sample, formatting the numbers in H5:M23. There are two rules:
Gray:
Red:
If I didn't get the range right, adjust the Applies To range, and change the reference in the formula to the cell at the upper-left corner of the range.
Bookmarks