excel2007.Tips.Net Welcome toExcel2007.Tips.Net

Helpful Links

Excel 2007 Home
Tips.Net Home

Ask a Question
Make a Comment

Excel2007 Tips
Family Tips
Money Tips
Organizing Tips

Newest Tips

Changing a Link's Source

Using Conditional Formatting to Shade Rows

Editing by Moving and Copying

Making Sure Duplicate Names Aren't Entered

Applying a Conditional Format to a Full Row

Hiding Worksheet Tabs

Making Cells Flash

 

Specifying a Multi-Level Sort

Summary: One way you can easily work with data in a worksheet is to sort it into whatever order you find most helpful. Excel allows you to perform sorting based on the criteria you determine, as discussed in this tip.

By using the sorting capabilities of Excel you can perform complex sorting of either an entire list or any portion of a list. If you want to sort an entire list, you only need to select a single cell within the list. If you want to sort a portion of a list, you need to select those rows (they must be contiguous) that you want sorted.

  1. Display the Data tab of the ribbon.
  2. Click the Sort tool. Excel displays the Sort dialog box. (Click here to see a related figure.) Using this dialog box, sorting is performed according to criteria you set.
  3. Use the Sort By drop-down to select the field (or column) by which you want to sort.
  4. Click Add Level each time you want to specify a secondary sorting key.
  5. Specify for each sorting key whether you want that field to be sorted in ascending or descending order.
  6. Click the Options button to display the Sort Options dialog box where you can specify whether you want capitalization to matter and whether you want to sort rows or columns. (Click here to see a related figure.)
  7. Click on OK to close the Sort Options dialog box.
  8. Click on OK to complete your sort.

The First Key Sort Order option probably needs explanation. You will rarely need to change the value of this field. There will be times, however, when you will want to make changes. For instance, your primary sorting key might contain days of the week (Monday, Tuesday, Wednesday, and so on), and you want them to sort in proper chronological order. This is one of the sort orders you can specify in this field. You should pick a First Key Sort Order that most closely matches the needs of your data.

Related Tips:

Step Up and Take Control! Subscribers to WordTips know just how valuable a resource it is. WordTips Premium provides twice the number of exceptional, easy-to-understand tips every week in an ad-free newsletter, as well as substantial discounts on WordTips archives and e-books. Check out WordTips Premium today!