You have to use conditional formatting to achieve this. Select the Cell A3, go to conditional formatting (should be home ribbon or formatting menu). Specify a rule like if cell is not empty, and then select background color for the format.
See some examples here: http://chandoo.org/wp/2009/03/13/excel-conditional-formatting-basics/