Module 10 · Sort, Filter and Clean · Sort by two columns

Rosa Delgado coordinates the volunteers at Greenleaf Animal Shelter

The volunteers walk through the shelter in a fixed order: first the cats, then the dogs, then the rabbits. Rosa wants the list in the same order. Inside each group, the names must be A to Z. One sort button cannot do both.

Loading the spreadsheet…

Module 10 · Sort, Filter and Clean

Sort by two columns

Rosa Delgado, coordinates the volunteers at Greenleaf Animal Shelter
Rosa Delgado coordinates the volunteers at Greenleaf Animal Shelter

The volunteers walk through the shelter in a fixed order: first the cats, then the dogs, then the rabbits. Rosa wants the list in the same order. Inside each group, the names must be A to Z. One sort button cannot do both.

Steps

  1. Sort by species, then by name

    The Sort dialog sorts by more than one column. Each column is a level. Excel uses the second level when the first level is equal.

    How to do it

    1. Click one cell in the list.
    2. On the Data tab, in the Sort & Filter group, click Sort.
    3. In the Sort by list, select the first column.
    4. Click Add Level.
    5. In the Then by list, select the second column.
    6. Click OK.
    7. The Order list sets the direction of each level: A to Z, or Largest to Smallest for numbers.

    Species A to Z, then Name A to Z

    Task: The vet does a second tour. She wants the oldest animal of each species first. Sort by Species, then by Age, largest to smallest.