Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 925

IF Formula Greater Than Zero Comparison Returns TRUE For Text Values

$
0
0

I was troubleshooting what I thought was a basic IF formula that I expected to produce a FALSE result. The formula is:

=IF(A1>0,"True value","False value")

The formula is placed in cell C1. When the value of cell A1 is a text value, the result of the IF function is "True value" (without the quotes). I was expecting the result to be "False value" because the value in cell A1 is text. This happens when using obvious text, like a value that contains only letters (like "yellow")!

What is going on? I read this post from a user who conducted his own experiments about this problem. I accept his explanation at face value, but can somebody PLEASE provide a more technical explanation as to why text is considered greater than zero in Excel? My expectation was that Excel would error out when using a greater than comparison operator on text.


Viewing all articles
Browse latest Browse all 925

Trending Articles