Sorting, Subtotals and Outlines in Microsoft Excel 2003



Similar documents
Writing Macros in Microsoft Excel 2003

Adding Comments in Microsoft Excel 2003

Microsoft Excel 2013 Splitting Windows and Fixing Panes (Level 3)

In This Issue: Excel Sorting with Text and Numbers

Using Pivot Tables in Microsoft Excel 2003

EXCEL Using Excel for Data Query & Management. Information Technology. MS Office Excel 2007 Users Guide. IT Training & Development

Excel 2010 Sorting and Filtering

Data Analysis with Microsoft Excel 2003

Produced by Flinders University Centre for Educational ICT. PivotTables Excel 2010

ECDL. European Computer Driving Licence. Spreadsheet Software BCS ITQ Level 2. Syllabus Version 5.0

Microsoft Excel 2010 Part 3: Advanced Excel

Advanced Excel 10/20/2011 1

Microsoft. Student Edition. The Richard Stockton College of New Jersey. CustomGuide. Computer Courseware

Analyzing Excel Data Using Pivot Tables

Excel Using Pivot Tables

Using Excel As A Database

Excel Using Pivot Tables

Excel Pivot Tables. Blue Pecan Computer Training Ltd - Onsite Training Provider :: :: info@bluepecan.co.

Pivot Tables & Pivot Charts

Search help. More on Office.com: images templates. Here are some basic tasks that you can do in Microsoft Excel 2010.

Computer Training Centre University College Cork. Excel 2013 Pivot Tables

Merging Labels, Letters, and Envelopes Word 2013

Monthly Payroll to Finance Reconciliation Report: Access and Instructions

Microsoft Excel v5.0 Database Functions

Excel 2013 Sort: Custom Sorts, Sort Levels, Changing Level & Sorting by Colored Cells

SENDING S WITH MAIL MERGE

Microsoft Excel: Pivot Tables

SPREADSHEETS. TIP! Whenever you get some new data, save it under a new name! Then if you mess things up, you can always go back to the original.

Microsoft Excel 2013 Step-by-Step Exercises: PivotTables and PivotCharts: Exercise 1

Templates and Slide Masters in PowerPoint 2003

Task Force on Technology / EXCEL

Advanced Microsoft Excel 2010

Tommy B. Harrington 104 Azalea Drive Greenville, NC

Everyday Excel Stuff Excel Day Planner Organizer Reference Guide

A Beginning Guide to the Excel 2007 Pivot Table

EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002

WHAT S NEW IN MS EXCEL 2013

Using Excel to create a student database

Excel 2007 A Beginners Guide

Solving Using Excel. Introduction. Lists LEARNING OUTCOMES

warpct.com Working with MS Excel 2003 Workbook courseware by WARP! Computer Training

APPLYING BENFORD'S LAW This PDF contains step-by-step instructions on how to apply Benford's law using Microsoft Excel, which is commonly used by

To complete this workbook, you will need the following file:

Excel Working with Data Lists

Advanced Excel Charts : Tables : Pivots : Macros

Migrating to Excel 2010 from Excel Excel - Microsoft Office 1 of 1

Excel 2003 A Beginners Guide

SPSS INSTRUCTION CHAPTER 1

Create Mailing Labels from an Electronic File

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Basic Microsoft Excel 2007

STATEMENT OF TRANSACTION REPORT ANALYSIS USING EXCEL

Excel 2003 Tutorial I

Construction Administrators Work Smart with Excel Programming and Functions. OTEC 2014 Session 78 Robert Henry

To reuse a template that you ve recently used, click Recent Templates, click the template that you want, and then click Create.

Excel basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

Section 1: Ribbon Customization

MS Excel. Handout: Level 2. elearning Department. Copyright 2016 CMS e-learning Department. All Rights Reserved. Page 1 of 11

Using Ad-Hoc Reporting

Microsoft Excel 2013: Using a Data Entry Form

Instructions for Creating an Outlook Distribution List from an Excel File

