Tables

Sort data in a table

Sort data in a table

Sorting is one of the most common tools for data management. In Excel, you can sort your table by one or more columns, by ascending or descending order, or do a custom sort.

Your browser does not support video. Install Microsoft Silverlight, Adobe Flash Player, or Internet Explorer 9.

Before sorting a table

  1. Make sure that there are no empty rows or columns in the table.

  2. Get table headers into one row across the top.

  3. Make sure there is at least one empty column between the table you want to sort, and other information on the worksheet not in that table.

Sort the table

  1. Select a cell within the data.

  2. Select Home > Sort & Filter.
    Sort&Filter
    Or, select Data > Sort.
    DATA-Sort&Filter

  3. Select an option:

    • Sort A to Z - sorts the selected column in an ascending order.

    • Sort Z to A - sorts the selected column in a descending order.

    • Custom Sort - sorts data in multiple columns by applying different sort criteria.

      Here's how to do a custom sort:

      1. Select Custom Sort.

      2. Select Add Level.
        Add Level

      3. For Column, select the column you want to Sort by from the drop-down, and then select the second column you Then by want to sort. For example, Sort by Department and Then by Status.

      4. For Sort On, select Values.

      5. For Order, select an option, like A to Z, Smallest to Largest, or Largest to Smallest.

      6. For each additional column that you want to sort by, repeat steps 2-5.

        Note: To delete a level, select Delete Level.

      7. Check the My data has headers checkbox, if your data has a header row.

      8. Select OK.

Need more help?

You can always ask an expert in the Excel Tech Community, get support in the Answers community, or suggest a new feature or improvement on Excel User Voice.

See Also

Sort data in a range or table

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×