View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Teethless mama Teethless mama is offline
external usenet poster
 
Posts: 3,718
Default IF AND statement

=IF(AND(G2<=0,P2=12),"incorrect",IF(AND(G20,P2=12 ),"correct",""))


"Lupe" wrote:

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