---
description: Sometimes in a column, the cells will contains both numbers and texts. Here we will provide two methods to sort such a column.
title: 2 Methods to Sort a Column with both Numbers and Texts in Your Excel
image: https://www.datanumen.com/blogs/wp-content/uploads/2017/01/1-text-to-columns.jpg
---

-
-
-

[Home](https://www.datanumen.com/blogs/) > [Solutions](https://www.datanumen.com/blogs/category/solutions/) > [Office Solutions](https://www.datanumen.com/blogs/category/solutions/office-solutions/) > [Excel Solutions](https://www.datanumen.com/blogs/category/solutions/office-solutions/excel-solutions/) > 2 Methods to Sort a Column with both Numbers and Texts in Your Excel

# 2 Methods to Sort a Column with both Numbers and Texts in Your Excel

[Excel Solutions](https://www.datanumen.com/blogs/category/solutions/office-solutions/excel-solutions/) October 3, 2025

Share Now:

-
-
-
-
-
-
-
-

*Sometimes in a column, the cells will contains both numbers and texts. Here we will provide two methods to sort a column with numbers and texts.*

Sometimes there will be numbers and texts in the same cells in a column. If you need to sort this column, you will meet with problems. The order of the column will not be “1,2,3,4,5..”, but it will be “1,10,11,12,…2,21,22…”. Therefore, this kind of order will make your worksheet in a mess. In order to solve such a problem and sort the column with the normal order, you can use the two methods below to sort a column.

## Method 1: Text to Columns

1. Select the column in the worksheet.
2. And then click the tab “Data” in the ribbon.
3. After that, click the button “Text to Columns” in the toolbar. Then you will see the window of wizard pop up.![Text to Columns to Sort a Column](https://www.datanumen.com/blogs/wp-content/uploads/2017/01/1-text-to-columns.jpg "Text to Columns to Sort a Column")
4. In the window, choose the option according to the actual worksheet. Here we will choose the “Delimited”.
5. And then click the button “Next”.
6. In step two in the window, choose the option “Space”. If there are commas or other delimiters, you can also set by yourself.
7. And then still click “Next”.
8. After that, click the button “Finish” in the window. When you finish the setting, you will see the new contents in the worksheet.
9. In this step, select the whole range.
10. And then click the tab “Home” in the ribbon.
11. After that, click the button “Sort & Filter” in the toolbar.
12. In the drop-down menu, choose the “Sort Smallest to Largest”.![Sort]( "Sort")

And now the order of the range will be “1,2,3…”.

13. Next you need to connect those contents. Input the formula into the cell G1 in this example.

=A1& ” ” &B1&” ” &C1 &” “&D1& ” “& E1& ” “&F1

The “&” will connect the contents in the cells. And remember there are spaces between the quotation marks

14. After that, press the button “Enter” to show the result.
15. Then drag the fill handle of this cell downwards and fill this formula in the whole column.

Until now, you have finished the setting. And the order of the column will be normal.

![Result]( "Result")

## Method 2: Excel Functions

In this method, you will use the Excel function to extract numbers from cells.

1. Click a blank cell in the worksheet. Here we will click cell B1.
2. And then input the formula into cell:

=LEFT(A1,2)

Because all the numbers in this column is no more than 100, we can use the LEFT function. And the second argument is 2 in the formula.

3. And then press the button “Enter”. Therefore, the first number will appear in the cell.
4. After that, double click the fill handle of the cell and fill this column with the same formula. All the numbers will appear in the column B.![Numbers]( "Numbers")
5. And then select the new range that contains column A and column B.
6. In this step, sort the range from smallest to largest. Therefore, the original column will also be in the new order.
7. Now delete the column B. And you will also get the result in the worksheet.

Using the LEFT function to extract numbers from cells can also help you finish the task easily and quickly.

## A Comparison of the Two Methods

The above two methods will both extract the numbers and then sort a column. However, there still exist differences between the two methods. The table below shows the advantages and the disadvantages of the two methods.

| Comparison | Text to Columns | Excel Functions |
| --- | --- | --- |
| Advantages | By using this method, you don’t have to perform complex functions to extract numbers from cells. | There will only be one additional column in the worksheet. You can make your worksheet clean by simply deleting the second column. |
| Disadvantages | If you need to use the column in other range, you need to copy the new range and paste as values. As a result, there are more steps in this method. | When the forms of numbers are different, you have to develop more complex formula to extract numbers. This will cause more time and energy. |

After you reading the table, you must have a deep understanding of the two methods. The next time when you need to sort a column that contain values with numbers and texts, you will know which methods you can use.

## Ensure the Excel Security in Your Computer

Excel security is very essential for you. All the data and information in Excel files should be taken care of. Therefore, you need to prepare an Excel repair tool at hand. When you meet with Excel corruptions, you can use this tool immediately. This tool is able to [repair damaged xls](https://www.datanumen.com/excel-repair/) and solve other Excel problems. If you repair Excel quickly, you will ensure that your Excel files are safe.

## Author Introduction:

Anna Ma is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including [repair Word doc file problem](https://www.datanumen.com/word-repair/) and outlook repair software products. For more information visit [www.datanumen.com](https://www.datanumen.com/)

Share Now:

-
-
-
-
-
-
-
-

[← Previous post](https://www.datanumen.com/blogs/auto-reply-original-email-predefined-text-via-outlook-vba/)

[Next post →](https://www.datanumen.com/blogs/2-ways-remove-extra-spaces-related-footnotes-word-document/)

Comments are closed.

![Data Recovery Blog]()

Follow or like us on Facebook, LinkedIn and Twitter to get all promotions, latest news and updates on our products and company.

-
-
-

### Featured Products

- [DataNumen Outlook Repair](https://www.datanumen.com/outlook-repair/)
- [DataNumen SQL Recovery](https://www.datanumen.com/sql-recovery/)
- [DataNumen Exchange Recovery](https://www.datanumen.com/exchange-recovery/)
- [DataNumen Access Repair](https://www.datanumen.com/access-repair/)
- [DataNumen Excel Repair](https://www.datanumen.com/excel-repair/)
- [DataNumen PDF Repair](https://www.datanumen.com/pdf-repair/)
- [DataNumen Word Repair](https://www.datanumen.com/word-repair/)
- [DataNumen Zip Repair](https://www.datanumen.com/zip-repair/)

### Popular posts

```json
{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.datanumen.com\/blogs\/2-methods-to-sort-a-column-with-both-numbers-and-texts-in-your-excel\/#article","isPartOf":{"@id":"https:\/\/www.datanumen.com\/blogs\/2-methods-to-sort-a-column-with-both-numbers-and-texts-in-your-excel\/"},"author":{"name":"AuthorCCW","@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/person\/33ded6c47c77587f9158d99f05e23957"},"headline":"2 Methods to Sort a Column with both Numbers and Texts in Your Excel","datePublished":"2017-01-03T01:32:30+00:00","dateModified":"2025-10-03T09:24:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.datanumen.com\/blogs\/2-methods-to-sort-a-column-with-both-numbers-and-texts-in-your-excel\/"},"wordCount":843,"commentCount":2,"publisher":{"@id":"https:\/\/www.datanumen.com\/blogs\/#organization"},"image":{"@id":"https:\/\/www.datanumen.com\/blogs\/2-methods-to-sort-a-column-with-both-numbers-and-texts-in-your-excel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2017\/01\/1-text-to-columns.jpg","articleSection":["Excel Solutions"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.datanumen.com\/blogs\/2-methods-to-sort-a-column-with-both-numbers-and-texts-in-your-excel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.datanumen.com\/blogs\/2-methods-to-sort-a-column-with-both-numbers-and-texts-in-your-excel\/","url":"https:\/\/www.datanumen.com\/blogs\/2-methods-to-sort-a-column-with-both-numbers-and-texts-in-your-excel\/","name":"2 Methods to Sort a Column with both Numbers and Texts in Your Excel","isPartOf":{"@id":"https:\/\/www.datanumen.com\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.datanumen.com\/blogs\/2-methods-to-sort-a-column-with-both-numbers-and-texts-in-your-excel\/#primaryimage"},"image":{"@id":"https:\/\/www.datanumen.com\/blogs\/2-methods-to-sort-a-column-with-both-numbers-and-texts-in-your-excel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2017\/01\/1-text-to-columns.jpg","datePublished":"2017-01-03T01:32:30+00:00","dateModified":"2025-10-03T09:24:41+00:00","description":"Sometimes in a column, the cells will contains both numbers and texts. Here we will provide two methods to sort such a column.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.datanumen.com\/blogs\/2-methods-to-sort-a-column-with-both-numbers-and-texts-in-your-excel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanumen.com\/blogs\/2-methods-to-sort-a-column-with-both-numbers-and-texts-in-your-excel\/#primaryimage","url":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2017\/01\/1-text-to-columns.jpg","contentUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2017\/01\/1-text-to-columns.jpg","width":970,"height":545,"caption":"Text to Columns"},{"@type":"WebSite","@id":"https:\/\/www.datanumen.com\/blogs\/#website","url":"https:\/\/www.datanumen.com\/blogs\/","name":"Data Recovery Blog","description":"Discuss every aspect of data recovery","publisher":{"@id":"https:\/\/www.datanumen.com\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.datanumen.com\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.datanumen.com\/blogs\/#organization","name":"Data Recovery Blog","url":"https:\/\/www.datanumen.com\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2019\/02\/logowithouttext.jpg","contentUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2019\/02\/logowithouttext.jpg","width":296,"height":397,"caption":"Data Recovery Blog"},"image":{"@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataNumen","https:\/\/x.com\/DataNumen","http:\/\/www.linkedin.com\/company\/datanumen","https:\/\/myspace.com\/datanumen\/","http:\/\/www.pinterest.com\/datanumen\/","https:\/\/www.youtube.com\/channel\/UCVIIuuKfUBHSJauUaVP13tw"]},{"@type":"Person","@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/person\/33ded6c47c77587f9158d99f05e23957","name":"AuthorCCW","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3516ed90fc242780d3947a989f895bc46e70c3e83485d30f2b457a007906aa58?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3516ed90fc242780d3947a989f895bc46e70c3e83485d30f2b457a007906aa58?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3516ed90fc242780d3947a989f895bc46e70c3e83485d30f2b457a007906aa58?s=96&d=mm&r=g","caption":"AuthorCCW"},"sameAs":["https:\/\/www.datanumen.com\/"]}]}
```
