Thread
:
IF AND statement
View Single Post
#
3
Posted to microsoft.public.excel.worksheet.functions
Don Guillett
external usenet poster
Posts: 10,124
IF AND statement
Let's see
if(g2<=0,cond1,cond2)
cond1 if(p2=12,"i","")
cond2 if(p2=12,"c","")
OR keys on p2 first
=IF(p2=12,IF(g2<=0,"i","c"),"")
--
Don Guillett
SalesAid Software
"Lupe" wrote in message
...
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
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett