adding range of numbers to if statement with three criteria

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

Guest

Hi everyone,

Existing if statement

=IF(AL12=0,1,IF(AL12<0,"q","p"))

I would like to amend this to say that if AL12 is between -5 and 5 return 1
if less than -5 return q and greater than 5 return p.

Is this at all possible?

Thanking you in advance
 
Hi Mifty

Hope this will do it:

=IF(AL12<-5,"q",IF(AL12>5,"p",1))
 
Mifty said:
Existing if statement
=IF(AL12=0,1,IF(AL12<0,"q","p"))

I would like to amend this to say that if AL12 is between -5 and 5 return 1
if less than -5 return q and greater than 5 return p.

=if(AL12<-5, "q", if(AL12>5, "p", 1))
 

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


Back
Top