Excel.Tips.Net ExcelTips (Menu Interface)

Controlling Sorting Order

Summary: When you sort information in a worksheet, you have control over the order in which that information is sorted. Here's a quick discussion of the ways that you can affect the sorting order. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, Excel 2003, and Excel 2007.)

If you have used Excel for more than a week, you probably already know how to sort information in your worksheet. You can use sorting to arrange a list in either ascending or descending order. Ascending order for the English language is from 0–9, A–Z; descending order is the reverse. The sorting order for other languages will be different. To specify the sorting order you simply choose the Ascending or Descending radio buttons in the Sort dialog box or, in Excel 2007, choose A to Z or Z to A in the Order drop-down list.

You can also affect sort order by indicating whether Excel should pay attention to the case of the text in your cells. If a sort is case sensitive, then items are sorted A-Z and then a-z for ascending sorts. If a sort does not pay attention to case, then uppercase and lowercase letters are treated the same.

To specify whether Excel should pay attention to case, follow these steps:

  1. Select the cells containing the information to be sorted.
  2. Display the Sort dialog box. (Click here to see a related figure.) In versions of Excel prior to Excel 2007, click Data | Sort. In Excel 2007 display the Data tab of the ribbon and then click Sort.
  3. Using the controls on the dialog box, indicate the way in which the cells should be sorted.
  4. Click on the Options button. Excel displays the Sort Options dialog box. (Click here to see a related figure.)
  5. Use the Case Sensitive check box to indicate how Excel should perform the sort. If the check box is selected, the sort is case sensitive; if clear, then case is ignored.
  6. Click on OK to close the Sort Options dialog box.
  7. Click on the OK button to perform your sort.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2921) applies to Microsoft Excel versions: 97 | 2000 | 2002 | 2003 | 2007

Related Tips:

Tame Your Data! ExcelTips: Filters and Filtering provides all the details necessary to let you manage large sets of data with confidence and ease. Its information-packed pages demonstrate how to use the two types of filters provided by Excel: AutoFilters and advanced filters. Check out ExcelTips: Filters and Filtering today!