COURSE DESCRIPTION. Queries in Microsoft Access. This course is designed for users with a to create queries in Microsoft Access.

MS Excel: Analysing Data using Pivot Tables

About PivotTable reports

Fig. 1 Suitable data for a Crosstab Query.

Excel Database Management Microsoft Excel 2003

Word basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

Microsoft Access 2010 Overview of Basics

Microsoft Excel 2007 Consolidate Data & Analyze with Pivot Table Windows XP

3 What s New in Excel 2007

Excel for Data Cleaning and Management

Introduction to Pivot Tables in Excel 2007

Excel Project From the Start menu select New Office Document. If necessary, click the General tab and then double-click Blank workbook.

INTERMEDIATE Excel 2013

Microsoft Excel Training - Course Topic Selections

MS Excel as a Database

Step One. Step Two. Step Three USING EXPORTED DATA IN MICROSOFT ACCESS (LAST REVISED: 12/10/2013)

Instructions for applying data validation(s) to data fields in Microsoft Excel

Excel 2010 Level 2. Computer Training Centre, UCC, /3751/3752

EXCEL FINANCIAL USES

"Excel with Excel 2013: Pivoting with Pivot Tables" by Venu Gopalakrishna Remani. October 28, 2014

The first thing to do is choose if you are creating a mail merge for printing or an merge for distribution over .

Q&As: Microsoft Excel 2013: Chapter 2

Creating tables in Microsoft Access 2007

IRA Pivot Table Review and Using Analyze to Modify Reports. For help,

Microsoft Excel Basics

Microsoft Word 2010 Mail Merge (Level 3)

The following provides information on using some of the new/enhanced functionality in Excel 2013.

Excel 2003: Ringtones Task

Excel 2003 PivotTables Summarizing, Analyzing, and Presenting Your Data

How to Excel with CUFS Part 2 Excel 2010

Computer Training Centre University College Cork. Excel 2013 Level 1

MICROSOFT OUTLOOK 2011 READ, SEARCH AND PRINT S

Excel 2010: Create your first spreadsheet

Basic Pivot Tables. To begin your pivot table, choose Data, Pivot Table and Pivot Chart Report. 1 of 18

Microsoft Access 2010 handout

Formatting Formatting Tables

Transcription:

Sorting, Subtotals and Outlines in Microsoft Excel 2003 Introduction This document covers both the simple and more advanced sorting facilities in Excel and also introduces you to subtotals and outlines. Sorting Data in Excel When sorting data in Microsoft Excel, it's very important to decide whether you want just part of the data sorted or the whole dataset. To understand how sorting works, try it out on an example file: 1. Load up Excel and [Open] the file called phoenix.xls in the D:\training folder 2. Decide which column you want to sort on (eg Column B) and click on any cell in that column 3. Click on the [Sort Ascending] button (AZ ) to sort the data into increasing values 4. Click on the [Sort Descending] button (ZA ) to sort the data into decreasing values 5. Click on the [Undo] button twice to return the data to its original order - or, with this data, you could use [Sort Ascending] on Column A Note how all the data in the rows moved together as the sort was applied. Excel sorts blocks of data, delimited by blank rows or columns. This next exercise demonstrates this very clearly: 1. Select all the data - hold down <Ctrl> and type an asterisk - you can use the <*> key on the numeric keypad or <Shift 8> 2. [Copy] the data, click on cell I1 and press <Enter> to paste in the copied cells 3. Click on the 15 in the row numbers down the left; from the Insert menu choose Rows 4. Click on any cell with data in column J then on [Sort Descending] - you will find that only the section of data containing that cell is sorted 5. Click on [Undo] to return the data to its original order

