StevenHPerry
New Member
- Joined
- Jul 17, 2009
- Messages
- 3
How can I check cells for equality if they are variably a number, a number stored as text, and/or an alphanumeric?
My data could be any of these
231.0
231 (as text)
231A
The numeric portion will always be 3 digits (201-299), but can be stored as number or text. The optional alpha character will always be (a-z) or (A-Z).
My desired result is
231.0 = 231 (text) => True
231A = 231.0 (number) => False
231A = 231 (text) => False
And obviously if the numeric portion is different, they should not evaluate to true either.
235 = 231 => False
235A = 231A => False
231.0 = 299A => False
I've tried casting all items to text using for instance "If(IsNumber(231.0),Text(231.0,"###")" and then doing a straight comparison and also as a subtraction not equal to zero.
I'm stumped on this one... but maybe the answer is obvious to someone else?
My data could be any of these
231.0
231 (as text)
231A
The numeric portion will always be 3 digits (201-299), but can be stored as number or text. The optional alpha character will always be (a-z) or (A-Z).
My desired result is
231.0 = 231 (text) => True
231A = 231.0 (number) => False
231A = 231 (text) => False
And obviously if the numeric portion is different, they should not evaluate to true either.
235 = 231 => False
235A = 231A => False
231.0 = 299A => False
I've tried casting all items to text using for instance "If(IsNumber(231.0),Text(231.0,"###")" and then doing a straight comparison and also as a subtraction not equal to zero.
I'm stumped on this one... but maybe the answer is obvious to someone else?