ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Why does the following formula not work: =IF(2<A1<=2.25,2.25," ") (https://www.excelbanter.com/excel-worksheet-functions/147254-why-does-following-formula-not-work-%3Dif-2-a1-%3D2-25-2-25-a.html)

beava37

Why does the following formula not work: =IF(2<A1<=2.25,2.25," ")
 
I typed this in, where the reference A1 was equal to 2.1. The result should
be 2.25, but for some reason it gives me the " " was a result. Please let me
know how I can correct my formula to get the correct result.

Dave Peterson

Why does the following formula not work: =IF(2<A1<=2.25,2.25," ")
 
=if(and(2<a1,a1<=2.25),2.25,"")



beava37 wrote:

I typed this in, where the reference A1 was equal to 2.1. The result should
be 2.25, but for some reason it gives me the " " was a result. Please let me
know how I can correct my formula to get the correct result.


--

Dave Peterson


All times are GMT +1. The time now is 07:33 AM.

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