-----Original Message-----
Darren said:
I have a list of data in ONE column, it looks like this:
AAA.LP.SITE.CD
AANY.LP.SITE.CD
DESIGN.XT.DALLAS.CD
OPS.XT.DALLAS.CD
I'd like to sort it, leaving it in one column to look like
this:
CD.DALLAS.XT.DESIGN
CD.DALLAS.XT.OPS
CD.SITE.LP.AAA
CD.SITE.LP.AANY
Basically, to reverse the text by the delimited period,
then sort alphabetically.
[Tested in Excel 97, should work the same way or very similarly in
other versions.]
Backup your file first in case anything goes wrong.
Make sure you have at least 4 empty columns to the right of your data.
If you don't, insert some blank columns.
Select all data, then choose Data -> Text To Columns
On the first screeen of the Wizard, choose Delimited.
On the second screen of the Wizard, choose Other. In the box next to
the selection for "Other," enter a period.
On the third screen of the wizard, you can leave the default
formatting of General. Select Finish.
You should now have the original data broken into four sections.
Assuming the four sections are in columns A-D, enter the following
formula in E1: =D1 & "." & C1 & "." & B1 & "." & A1
Copy the formula in E1 down that column as far as your data goes.
Everything should look as you want it now. If it does, you can select
the results in column E, then Edit -> Copy followed by Edit -> Paste
Special -> Values. This will allow you to delete the 4 temporary
columns with the broken up pieces of the original data.
--
Greg
phobos78-marslink-net
Replace dashes and move in by 1 planet to reply.
.