Using "If" combined with "AND" statements

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.
 
R

Ron Coderre

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top