Lesson 10 – Excel Tables & Sub-Totals

In the last lesson we explored Excel’s fantastic charting capabilities, demonstrating how easy it is to create world-class charts in no time at all. As you learned, Charts can be one of the most time consuming elements of working with Excel, but they don’t need to be. In fact, a general misunderstanding of Excel’s charting prowess is generally what leads many people to either shy away from creating charts or just creating ugly charts quickly. And there is good reason for doing so, if a chart takes 10 minutes to create and you have to build many of them you’d probably try to get it done as quickly as possible, not bothering to go take those extra few steps needed to make them look nice. Fortunately, by setting up chart templates, you learned how to skip right past the hassle of recreating charts over and over again, instead relying on a few nice ones that you can depend upon.

Excel Tables are a similar tool in that they have been designed to help you work with data sets in a streamlined fashion. As you’ve seen in these lessons when you create a dataset you often want to take advantage of Excel’s amazing capabilities as an analysis tool, by adding totals, averages, etc. Normally this means creating individual formulas and copying them across the relevant ranges. When you do this it’s entirely up to you to tell Excel how big that range is and what you want to do with it. Tables put some of this burden on Excel’s plate, because a Table will recognize all of the contiguous data in a Table as related information. Tables allow you quickly apply any of the extensive Table formats from the Table Styles gallery. In addition, Tables add functionality called Structured References, which is completely alien to the Function and Formula concepts you’ve learned so far. Structured Reference methods do to tables what the AutoSum wizard can do to simple ranges, and we will devote a good portion of this lesson to understanding them. Before moving forward though, there is a distinction between an Excel Table, which is the tool we’ll be discussing in this lesson, and a table of data in Excel, which is the data we’ll be converting to an Excel Table. A table of data in Excel represents your raw data that is structured in a Row/Column format. Both are tangible entities, but where one is your physical data, the other is a tool for manipulating that data. Neither should be confused for an Excel Data Table, which is an analytical tool found on the Data menu in the What-If Analysis group.

Do tables do anything for you that you can’t do by yourself in Excel? Yes and no. Yes, because Tables incorporate a lot of features that you simply couldn’t add as fast by yourself. Granted you could probably write your own custom VBA code to replicate a table (and until now that’s what many people did to achieve the same thing), but why bother if it’s provided for you? On the other hand, you can technically do everything that a Table can do, but you have to do it manually. For instance you can apply the fancy table formatting that you can get from a table, but it’s going to take a lot more than 2 mouse clicks. Take the following example of unformatted data. It’s not very appealing, and is about as generic a display of data as you can possibly get. Finance and Accounting types love this kind of data display, but the rest of the working world probably feels a bit differently. After all if you have to look at the data, shouldn’t it at least be nice to look at it?

Sub-Totals - The primary thing that Tables can’t do for you is incorporate Sub-Totals, and it is a big thing, which is why it’s included in this lesson. Sub-Totals allow you to break your data down into chunks and summarize it along the way. Let’s say you have a table of data that’s broken down by Region, Product, Date, etc. Sub-Totals let you change it from just data to summarized data without you having to lift a finger toward the Formula menu. Sub-Totals also let you use several different functions for summarizing your data: Sum, Count, Average, Max, Min, Product, Count Numbers, and Deviations & Variances.

In the following example you’ll see some table data that has had a layer of sub-totals applied to both the Region as well as the Product type. This is the same data that we’ll be using in the Lesson 10 companion workbook.

Pivot Tables – Excel Tables are excellent candidates for creating Pivot Tables, which we’ll discuss in depth in the next lesson. Pivot Tables give you the ability to add the Sub-Totals that you can’t add in Tables.

10.0.PNG 

10.1.PNG 

Figure 399  

figure%20358.PNG 

Convert Data to a Table

To get started you need to convert your data to a Table, but it’s remarkably easy. In fact the most difficult part of creating a table is deciding on which format to choose! With the active cell somewhere in your table data range, simply goto Home, Format as Table, select the Table style that you want and you have a fully formatted table in two mouse clicks.

10.3.PNG 

Figure 400  

Stickey.PNG 

10.5.PNG 

Figure 401  

10.7.PNG 10.6.PNG 

Figure 402  

10.8.PNG 

10.png 

10.9.PNG 

Figure 403  

10.10.PNG 

10.11.PNG 

Figure 404  

10.12.PNG 

Figure 405  

1. Remove the Total row by unchecking it from Table Tools, Table Style Options, Total Row

2. Select the Total row and insert a new row(s) with ALT+I+R (or any other long way to do it)

10.13.PNG 

Figure 406  

10.14.PNG 

Figure 407  

10.15.PNG 

Figure 408  

10.16.PNG 

Figure 409  

10.17.PNG 

Figure 410  

10.18.PNG 

Figure 411  

=SUBTOTAL(109,[Data 2]) vs. =SUBTOTAL(109,Duplicates!$B$2:$B$8)

10.19.PNG 10.20.PNG 

Figure 412  

10.21.PNG 

Figure 413  

10.22.PNG 

10.24.PNG 

Figure 414  

10.25.PNG 

Figure 415  

10.26.PNG 

Figure 416  

10.27.PNG 

Figure 417  

10.28.PNG 

10.29.PNG 

Figure 418  

10.30.PNG 

Figure 419  

10.31.PNG 

Figure 420  

10.32.PNG 

Figure 421  

10.33.PNG 

10.34.PNG 

Figure 422  

Sub-Totals are a fantastic tool for summarizing your data without having to resort to lengthy formulas. Microsoft built in a very robust series of Sub-Total functionality to do it for you. In addition you can use what’s called nested Sub-Totals in which you can sub-total one series of data and then add additional layers. We’ll go back to the companion workbook and use the example that you saw in the beginning of the lesson to detail Sub-Totals and how to use them.

10.35.PNG 

Figure 423  

10.36.PNG 

Figure 424  

10.37.PNG 

10.38.PNG 

Figure 425  

10.39.PNG 

Figure 426  

10.40.PNG 

Figure 427  

10.41.PNG 

10.42.PNG 

Figure 428  

10.43.PNG 

Unit Summary: Lesson 10 – Excel Tables & Sub-Totals

Review Questions – Lesson

1. Name two reasons for using Excel tables.

a. __________________________________________________

b. __________________________________________________

2. If you want to Sub-Total an Excel table what tool would you use (hint – Lesson 11).

a. __________________________________________________

3. If you create an Excel Table, but only want the Table Formatting what do you do?

a. __________________________________________________

4. How can you resize an Excel Table?

a. __________________________________________________

b. __________________________________________________

5. What’s the difference between 109 and 9 in a Sub-Total function?

a. __________________________________________________

6. What are Zebra Stripes?

a. __________________________________________________

7. What’s Structured Referencing?

a. __________________________________________________

Lesson Assignment – Lesson 10 – Excel Tables & Sub-Totals