GCFLearnFree.org

This site covers more than I ever dreamed.”

Online Learner

GCFGlobal.org
Creating Opportunities For A Better Life.®
  • All Topics
  • Excel 2013
  • Sorting Data

Excel 2013

Single page view print copy

Sorting Data

Introduction

Video: Sorting Data

Launch "Sorting Data" video!Watch the video (5:50).

As you add more content to a worksheet, organizing that information becomes especially important. You can quickly reorganize a worksheet by sorting your data. For example, you could organize a list of contact information by last name. Content can be sorted alphabetically, numerically, and in many other ways.

Optional: Download our Lesson 18 Practice Workbook.

Types of sorting

When sorting data, it's important to first decide if you would like the sort to apply to the entire worksheet or just a cell range. 

  • Sort sheet organizes all of the data in your worksheet by one column. Related information across each row is kept together when the sort is applied. In the example below, the Contact Name column (column A) has been sorted to display the names in alphabetical order.
    Screenshot of Excel 2013Sorting a sheet
  • Sort range sorts the data in a range of cells, which can be helpful when working with a sheet that contains several tables. Sorting a range will not affect other content on the worksheet.
    Screenshot of Excel 2013Sorting a cell range

To sort a sheet:

In our example, we'll sort a T-shirt order form alphabetically by Last Name (column C).

  1. Select a cell in the column you wish to sort by. In our example, we'll select cell C2.
    Screenshot of Excel 2013Selecting cell C2
  2. Select the Data tab on the Ribbon, then click the Ascending command sort ascending to Sort A to Z, or the Descending command sort ascending to Sort Z to A. In our example, we'll click the Ascending command.
    Screenshot of Excel 2013Clicking the Ascending command
  3. The worksheet will be sorted by the selected column. In our example, the worksheet is now sorted by last name.
    Screenshot of Excel 2013The sorted worksheet

To sort a range:

In our example, we'll select a separate table in our T-shirt order form to sort the number of shirts that were ordered on different dates.

  1. Select the cell range you wish to sort. In our example, we'll select cell range A13:B17.
    Screenshot of Excel 2013Selecting cell range A13:B17
  2. Select the Data tab on the Ribbon, then click the Sort command.
    Screenshot of Excel 2013Clicking the Sort command
  3. The Sort dialog box will appear. Choose the column you wish to sort by. In our example, we want to sort the data by the number of T-shirt orders, so we'll select Orders.
    Screenshot of Excel 2013Selecting a column to sort by
  4. Decide the sorting order (either ascending or descending). In our example, we'll use Smallest to Largest.
  5. Once you're satisfied with your selection, click OK.
    Screenshot of Excel 2013Clicking OK
  6. The cell range will be sorted by the selected column. In our example, the Orders column will be sorted from lowest to highest. Notice that the other content in the worksheet was not affected by the sort.
    Screenshot of Excel 2013The sorted cell range

If your data isn't sorting properly, double-check your cell values to make sure they are entered into the worksheet correctly. Even a small typo could cause problems when sorting a large worksheet. In the example below, we forgot to include a hyphen in cell A18, causing our sort to be slightly inaccurate.

Screenshot of Excel 2013A small typo in cell A18 causing an incorrect sort
previous next
previous 1 2 3 4 next
Terms Of Use

©1998-2014 Goodwill Community Foundation, Inc. All rights reserved.