View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Jim Thomlinson Jim Thomlinson is offline
external usenet poster
 
Posts: 5,939
Default Conditional Formatting Formula

Be careful of blank characters and you may want to add the trim function...

=AND(Trim(A1)<"", Trim(B1)<"")

--
HTH...

Jim Thomlinson


"Daviv" wrote:

I want to format a row based on the conditions of 2 cells. For example, if
cell A1 and B1 are not blanks, then row A1:F1 could be color "red". In
conditional formatting under formula, I have "AND(A1<" ", B1<" "). It is
not working. Thanks for your help in advance.
--
Thanks!