[Solved] IF function test between two values not working
Posted: Sun Jul 18, 2010 8:42 pm
Hi, I'm trying to create an IF function that outputs point values in the following way:
When cell $X$1 is populated with the value -0.06, this formula returns my absurd value of 100000000.
Is it not allowed to have a tested value be between two different values? Is there a better way to do this? The simple value tests (less than or equal to -0.1 and g. than or = to 0.1) work just fine, it's only this one with the cell value sandwiched between two other values that it breaks down.
Thanks for your help or ideas.
Dave
- If a cell value (let's say cell $X$1) is less than or equal to (let's say) -0.1, the point value I want it to return is 100
If the cell value is between -0.1 and 0.1, I want it to return 0.
If the cell value is greater than or equal to 0.1, I want it to return -100
If none of these conditions in met (a logical impossibility) I want it to return an absurd number to call my attention to the problem, let's say 100000000
Code: Select all
=IF(-0.1<$X$1<0.1;0;100000000)Is it not allowed to have a tested value be between two different values? Is there a better way to do this? The simple value tests (less than or equal to -0.1 and g. than or = to 0.1) work just fine, it's only this one with the cell value sandwiched between two other values that it breaks down.
Thanks for your help or ideas.
Dave