Select Cells A2 to A10 but firstly select Cell A2 then A10 .... Now Go in Format > Conditional Formatting > Select condition 1 Formula is and write =$A$1="X" in right box now select format > Pattern and select gray shade ......
Never ashamed to get or give Advise.
Muhammad Mubashir Aziz , Lodhran