Applies To
Excel for Microsoft 365 Word for Microsoft 365 Outlook for Microsoft 365 PowerPoint for Microsoft 365 Excel 2024 Word 2024 Outlook 2024 PowerPoint 2024 Excel 2021 Word 2021 Outlook 2021 PowerPoint 2021
Your browser does not support video. Install Microsoft Silverlight, Adobe Flash Player, or Internet Explorer 9.

Try it!

When your table contains data that is best presented in alphabetical or numerical order, sort it.

Note: These instructions are for Word and Excel. The sort option is not available in PowerPoint.

Sort a table in Word

  1. Select anywhere in the table.

  2. On the Table Layout tab, select Sort.

  3. Choose your sort criteria:

    • Select the column you want to Sort by.

    • To sort on a second column, select Then by and select another column.

    • Select Ascending or Descending.

    • To keep the header row at the top of the table, select Header row.

  4. Select OK.

Note: If you get a "This entry is not valid for sorting" error, select the drop down under Sort by and choose a column or header.

Sort a table in classic Outlook

  1. In a message, select anywhere in the table.

  2. On the Table Layout tab, select Sort.

  3. Choose your sort criteria:

    • Select the column you want to Sort by.

    • To sort on a second column, select Then by and select another column.

    • Select Ascending or Descending.

    • To keep the header row at the top of the table, select Header row.

  4. Select OK.

Note: If you get a "This entry is not valid for sorting" error, select the drop down under Sort by and choose a column or header.

Sort a table in Excel

  1. Select a cell in the column you want to sort.

  2. On the Home tab, select Sort & Filter.

  3. Select how you'd like to order it: Sort A to Z, Sort Z to A, or Custom Sort.

    For a Custom Sort:

    • Choose your Sort by, Sort on, and Order sort criteria.

    • To set additional filters, select Add Level and choose your sort criteria.

      Important: The second level sort only takes effect if two or more values in the first column are the same.

    • Select OK.

Want more?

Sort the contents of a table

Sort data in a range or table

Word help & learning

Excel help & learning

PowerPoint training

Outlook training

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.