ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If between function... (https://www.excelbanter.com/excel-worksheet-functions/105470-if-between-function.html)

killertofu

If between function...
 

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(A110 & A1<=50,"YES","NO")

Thanks peeps. All help is welcome!


--
killertofu
------------------------------------------------------------------------
killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024
View this thread: http://www.excelforum.com/showthread...hreadid=572473


Franz Verga

If between function...
 
killertofu wrote:
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(A110 & A1<=50,"YES","NO")

Thanks peeps. All help is welcome!



Try this way:

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

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy



Franz Verga

If between function...
 
Franz Verga wrote:
killertofu wrote:
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(A110 & A1<=50,"YES","NO")

Thanks peeps. All help is welcome!



Try this way:

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



Also

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

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy



killertofu

If between function...
 

Thank you very much!


--
killertofu
------------------------------------------------------------------------
killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024
View this thread: http://www.excelforum.com/showthread...hreadid=572473



All times are GMT +1. The time now is 12:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com