# Sort data in Excel

Hi I have a group of data. it looks like it below, which is consist of four data:

11.18.13.12
11.12.22.22
33.37.39.33
111.13.1.1

Each data has four section, which is separated by point"." I would like Excel to compare first section of each data first, and then compare second section of each of data. However after sorting, it looks like this:

11.12.22.22
11.18.13.12
111.13.1.1
33.37.39.33

Any one can give some suggestion ? thank you
###### Who is Participating?

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Excel & VBA ExpertCommented:
Right click in a cell with data --> Sort --> Select A to Z for ascending order.

Doesn't this work for you?
Commented:
You have to create one or more extra columns to sort on. Here is a simple example. In this example, you would sort as numbers columns E, F, G and H.

You could also combine all the formulas from each of those columns to create a single column that will sort correctly, but that takes more time than I have at the moment.

SORT-EXAMPLE.xls

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Author Commented:
Thank you so much for your fast reply and good suggestion. I can import the data into Excel with the point. then I got four columns. then it could be sorted! but after sorting, how to change it back into one column with point ?
Commented:
Not sure I understand. Aren't you looking for the original column, just sorted?
Commented:
Here, in column M, the text column is created using 4 number columns. If you have numbers with more than 5 digits, you need to adjust the number of "#"s in the formulas in columns I through L.
SORT-EXAMPLE.xls
Author Commented:
Excellent! you solved my issue. Thank you!
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.