250 likes | 438 Views
“I have gained this from philosophy: that I do without being commanded what others do only from fear of the law .” -Aristotle. Day 10: Excel Chapter 6. Cody Cutright CS 101 February 10 th , 2014. Upcoming Dates. Homework #3 Friday February 14 th , by 11:55pm Exam #1
E N D
“I have gained this from philosophy: that I do without being commanded what others do only from fear of the law.”-Aristotle
Day 10:Excel Chapter 6 Cody Cutright CS 101 February 10th, 2014
Upcoming Dates • Homework #3 • Friday February 14th, by 11:55pm • Exam #1 • Monday February 17th, Section 4 • Wednesday February 19th, Section 6
Outlines An outline is a hierarchical structure of data.
Outlines – cont’d Outlines are useful in Excel for grouping data large amount of data into subgroups. Excel contains a mechanism that will attempt to auto-outline a spreadsheet. *Excel will not create an outline or group data if the dataset does not contain a formula or an aggregate function (i.e. SUM or SUBTOTAL)
Grouping • Grouping allows for more control in creating an outline and is the process of joining related rows or columns of data into a single entity
Data -> Outline Group Group Related Rows or Columns Ungroup the dataset Expand Group Collapse Group
Subtotaling Data • Creating subgroups by row can be time consuming because you have to enter formula rows by group. • Using the Subtotal dialog box can create an automatic outline by rows AND insert subtotals at the same time. *Can be used with a range of data, but not a table
Before Subtotaling… There are a few things to take care of: • Sort the data by a major category. • Organize data in a range of cells, not a table. • Click within the data range, then on the Data tab. • Click Subtotal in the Outline group.
Example • If we used Subtotal on this data, it wouldn’t be very helpful. • How should we reorder this?
Sort Dialog Box This should make our data more meaningful.
Sorted Data • This is a little more helpful, now we can use subtotal.
Subtotal Dialog Box We need to insert a subtotal based on each change in Semester, and we need to Sum the enrollment.
Result • We can see that we have successfully subtotaled the enrollment based on each class by semester.
Auto Outline • After subtotaling you can just use auto-outline. • Data tab -> Outline Group -> Group Button • Auto-outline
PivotTables Rearrange Fields Creating Refreshing Data Filtering Sorting Grouping Adding fields Changing Values Field Sorting
Why PivotTables? PivotTables are an organized structure that summarize large amount of data. These can aid in data mining, which is the process of analyzing large volumes of data for trends.
Creating a PivotTable 1. Click inside the dataset (the range of cells or table). 2. Click the Insert tab, and then click Insert PivotTable in the Tables group to open the Create PivotTable dialog box. 3. Specify the dataset by entering the range, if necessary, in the Table/Range box. If you selected a cell in a range or table, the range of cells or table name reference shows in the Table/Range box (see Figure 6.12). 4. Decide where you want to place the PivotTable. Click New Worksheet to create the PivotTable on a new worksheet, or click Existing Worksheet and enter the starting cell location for a particular worksheet to create the PivotTable on an existing worksheet. It is beneficial to create a PivotTable on a new worksheet to separate the PivotTable from the dataset. Doing so can prevent problems of accidentally inserting or deleting rows or columns in the table that also affect the PivotTable. 5. Click OK.
Fields Table 6.2
Adding Fields Click and drag to the appropriate fields. Works for rearranging as well.
Value Field Settings Further customization can be attained through the Value Field Settings.
Value Field Settings • Specify Custom Names, Formats, the function to use.
Refresh!! ***If data is updated from the worksheet, you need to refresh the PivotTable or PivotChart to accurately reflect any changes in the data!!!
Slicing A slicer is a window listing all items in a field and enables efficient filtering. To insert a slicer: Options Tab -> Insert Slicer -> Select the boxes for slicers to be displayed Hold control and click on the fields to display/or hide their information.