Using "If" combined with "AND" statements

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to enter a formula as below, but it is not accepted.

=IF(G3>0 'AND' g3<251,G3*1.2,0)

Can anyone help with where I am going wrong. With Thanks.
 
You're actually pretty close...

Try this:
=IF(AND(G3>0,G3<251),G3*1.2,0)

or...another variation:
=AND(G3>0,G3<251)*(G3*1.2)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)
 
Back
Top