Storing Sorting Criteria

Stephanie often has to perform sorts of her data using the same criteria over and over again. For instance, she often needs to perform a sort that uses the same four columns. She wonders if there is a way to “store” a set of sorting criteria so she doesn’t need to enter them over and over again.

There are a couple of ways that you can approach this issue. The first is to create custom views (described in other issues of ExcelTips) that include your data sorted in a desired manner. You can always store and recall the view to see it sorted as you want.

You could also make sure the data in your worksheets is defined as a formal data table. All you need to do is select a cell in the data and press Ctrl+T or display the Insert tab of the ribbon and click the Table tool. Once the data table is set up and you sort it, Excel stores the sorting criteria with the workbook so it is available when you later work with the table.

Perhaps the most flexible approach, however, is to perform your sorting in a macro instead of by using the Sort dialog box. You can easily use the macro recorder to set up and execute your sort; later running the macro will sort the same area over again, using the same criteria.