Thanks, David.
ISTEXT returns FALSE; ISNUMBER returns TRUE.
The LEFT command works well - thank you.
Btw, even if I start with a fresh worksheet, and enter numbers to create a
5-4 ZIP (like 32034-1234) the Format>Cells>Special>Zip Code command does not
convert the entry to 5 digits. Should it?
Mike
ISTEXT is going return TRUE to the 5-4 zip code. If you enter
00000-1111, Excel assumes its a text entry, otherwise there'd be
confusion on whether it was a zip or a subtraction formula. Strings like
12345 are assumed to be numbers, unless you tell it otherwise, and you
can format numbers to have leading and trailing zeroes, but you can't
format text like that.
My wish is that people would treat zip codes, telephone numbers, serial
numbers (e.g part numbers) as they would text, because nobody is going
to do any calculations to those, except as a text character string.
Maybe clearer, maybe not. Hope it is.
Beege
> Thanks, David.
>
[quoted text clipped - 48 lines]
>>>>>
>>>>> Mike
MichaelRobert - 14 May 2008 21:46 GMT
David and Beege:
What I am taking from this discussion is that the Format>Cells>Special>Zip
Code (5 digits) command will somehow change the format of 5 digits from ?? to
a 5 digit Zip Code (ie no change at all except to add any missing digits as
leading zeroes) . While the 5+4 command will change a 9 digit string into a
5-4 string.
Is that right? If so, it hardly seems worth having a special command.
Mike
> ISTEXT is going return TRUE to the 5-4 zip code. If you enter
> 00000-1111, Excel assumes its a text entry, otherwise there'd be
[quoted text clipped - 63 lines]
> >>>>>
> >>>>> Mike