6. Remove the empty row - click on [Undo] again Sorting Selected Data If you only want to sort part of the data, you have to select it first: 1. Click on the column heading letter B to select that column 2. Click on [Sort Ascending] - a warning message appears: 3. Select Continue with the current selection - press <Enter> for [Sort] You will find column B is now sorted but the rest of the data hasn't moved. This could be a disaster if the rows represented data records (as they do here - the data is now corrupted). Fortunately, the default is to sort all the columns (you had to reset this option at step 3). 4. Click on [Undo] to return the data to its original order The warning doesn't appear if cells in two or more columns are selected, as you'll see next. You can sort on more than one column in a selection, but the columns must be next to each other (ie you can't <Ctrl> select if necessary, move the columns around to get them in a suitable order) and sorting is carried out based on the left-most column: 5. Drag through the column heading letters B to E to select those columns 6. Click on [Sort Ascending] - all four columns are sorted, based on column B, with no warning 7. Click on [Undo] to return the data to its original order You can also sort on part of one or more columns

8. Drag through cells A2 to B15 9. Click on [Sort Descending] - just those cells are sorted 10. Click on [Undo] to return the data to its original order If you wanted the sort based on column B then you have to use Sort from the Data menu, rather than through the icons, as you ll see next. Advanced Sorts If you use Sort from the Data menu (rather than the [Sort Ascending] or [Sort Descending] buttons) then you have various additional options available. The buttons allow for only a single sort on one column, whereas the menu command allows you to carry out sorts within sorts: 1. Click on any cell containing data then open the Data menu and select Sort The Sort dialog box appears: 2. Using the list arrow attached to the first box, set the column for the initial sort eg Colour 3. Decide whether you want an Ascending or Descending sort 4. Set the column and sort type for the second sort eg Collector, Ascending 5. Set the column and sort type for the third sort eg Mass (g), Descending

6. The My data range has option Header row should already be set on, so press <Enter> or click on [OK] to carry out the sort The Red-Brown and Blue-Green eggs should now be separated, with each sorted first by Collector then Mass. Next, try sorting on part of the data - repeat the example at the end of the previous section but this time sort on column B: 7. Click on [Undo] to return the data to its original order 8. Drag through cells A2 to B15 9. Open the Data menu and select Sort 10. Set the column for the first sort to Nest Altitude (m) 11. Press <Enter> or click on [OK] to carry out the sort 12. Click on [Undo] to return the data to its original state Advanced Sort Options The Sort command in the Data menu has various options which can sometimes be of interest. For example, you might not want to sort alphabetically at all but on a completely different criteria eg based on the Months of the Year or on the Days of the Week. These two examples are built into the system, but you can specify your own criteria by creating a custom list: 1. Click on any cell in the data 2. Open the Tools menu and choose Options... - move to the Custom Lists tab 3. Click in the List entries box and type RFA, BN, FLC, CDS, BRV then click on [Add] - click on [OK] to close the Options window 4. Open the Data menu and select Sort 5. Set the column for the first sort to Collector, Ascending 6. Click on the [Options ] box at the foot of the Sort window 7. Using the list arrow set the First key sort order to RFA, BN, FLC, CDS, BRV 8. Press <Enter> or click on [OK] twice to carry out the sort 9. Click on [Undo] to return the data to its original order Note that you can make a custom list Case sensitive by clicking on the option box provided. This allows you to specify that xyz and XYZ should be treated as two distinct entries in the list. Note also that if you turn case sensitive sorting on then you have to explicitly turn if off when you've finished.

The final option allows you to sort from left to right instead of top to bottom (if your data happens to have been typed in that way). To demonstrate this: 1. Click on any cell containing data then press <Ctrl *> to select the surrounding data range 2. [Copy] the data then move down to cell A54 click on it to make it the active cell 3. Open the Edit menu and choose Paste Special... 4. Click on the Transpose box then press <Enter> or click on [OK] 5. Select all the data except the first column - click in B54, hold down <Ctrl> and <Shift> and press the <down arrow> followed by (<Ctrl Shift>) <right arrow> 6. Open the Data menu, select Sort then click on the [Options ] button 7. Under Orientation in the Sort Options window, select Sort left to right 8. Check First key sort order is set to Normal - press <Enter> for [OK] 9. Set Sort by to Row 55 (ie Altitude), choose Ascending then press <Enter> for [OK] This option is also useful for moving columns of data around a worksheet (instead of cut and paste). To do this you would create a dummy row above your data (to set up the required sort order). Here: 10. Press <Ctrl Home> to move to cell A1 then press <Ctrl *> to select A1:G51 11. Open the Data menu and select Sort then click on [Options...] and check that Sort left to right and Sort by Row 1 are still set 12. Press <Enter> for [OK] twice - the columns are sorted by the column names!

