How do you sort numerically in Excel, not by the first digit but the entire number?

Anonymous
2024-06-27T17:35:57+00:00

My excel is sorting by the first digit in the cell. I need it to sort the entire number. It is sorting as follows:

013

093

100

1000

20

2000

I need it to sort in actual numerical order, by the entire number.

Am I missing something? Sort only gives A to Z.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. HansV 462.4K Reputation points MVP Volunteer Moderator
    2024-06-27T19:24:16+00:00

    This means that your data are text values even thought they look like numbers.

    Select the range, then click Sort & Filter > Custom Sort... in the Editing group of the Home tab of the ribbon.

    Click OK.

    Excel should ask you what you want.

    Select the option to sort anything that looks like a number. as a number, then click OK.

    7 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-06-27T19:34:05+00:00

    Hi, cdt728

    Thank you for using Microsoft products and publishing them in the community.

    You can follow the steps below:

    First, make sure your numbers don't have any leading zeros or text formatting. If they do, you will need to convert them to a plain number format.

    Select the column containing the numbers.

    Go to the Data menu bar and select the Sort button.

    In the Sort dialog box, select "Cell Value" as the basis for sorting.

    Select "Ascending" or "Descending" to determine the direction of the sort.

    Confirm your selection and click "OK" to finish sorting.

    I hope the above information can help you. Feel free to send a message if you need further help.

    Best wishes

    Aiden.C - MSFT |Microsoft Community Support Specialist

    2 people found this answer helpful.
    0 comments No comments