View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lupe Lupe is offline
external usenet poster
 
Posts: 30
Default IF AND statement

Hi, I need to check on 2 columns to give me the following.
If G2 <= 0 and P2 < 12 "do nothing".
If G2 <=0 and P2 = 12 "incorrect"
If G2 0 and P2 = 12 "correct"
Here is my formula, but it does not work. I am sure missing something but I
cannot see it.
=IF($G2<=0,IF(AND($P2<12),"do
nothing",IF(AND($P2=12),"incorrect","correct")))
Thanks, Lupe