Skip to content

Sort in your own order or by color

Work with long lists8 minPremium

Builds on Sort by one or more columns.

A facilities coordinator in Rotterdam keeps a list of repair requests. Sorted A to Z, the priorities come out as High, Low, Medium, and the requests she shaded red for safety end up scattered down the list.

How it works

A to Z and Smallest to Largest follow the alphabet and the number line. For any other order, you give Excel the order in the Sort dialog (Data > Sort).

For words that go in a fixed order, set Order to Custom List. Pick one of Excel's built-in lists, the days of the week and the months in short and long form, or type your own, one entry per line, and click Add. Excel keeps the new list for later sorts, under File > Options > Advanced > Edit Custom Lists (Excel > Preferences > Custom Lists on a Mac).

For colors, set Sort On to Cell Color or Font Color, pick the color and choose On Top or On Bottom. One level handles one color, so to put red rows first and yellow ones after them, add a second level for yellow.

Example

The coordinator's first sort level is Priority, with Order set to her own list: Urgent, Soon, Later. The second level is Location, A to Z, so within each priority the jobs are grouped by building.

Common mistakes

  • Priorities sorted A to Z come out High, Low, Medium. Sort them by a custom list in the order you mean.
  • Excel's built-in weekday lists start on Sunday. For a week that starts on Monday, add your own list, Mon to Sun.
  • Month names typed as text sort alphabetically, so Apr and Aug come first. Use the Jan to Dec list, or, when the cells hold real dates shown as month names, sort Oldest to Newest.
  • A color level brings only its own color to the top. With red on top and no level for yellow, the yellow rows stay mixed in with the rest.

In short

  • Custom List, under Order in the Sort dialog, sorts words in an order you choose.
  • The built-in lists cover the days, starting on Sunday, and the months.
  • Sort On Cell Color or Font Color moves one color to the top or the bottom; add a level for each color.
  • Combine levels: a custom list first, then a date or A to Z within each group.

Practice

Premium

4 sorts and filters.

Practice is part of Premium

Every lesson is free to read, and you can practice the free lessons without an account. This lesson's exercises are part of Premium, which you add to a free account.