Conditional formatting for non-empty cell

Solved
dzouve Posted messages 32 Registration date   Status Membre Last intervention   -  
dzouve Posted messages 32 Registration date   Status Membre Last intervention   -
Hello,
I would like to know how to apply conditional formatting in Excel 2007 for a non-empty cell
Here is my example

In cell A1, there is a name (always)
In cell A2, there is a name from time to time

I want the conditional formatting to set cell A1's background to red if cell A2 is not empty.

My question is what method to use and please confirm that I should apply the formatting directly linked to cell A1
Thank you in advance for your help

Joel
Configuration: Windows Vista Internet Explorer 7.0

1 réponse

Vaucluse Posted messages 27336 Registration date   Status Contributeur Last intervention   6 453
 
Good evening
  • Select cell A1 (or the row if necessary)
  • Home tab / Conditional formatting / new rule and
  • use a formula... etc
  • enter the formula:
    =ISTEXT(A$2)
  • enter the format

Best regards
17
dzouve Posted messages 32 Registration date   Status Membre Last intervention   8
 
Thank you very much, it's exactly what I needed
Joel
5