Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
RagDyer
 
Posts: n/a
Default

The reason I asked for what you have in the formula bar, is because twice
you've said that you loose the 0's at the beginning *and the end*.

<<"but without the dashes and the 0's at the beginning or end"

Your example however, shows that the zeroes at the *end*, stay at the *end*.

So, at least now, we can try something, since it's *only leading* zeroes
that we have to worry about.


This worked for me.
Add a column of text formulas to "pad" the existing numbers with leading
zeroes.
This will yield nine numbers, no dashes.
This makes this "helper" column into "Text" numbers, where you will be able
to retain the zeroes while in the TTC procedure.

Remove the text formulas, leaving just the data behind.

You can then split them with the break lines as we discussed earlier, but
with only 4 columns, since we've eliminated the dashes.
<<<<<<<<<<<<<<<<<<<<<<<
Formatted SSN in Column A

Enter this formula in B1, and *double* click the fill handle, so that the
formula in B1 is *automatically* copied down Column B, as far as there is
data in Column A.

=REPT("0",9-LEN(A1))&A1

NOW, to remove the formulas and leave the data, while you *still* have
Column B selected from the formula copy, right click in the selection and
choose "Copy".
Right click again, and choose "Paste Special".
Click on "Values", then <OK, then <Esc.

You now have a column of text numbers that should work perfectly in the TTC
procedure.

Don't forget which columns to make your first, second, and third sort keys.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------



"postitnote" wrote in message
...
I can't post an exact cell because they are actual SSNs which is why I

always
give obvious examples.

I can tell you that there are two columns which contain the SSNs, one is
titled SSN and the other is MRN (medical record number). The SSN column

is
fomatted as a SSN so you just type in the number and hit enter and the

dashes
show up automatically. The MRN column is set up as an SSN in Portuguese

(do
the same steps to format it as an SSN but when it asks you for location it
says "Portugal") so there are no dashes. When I change either of these
columns to text or number, the 0's at the beginning and end disappear.

With
over 11K names per list, there's no way I can go thru and add all the 0's
back in.

So the formula bar for the SSN column reads the same number but without

the
dashes and the 0's at the beginning or end, and the formula bar for the

MRN
column reads this same number as well.

SSN MRN
000-42-0200 000420200

fx: 420200

Thank you.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
In Excel, how do I sort a column by the LAST digit of the data? DougMash Excel Discussion (Misc queries) 2 May 12th 05 08:54 PM
How can I sort multiple months/years WITHOUT Alpha order taking o. LisaMU Excel Worksheet Functions 1 April 13th 05 04:46 PM
I have two identical pivot tables with different sort order of th. WilliamJFoster Excel Discussion (Misc queries) 1 April 7th 05 03:48 AM
Tell users how to sort 5 digit and 9 digit zipcodes correctly aft. [email protected] New Users to Excel 1 February 18th 05 12:59 AM
Need to sort dates before 1900 in proper order sandage_2000 Excel Discussion (Misc queries) 3 January 8th 05 03:31 AM


All times are GMT +1. The time now is 10:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"