If between function...

  • Thread starter Thread starter killertofu
  • Start date Start date
K

killertofu

I am trying to figure out if there is a non-macro function that I can
write for this scenario:

If A1 is greater than 10 and less than 50, return YES.

Here's what I had, but it always returns false:
=IF(A1>10 & A1<=50,"YES","NO")

Thanks peeps. All help is welcome!
 
killertofu said:
I am trying to figure out if there is a non-macro function that I can
write for this scenario:

If A1 is greater than 10 and less than 50, return YES.

Here's what I had, but it always returns false:
=IF(A1>10 & A1<=50,"YES","NO")

Thanks peeps. All help is welcome!


Try this way:

=IF(AND(A1>10,A1<=50),"YES","NO")

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy
 
Franz said:
Try this way:

=IF(AND(A1>10,A1<=50),"YES","NO")


Also

=IF((A1>10)*(A1<=50),"YES","NO")

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy
 

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

Formula help 0
Average IF Function 3
Excel Need Countifs Formula Help 0
Ms Excel Multiple Logical Test Function 0
Multiple If Statements 6
IF statement query 7
how can i set up multiple conditional formulas in excel? 15
If formula 3

Back
Top