ICAEW.com works better with JavaScript enabled.
Exclusive

Simple but effective Tables: Part 9 – sorting, filtering, Sparklines and check boxes

Author: Simon Hurst

Published: 09 Sep 2024

Exclusive content
Access to our exclusive resources is for specific groups of students, subscribers and members.
In this series we are going to examine some of the capabilities of Excel Tables. We will be concentrating on the practical use of Tables to improve spreadsheet productivity. The previous two-part article looked at the use of structured references to refer to all or part of an Excel Table, from cells outside of the Table as well as cells within the Table. We are going to conclude our exploration of Tables by looking at Filtering and Sorting, and using Sparklines and check boxes in Table columns. Then, in the next part of the series, we will look at how Tables work with Power Query.

Excel Tables – so much more than just a pretty format

When Tables were first introduced into the Windows versions of Excel in Excel 2007, many people saw them as another Excel formatting ‘gimmick’. This view was supported by the inclusion of the Format as Table command in the Styles group of the Excel Home Ribbon tab. However, it soon became apparent that Tables were much more important than that, and that they had a significant role to play in many aspects of automating Excel.

This is the story so far:

Introduction

Having covered the more obvious features of Excel Tables over the previous 8 parts of the series, we will finish the series by looking at some of the other features that we haven’t yet covered.

Sorting and Filtering

The ability to sort and filter a column is not restricted to columns in Tables but, unlike a column outside of a Table, filter buttons are included by default in the header row of a Table. These buttons can be toggled on or off using the Filter Button checkbox in the Table Style Options group of the Table Design Ribbon tab. The filter and sort options available in the Filter Button dropdown in each Table column heading depend on the contents of that column and include a list of the different values in the column, allowing a value to be selected with a single click. As well as values, filter and sort options also include some format properties such as font colour and cell fill colour. One of the properties that can automatically be copied down to new Table rows is consistent conditional formatting. Some conditional formats can be used for sorting and filtering. Conditional formatting Colour Scales change the cell fill colour and the different colours used as part of the scale will show up in the Sort by Colour and Filter by Colour menus. Perhaps more surprisingly, conditional formatting icons will also be available:

Screenshot from an Excel spreadsheet

Note that at the bottom of the Sort by Colour menu there is a Custom option that will allow you to sort by multiple levels including using different columns and choosing cell values, cell colours, fill colours or conditional formatting icons. The sort order for each level can be swapped between Smallest to Largest, Largest to Smallest for value columns, and A-Z, Z-A for text columns. It is also possible to sort either type of column using a Custom List which can be useful for values such as months or days of the week for example.

Sorts or filters can also be applied by right-clicking on a particular cell in a Table, or in a non-Table cell. The right-click menu includes Filter and Sort options with general options to Sort, or to Clear or Reapply a filter, as well as Sort and Filter options relating to the specific cell contents:

Screenshot from an Excel spreadsheet

Although the Filter options covered so far are not exclusively available in Tables, the use of the more visual ‘Slicer’ filter is limited to Tables and PivotTables. There is also a specific ‘Timeline slicer’ for filtering columns that contain data or time values, but this is not available in Tables. Another feature of Slicers that is restricted to PivotTables is the ability to connect a Slicer to multiple PivotTables. A Table Slicer only works on a single Table. In part 5 of the series, we saw how to use the Insert Slicer command in the Table Design Ribbon tab to add a Slicer to a Table.

Extending columns – it’s not just formulas

One of the first Table capabilities that we covered in this series was the automatic copying of formulas down to new rows as they are added to the Table. It’s not just the copying of formulas that can be automated in this way. If you insert Sparklines in a Table column, then the Sparklines will be copied to new rows:

Screenshot from an Excel spreadsheet

A recent enhancement now allows check boxes to be added directly to cells. If check boxes are inserted into a Table column, just like Sparklines, a check box will automatically be added to new rows as they are added to the column:

Screenshot from an Excel spreadsheet

Next time…

Next time, we will look at some issues and opportunities around the worksheet Tables created by Power Query.

Conclusion

Archive and Knowledge Base

This archive of Excel Community content from the ION platform will allow you to read the content of the articles but the functionality on the pages is limited. The ION search box, tags and navigation buttons on the archived pages will not work. Pages will load more slowly than a live website. You may be able to follow links to other articles but if this does not work, please return to the archive search. You can also search our Knowledge Base for access to all articles, new and archived, organised by topic.

Open AddCPD icon

Add Verified CPD Activity

Introducing AddCPD, a new way to record your CPD activities!

Log in to start using the AddCPD tool. Available only to ICAEW members.

Add this page to your CPD activity

Step 1 of 3
Download recorded
Download not recorded

Please download the related document if you wish to add this activity to your record

What time are you claiming for this activity?
Mandatory fields

Add this page to your CPD activity

Step 2 of 3
Mandatory field

Add activity to my record

Step 3 of 3
Mandatory field

Activity added

An error has occurred
Please try again

If the problem persists please contact our helpline on +44 (0)1908 248 250