TopicsCheat sheetLessons
Lurndo › Excel › Sorting by several columns

Learning Excel: Sorting by several columns

Sorting

Isla is looking for the biggest orders, but they're all jumbled up, in the order they came in. Sorting a list in Excel takes two taps, if you know where.

Sorting

Every header of this list has a little button. With it you sort the list by that column: smallest to largest, or the other way round.

Excel always moves the whole row, so each order stays together: the beer, the customer and the litres all move as one.

ABCDEFGHI
1QuarterBeerCustomerPackagingLitresPriceRevenueResult
2Q1Wise OwlCrown InnKeg300£2.40£720.00
3Q1Tripel HootBay Tree BistroBottle80£4.50£360.00
4Q1Night OwlCurlew InnKeg150£3.20£480.00
5Q1Wise OwlFestival HallKeg600£2.20£1,320.00
6Q1Barn OwlBay Tree BistroBottle60£4.00£240.00
7Q2Wise OwlCrown InnKeg350£2.40£840.00
8Q2Tripel HootCrown InnBottle90£4.50£405.00
9Q2Night OwlBay Tree BistroBottle120£3.40£408.00
10Q2Wise OwlCurlew InnKeg200£2.40£480.00
11Q2Barn OwlFestival HallKeg250£3.60£900.00
12Q3Wise OwlFestival HallKeg800£2.20£1,760.00
13Q3Tripel HootBay Tree BistroBottle110£4.50£495.00
14Q3Barn OwlCrown InnKeg180£3.80£684.00
15Q3Wise OwlCurlew InnKeg250£2.40£600.00
16Q3Night OwlCrown InnKeg100£3.20£320.00
17Q4Night OwlFestival HallKeg400£3.00£1,200.00
18Q4Tripel HootCurlew InnBottle70£4.50£315.00
19Q4Wise OwlCrown InnKeg320£2.40£768.00
20Q4Barn OwlBay Tree BistroBottle90£4.00£360.00
21Q4Tripel HootFestival HallKeg300£4.20£1,260.00
22

By more than one column

Want the biggest revenue at the top within each quarter? Then you sort on two levels, with the Custom Sort button: first Quarter, then Revenue.

The first level decides. The second only counts for rows that are equal on the first.

ABCDEFGHI
1QuarterBeerCustomerPackagingLitresPriceRevenueResult
2Q1Wise OwlCrown InnKeg300£2.40£720.00
3Q1Tripel HootBay Tree BistroBottle80£4.50£360.00
4Q1Night OwlCurlew InnKeg150£3.20£480.00
5Q1Wise OwlFestival HallKeg600£2.20£1,320.00
6Q1Barn OwlBay Tree BistroBottle60£4.00£240.00
7Q2Wise OwlCrown InnKeg350£2.40£840.00
8Q2Tripel HootCrown InnBottle90£4.50£405.00
9Q2Night OwlBay Tree BistroBottle120£3.40£408.00
10Q2Wise OwlCurlew InnKeg200£2.40£480.00
11Q2Barn OwlFestival HallKeg250£3.60£900.00
12Q3Wise OwlFestival HallKeg800£2.20£1,760.00
13Q3Tripel HootBay Tree BistroBottle110£4.50£495.00
14Q3Barn OwlCrown InnKeg180£3.80£684.00
15Q3Wise OwlCurlew InnKeg250£2.40£600.00
16Q3Night OwlCrown InnKeg100£3.20£320.00
17Q4Night OwlFestival HallKeg400£3.00£1,200.00
18Q4Tripel HootCurlew InnBottle70£4.50£315.00
19Q4Wise OwlCrown InnKeg320£2.40£768.00
20Q4Barn OwlBay Tree BistroBottle90£4.00£360.00
21Q4Tripel HootFestival HallKeg300£4.20£1,260.00
22

Ready for more?

The full lesson has 6 exercises, from easy to challenging, with hints, points and a streak you can build.

Start the lesson
← PreviousCalculating with datesNext →Filtering

SQL

  • Topics
  • All lessons
  • Cheat sheet

Excel

  • Topics
  • All lessons
  • Shortcuts

HTML & CSS

  • About the course
  • All lessons

Lurndo

  • Dashboard
  • Leaderboard
  • Premium
  • Account
  • Privacy
Nederlands