SILS iSchool

week of 13 April 2021

Value Added | daily

Class Schedule

Basics | sessions 01-03
  1. 19 Jan intro and clients | lecture | labs
  2. 26 Jan servers and command line | lecture | labs
  3. 02 Feb networks and protocols | lecture | labs
Web Development | sessions 04-08

  1. 09 Feb structural layer | lecture | labs
  2. 16 Feb presentational layer | lecture | labs
  3. 23 Feb using a structure | lecture | labs
  4. 02 Mar behavioral layer | lecture | labs
  5. 09 Mar design thoughts | lecture | labs
Dealing with Markup | sessions 09-10
  1. 16 Mar control objects and display | lecture | labs
  2. 23 Mar tools that read markup | lecture | labs
Working with data | sessions 11-14
  1. 30 Mar formulas, functions, vectors | lecture | labs
  2. 06 Apr data display | lecture | labs
  3. 13 Apr manipulate data sets | lecture | labs
  4. 20 Apr relational data bases | lecture | labs
Presentations | sessions 15-16
  1. 27 Apr designing a presentation | lecture | labs
  2. 04 May delivering a presentation | lecture | labs

Spreadsheets can be flat file databases.
The tools in Excel can manipulate such databases to array the data exactly as needed.

According to Microsoft

A PivotTable is an interactive way to quickly summarize large amounts of data. You can use a PivotTable to analyze numerical data in detail, and answer unanticipated questions about your data.

Another observer put it even more succinctly.

Pivot tables are summaries of your data based on categories that you select.

back to top

Still using your downloaded workbook ...

Create a Pivot Table from the 08-Inventory Worksheet

We will make a copy of a Worksheet and set up a PivotTable

The 08-Inventory worksheet is a good candidate for a PivotTable.

  • There are a lot of text and categories in this sheet, and it would be clunky to use sorts and filters to summarize.
  • It also appears that the text has at least some redundancy and errors.
  • There are a lot of blank cells as well.

When you create PivotTables, you do not want the data to be messy, and you would want to first "clean" the data.

  • However, cleaning data is a big job in itself, so we will instead use Pivot tables to help us identify some of the problems in this worksheet.

Step by step ...

  1. Make a copy of the 08-Inventory Worksheet and choose to move to end of the worksheets. After it is created, rename it 22-Pivot Table Data
  2. In the 22-Pivot Table Data select the header-row-5 data and the other data below. Do not include rows 1-4.
  3. On the ribbon, select Insert, and then click the PivotTable Button. A create PivotTable dialog box will open. Verify that the Table/Range shown in the Select a table or range Table/Range box is '22-Pivot Table Data!$A$5:$P$253
  4. Verify that New Worksheet is selected and click okay. A new sheet will be created. Rename the sheet 23-PivotTable Report.

Verify that you now have a blank PivotTable report located in the cells area on the left and that you have a Pivot Table Fields pane on the right.


back to top

Set up the data in your Pivot Table

  1. Inside of the Pivot Table Fields Pane, click the Ref box at the top of the box. This will add Ref to the value area and also to your pivot table. sum-of-ref
  2. Since Ref is a column of reference numbers, it should be not be totaled; it should be a COUNT. To change this to a count function, click on the down arrow to the right of Sum of Ref, and choose value field settings and then the count function.
  3. Next, drag the Data Name field into the Rows Area.
  4. Then drag the Availability/Distribution into the rows area above the Data Name. If you inadvertently drag it below, you can then drag it above after it is in the area.
  5. Finally, drag the Resource Type into the Rows Area into the middle position. Here is what you should see now: pivot-setup-stage-one

You now have a nice summary of important parts of your data.

back to top

Add a filter

  1. Drag Methodology Used field into the Filters Area. Notice that you now have a filter added to the top of your Pivot Table Titled Methodology Used.
  2. Select the filter dropdown and look at the first few Methodology fields in the dropdown list. Notice the duplication of the data: Emperical Model vs. Empirical Model. Emperical is a typo. If you were cleaning this data, you would need to go back to the data and correct this. It is important to understand that your pivot table will not dynamically update this correction. Any time you must go change source data, you will need to refresh your PivotTable, just like you would refresh a web page to see the correction. refresh-pivot-table
  3. To finish this task, scroll down to the last field in the data and choose blank. Your Pivot Table will now give you a report of all of the records that have a blank in the Methodology Used field. final-pivot-table

back to top

week of 13 April labs | sorting | filtering | pivot tables