Creating Subtotals Microsoft Excel will automatically create subtotals on data which has been previously sorted into the required order. First, select the data range to which subtotals are to be applied: 1. Press <Ctrl Home> to move to cell A1 2. Sort the data by Collector - click on [Sort Ascending] 3. Open the Data menu and choose Subtotals... - the Subtotal window appears: 4. Using the list arrow provided, set At each change in: to Collector 5. Set Use function: to Count 6. Change Add subtotal to: to Colour (you also need to untick Sample #) 7. Press <Enter> for [OK] to calculate the subtotals You can have more than one subtotal in each row, but cannot vary the functions used in each. Count would obviously give the same result whichever column you had chosen. If you want to include different subtotal functions then you have to calculate them on separate rows: 8. Open the Data menu and choose Subtotals... 9. Using the list arrow provided, set Use function: to Sum

10. Change Add subtotal to: from Colour to Diameter, Length and Mass (tick them on) 11. Turn off Replace current subtotals: 12. Press <Enter> for [OK] to calculate the subtotals 13. Press <Page Down> to see the Grand Totals in rows 62 and 63 Outlines Whenever you calculate subtotals, Microsoft Excel automatically gives you special outline bars, which can be used to hide unwanted data. These are placed to the left of the row numbers: 1. Click on outline number 1 (to the left of Column A heading) - only the Grand Totals are displayed for that block of data 2. Click on outline number 2 - the Counts and Totals appear for each Collector 3. Click on outline number 3 - all the data reappears You can also use outlines to display the information for one (or more) Collectors: 4. Click on outline number 2 - only the subtotals are shown 5. Click on one of the plus signs (+) in outline 2 - the data for that Collector reappears 6. Click on another plus sign (+) in outline 2 to show data for a second Collector 7. Click on a minus sign (-) in outline 2 to again hide the data for a particular Collector 8. Redisplay all the data - click on outline number 3 Subtotals are recalculated automatically whenever a data value is changed: 9. Type a new value of 20 in cell D2 and watch how the Subtotal (and Grand Total) changes 10. Click on [Undo] to return the data to its original value Note that once subtotals have been calculated, they can be moved to other cells on the worksheet - so that a single row could contain a variety of subtotal

functions (eg you could drag the Count into the Sum row). You can also calculate subtotals by using the relevant SUBTOTAL function (see below). To turn off the outlines and subtotals: 11. Open the Data menu and choose Subtotals... 12. Click on the [Remove All] button Finally, you should be aware of the facilities provided by Pivot Tables. These produce summary statistics very similar to subtotals. Follow the link provided to learn more about these. The Subtotal Function Another way of obtaining subtotals is to use the Subtotal function with filters: 1. Make sure the current cell is in the block of data (press <Ctrl Home> to move to cell A1) 2. Open the Data menu and choose Filter then AutoFilter 3. Set up a filter on the Colour - click on the list arrow in cell B1 and choose Blue-Green 4. Move to cell C52 and click on the [AutoSum] button 5. Press <Enter> to accept the formula which appears: =SUBTOTAL(9,C2:C51) 6. Repeat step 3 but this time choose Red-Brown - note how the subtotal is recalculated 7. Try using further filters on the Collector (cell A1) and note the new totals 8. Finally, turn off the filtering by repeating step 2 Note: Always check that all the data rows have been included in the Subtotal function - if necessary, amend the formula which appears. 1. [Close] the phoenix example file - there is no need to save the changes you have made