Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to sort list of numbers separated by commas in Excel?

Sorting a list of values in ascending or descending order is quite common in our daily Excel jobs, but have you ever tried to sort numbers separated by commas in an Excel cell as below screenshot shown? In this article, I introduce the tricks to quickly handle it.
doc sort comma separated number 1

Sort comma separated values with Text to Columns function

Sort comma separated values with Kutools for Excelgood idea3


Split Cells

With Kutools for Excel's Split Cells, you can quickly split one single cell or a range cells into multiple rows/columns based on specific separator or fixed width.
doc split cell

Excel Productivity Tools

Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial

Kutools for Excel: Save 70% of your time and solve 80% Excel problems for you. 300+ advanced features designed for 1500+ work scenario, make Excel much easy and increase productivity immediately. 60-day Unlimited Free Trial


Sort comma separated values with Text to Columns function


To sort comma separated values in a cell, you need to separate the numbers into separated cells first by Text to column, transpose them to a list, and then sort.

1. Select the cells you want to split to separated cells by comma, and click Data > Text to Columns. And in the step 1 of Convert Text to Columns Wizard, check Delimited option. See screenshot:
doc sort comma separated number 2

2. Click Next to go to the step 2 of the Wizard, and check Comma checkbox, and click Next to go to step 3 of the Wizard, select one cell to out put the split values. See screenshot:
doc sort comma separated number 3

3. Click Finish, and the comma separated values have been split into cells. See screenshot:
doc sort comma separated number 4

4. Select the split cells, and press Ctrl + C to copy them, and then select a blank cell, right click to show the context menu, click Paste Special > Transpose. See screenshot:
doc sort comma separated number 5

Then the values have been transposed as below screenshot shown:
doc sort comma separated number 6

5. Select one column of the transposed values, click Data tab, and select a sorting order as you need in the Sort & Filter group. In the popping Sort Warning dialog, please check the Continue with the current selection option, and click the OK button.
doc sort comma separated number 7 doc sort comma separated number 8

And now the selected column is sorted in the specfied order. See screenshot:
doc sort comma separated number 9.png

6. Then repeat step 5 to sort the transposed values one by one. See screenshot:
doc sort comma separated number 1


  Sort comma separated values with Kutools for Exce

If you have Kutools for Excel, you just need to split the comma separated values from one cell to rows by the Split Cells utility, and then sort.

Kutools for Excel, with more than 120 handy functions, makes your jobs easier. 

After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)

1. Select the range you want to split by comma separated, and click Kutools > Text > Split Cells, and in the Split Cells dialog, check Split to Rows option in Type section, and go to check Other in Split by section, and enter , into the beside textbox. See screenshot:
doc sort comma separated number 10

2. Click Ok, a dialog pops out to remind you to select a cell to place the split values, click OK, and the range values have been split into rows by commas. See screenshot:
doc sort comma separated number 11
doc sort comma separated number 12

3. Select one of split columns, click Data > Sort Smallest to Largest or Sort Largest to Smallest as you need, and finally check the Continue with the current selection option and click OK button in the popping Sort Warning dialog. See screenshot:
doc sort comma separated number 7 doc sort comma separated number 8

4. Repeat above Step 3 to sort all split columns one by one.
doc sort comma separated number 1

Tip. If you want to have a free trial of the Split Cells function, please go to free download Kutools for Excel first, and then go to apply the operation according above steps.


Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 80% Excel problems.

  • Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  • Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  • Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  • No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  • Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  • 60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  • Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Nic · 1 years ago
    thanks this was very helpful