If function, exclude negative numbers
Solved
V Perfectionnement
Posted messages
2
Status
Member
-
V Perfectionnement Posted messages 2 Status Member -
V Perfectionnement Posted messages 2 Status Member -
Hello,
I have a problem with the IF function. I entered: =IF($N6<1000*($N6>0,1);$N6;0)
I want my result (N6) to display only if it is between 0.1 and 1000. However, it doesn't understand that I don't want to include negative results.
Does anyone have a solution for me?
Thank you very much!
I have a problem with the IF function. I entered: =IF($N6<1000*($N6>0,1);$N6;0)
I want my result (N6) to display only if it is between 0.1 and 1000. However, it doesn't understand that I don't want to include negative results.
Does anyone have a solution for me?
Thank you very much!
Configuration: Windows XP Internet Explorer 7.0
3 answers
-
Good evening,
You can try: =IF(AND($N6>0.1;$N6<1000);$N6;0)
--
Experience: a name that men give to their mistakes.
Oscar Wilde -
Hello,
try this: =IF(AND($N6<1001;$N6>0);$N6;0)
or
=IF(AND($N6<1001;$N6>0);$N6;"") if you want your cell to remain empty if the number is not between 0 and 1000. Also, I put <1001 so you can display 1000; if you want to stop at 999, use <1000.
Have a nice day
--
Every problem has a solution... you just need to be persistent. -
Good evening,
or add some ( ) to your formula:
=IF(($N6<1000)*($N6>0.1),$N6,0)
eric