Where can I learn about how COUNTIF treats Strings with comparison operators? In particular, how it compares strings and numeric values?
Where can I learn about how COUNTIF treats Strings with comparison operators? In particular, how it compares strings and numeric values?
I always convert a numeric value to a string before comparing, adding a default (or calculated) number of leading zeroes first.
For example:
That way, you are now always comparing strings to strings and the results are more predictable.![]()
A Z --- ... --- 42 =IF(ISNUMBER($A1),RIGHT("00000"&$A1,5),$A1) 3 00003 XYZ XYZ 2 00002 1 00001 999 00999 ABC ABC 333 00333
_______________
Floyd Emerson
Business Intelligence Consultant
Perth, Western Australia
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks