Sort data using a custom list

With built-in custom lists, you can sort data—either by days of the week or months of the year. Optionally, you can create your own custom lists to sort by any other characteristic that doesn’t sort well alphabetically—such as high, medium, and low—or S, M, L, XL.

With custom lists, you could sort this worksheet either by Delivery month or by Priority.

Sample table

Sort by days of the week or months of the year with a built-in custom list

Follow these steps:

  1. Select the columns to sort.

    Note: For the best results, each column should have a heading.

  2. In the ribbon, click Data > Sort.

    Sort button

  3. In the Sort popup window, in the Sort by drop-down, choose the column on which you need to sort.

    For example, if you want to re-sort the previous example by delivery date, under Sort by, choose delivery.

    Sort by the delivery column

  4. From the Order drop-down, select Custom List.

    Sort dialog box

  5. In the Custom Lists box, select the list that you want, and then click OK to sort the worksheet.

    Custom lists dialog box

Create your own custom list

Follow these steps to create your own custom list for sorting:

  1. In a column of a worksheet, type the values to sort by. Arrange them in the order that you want to define the sort order—from top to bottom. For example:

    Custom list example

  2. Select all of the cells in that list, and then click File > Options > Advanced.

  3. Scroll way down to the General section and click Edit Custom Lists...

    Edit Custom Lists

  4. In the Custom Lists box, click Import.

    Import a custom list

Tip: For a short list—such as High, Medium, and Low, it may be faster to enter it directly into the List entries box in the Custom Lists box.

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

Sort data in a PivotTable or PivotChart

Guidelines and examples for sorting and filtering data by color

Need more help?

Expand your Office skills
Explore training
Got It
Get instant Excel help
Connect to an expert now
Subject to Got It terms and conditions

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.