Excel If Functions

Copper Contributor
I created If function as shown in attached picture =if (c1>=10;2;0) then if I type a letter or text into c1 it show me the true value
Why excel understand that letter or text as number >=10
  • if
10 Replies

@Mfouad2255 ,

 

In Excel with comparing operators any logical value is always more than any text, and any text is always more than any number.

Thanks for your reply
But how I can fixed this I need to type text and the value not change or give me the value if false

@Mfouad2255 

 

Sorry, I didn't catch. You type some text in c1 and compare it with 10. When you'd like to have TRUE and when FALSE, for which combination of text and 10?

I want if I type the text in C1 give me the value if false in D1
When I type text in C1 it give me the value if false in D1 not the value if true

@Mfouad2255 

 

So, to return

if in C1 is text AND in D1 is FALSE then value

and

Where to take value?

If in C1 is text and in D1 is TRUE?

If in C1 is not text? 

 

As a staring point you may use check ISTEXT(C1) and build logic based on it

Kindly see this attached file
When I type the letter A or text in C1 it give me the true value 2
And if I type 10 it give me same value

@Mfouad2255 

 

Perhaps

=IF(ISNUMBER(C1)*(C1>=10),2,0)

if I understood your logic correctly. Please see in attached file.

Yes thanks for your cooperation

@Mfouad2255 

 

You are welcome, glad to help