If Function Question

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

Guest

This should be easy. I have an if function ..
=If(g17=21or31or40or50,"segragated","non segregated")
My question is how do I make it so that if g17 equals 21 or 31 or 40 or 50,
then you will get segregated for true and non segregated for false.
 
Try this for one way:

=IF(OR(G17={21,31,40,50}),"segragated","non segregated")

HTH,
Paul
 
=IF(OR(G17=21,G17=31,G17=40,G17=50),"segragated","non segregated")

Vaya con Dios,
Chuck, CABGx3
 
=IF(OR(g17=21,g17=31,g17=40,g17=50),"segregated","non segregated")


Gord Dibben MS Excel MVP
 
You're welcome.....but I posted the same thing you did......it was Paul who
offered the nifty shorter version.


Vaya con Dios,
Chuck, CABGx3
 
So it was<g>

Thanks Paul

You're welcome.....but I posted the same thing you did......it was Paul who
offered the nifty shorter version.


Vaya con Dios,
Chuck, CABGx3
 

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

Back
Top