Why does =FALSE<10000000000 evaluate as FALSE and =FALSE>10000000000 evaluate as TRUE? I have tried some different numbers and this seems to always be the case.
Why does =FALSE<10000000000 evaluate as FALSE and =FALSE>10000000000 evaluate as TRUE ? I have
Share
This is by design. Search help for “Troubleshoot Sort” to see the default sort order.
The default sort order matters because that is how Excel was designed to compare different data types. Logical values are always after text and numbers. Error values are always after that. Blanks are always last. When you use comparison operators (<, <=, =, etc.) it uses the same comparison algorithm as the sort (or more likely, the sort alogrithm uses the comparison operator code, which makes them identical).
TRUE<>1according to the sort order, but--TRUE=1. The formula parser recognized that you’re trying to negate something. If it’s a Boolean value, it converts it to 0 or 1. There’s nothing 0-ish or 1-ish about the Boolean value, it’s just the result of an internal Type Coercion function. If you type--"SomeString"it does the same thing. It sends the string into the Type Coercion function that reports back ‘Unable to coerce’ and ends up as #VALUE! in the cell.That’s the ‘Why it behaves that way’ answer. I don’t know the ‘Why did they design it that way’ answer.