Beginning PivotTables in Excel 2007 will introduce you to the exciting new pivot table features in Excel 2007. Create quick summaries and pivot charts, add impact with traffic light icons, design calculated fields, group dates and numbers.

Categories

Archives

Learn how to create Excel dashboards.

Sort It Your Way With Excel Custom Lists

You know how to sort an Excel list alphabetically, and with Excel 2007 you can even sort an Excel list by colour. Did you know that you can also create a custom list in Excel and use that to sort your data, instead of sorting in alphabetical or numerical order?

Instead of sorting the products in this table alphabetically, we’ll create a custom list of products, and use it when sorting the list.

CustomSort01

Create a Custom List in Excel

You can create a custom list in Excel by importing a list from a worksheet, or by typing a new list. In this example, there is a worksheet named Lists, and it contains a product list. We’ll import that list, to create the custom list.

CustomSort02

To create the custom list:
  1. Select the cells that contain the list items
  2. On the Ribbon, click the Office Button, then click Excel Options.
  3. In the Popular category, click Edit Custom ListsCustomSort03
  4. In the Custom Lists dialog box, the list address -- $A$2:$A$5 -- should appear in the Import range box. If not, you can click in the Import range box, and type a range, or select a range on the worksheet.CustomSort04
  5. To add the selected range as a custom list, click the Import button.
  6. The list items will appear in the List entries section of the Custom List dialog box, and at the end of the list of existing Custom Lists.CustomSort05
  7. Click OK to close the Custom Lists dialog box, and click OK to close the Excel Options window.
Use the Custom List

You can use the custom lists when sorting, and you can also use them with the AutoFill feature. Type any item from a custom list in a cell, then use the Fill handle to complete the list.

CustomSort07

Sort the Excel List in Custom Order

To sort your list based on your custom list, follow these steps:

  1. Select a cell in the table that you want to sort.
  2. On the Ribbon’s Data tab, click Sort
  3. In the Sort dialog box, select a Column from the first drop down, and select Values from the Sort On drop down.
  4. In the Order drop down, click Custom List
  5. In the Custom List dialog box, select your custom list, and click OKCustomSort06
  6. Click OK to close the Sort dialog box

The list is sorted in the order of the items in your custom list.

Watch the Excel Sort Video

To see the steps for adding an Excel Custom List, then sorting by that Custom List, watch this short Excel video tutorial.

More Sort Options

After I wrote about sorting by colour, Jim Cone offered me a copy of his Special Sort Excel add-in. I finally had a chance to test it, and although I’m still not a fan of sorting by colour, the add-in has several sort options that would be useful. Instead of spending time on workarounds and formulas in helper columns, you can use the add-in. For example, you can:

  • sort a list by the length of the text in the cells
  • ignore leading articles (A, An, The)
  • sort based on the reverse order of the cell contents
  • sort by numbers at the end of the cell text

You can download the full trial version of Special Sort, to see how it works. Then, to buy the Special Sort add-in ($19 US), contact Jim by email -- james.cone@comcast.net

Jim also has other free Excel add-ins and trial version Excel add-ins that you can download.

SpecialSort01

____________

6 comments to Sort It Your Way With Excel Custom Lists

  1. Excel Links – Back to India Edition | Pointy Haired Dilbert: Learn Excel Online - Chandoo.org
    March 15th, 2010 at 4:36 am

    [...] first chapter online on his blog for all of us to read and gain some cool access wisdom. Go! How to use custom lists to change the sort orderSome of you may know that when you write “Jan”, “Feb” in 2 cells and fill [...]

  2. Clarity
    March 15th, 2010 at 8:10 am

    A great tip. I can imagine some useful applications of this in the future. Especialy with a bit of VBA to take care of some of the steps.

  3. Jie
    March 15th, 2010 at 8:46 am

    How can you do this with Excel 2010???

  4. Georges
    March 22nd, 2010 at 10:06 pm

    I usually use this to be able to sort my project status report, I have a column with Red Yellow and Green overall status (that I need the items in this order) also another column with priority High, Medium, Low (that I also need in this order).
    It is useful in any category that you need in a specific order (Summer, Fall, Winter, Spring - for instance)

  5. Debra Dalgleish
    March 23rd, 2010 at 12:56 pm

    Thanks Georges, those are great examples of custom sorting.

  6. anonymous
    May 11th, 2010 at 2:16 am

    For Excel 2010,

    1. Click Home at the Ribbon.
    2. Select Advance.
    3. Look for "Custom Edit List"
    4. Just click the Import button.

    Viola, you have the create a customised list.

    Have fun.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>