Question : Excel 2007 - Conditional formatting Contingent on an Adjacent Cell

Good evening,
     I am using Excel 2007, and I am trying to conditional formatting to format a cell contingent on the cell adjacent to the cell, and on the contents in the cell itself.  Man, was that a load of bull :)

     Ok, say that I input a currency value into cell A2 that represents the amount of money I wrote a check for, and once the check has cleared on my bank's website I put a "*" in cell B2.  So, if both of the below criteria are met, then I want cell B2 to turn yellow, but if they are not met, then I don't want anything to happen.  Here is the formula I am trying to use, but it is not doing anything, not an error or a color change:  =AND(A2<>0,B2<>"*")

     Will conditional formatting not work when referencing a different cell?  I use this formula to turn the currency fields orange if the number has been entered more than once in the same column: =COUNTIF(A$2:A$149,A2)>1

     I don't understand why it is not working; please help...  Thanks in advance for the help, Jon

Answer : Excel 2007 - Conditional formatting Contingent on an Adjacent Cell

And you can overcome both the text problem in A2 and space problem in B2 with:
=AND(ISNUMBER(A2),A2<>0,COUNTIF(B2,"*~**")=0)
Random Solutions  
 
programming4us programming4us