Chuck,
I'm using Excel 2003. The problem appears to be that although the Zip Code
in theoretical column A appears as a 5-digit number in Cell A1, in the
formula bar it shows up as a just a four digit number, i.e. the Zip Code
02446 shows up as 2446 in the formula bar.
Debra,
Thanks for responding. I also tried your solution and excel told me I had an
error in the formula.
Thanks for your help.
Vince
"CLR" wrote:
I don't understand Vince..........I just tried it again with some leading
zero Zips and it worked fine on my Excel 2000..........what version are you
using?...............are you sure you Copy PasteSpecial Values to get
rid of the formulas before sorting the HKelper column?
Vaya con Dios,
Chuck, CABGx3
" wrote in
message ...
Chuck,
Thanks for your reply. Close, but no cigar yet! If you apply the logical
test
[=if(LEN(A1)=5, A1 & "-" & "0000"...], the helper cloumn drops the initial
zero in zip codes starting with "0", such as those here in Massachusetts.
Even if you later try to change the format of the helper column to "Zip +
4",
you still can't get the initial zero to appear. When you then try to sort
the
worksheet by that column, the initial zero Zips don't come up first.
Vince
" wrote:
How do I combine and sort a column of zip codes that has data in both
5-digit
and 9-digit formats?
|