Lecture Excel: Macros & Pivot Tables. Macros A macro is a series of commands that are stored and can be run whenever you need to perform the task.

Slides:



Advertisements
Similar presentations
Introduction to Excel This class is “HANDS-ON” you will need to open up an excel spreadsheet and do examples as you go along. Students will be able to.
Advertisements

Using Macros and Visual Basic for Applications (VBA) with Excel
Developing an Excel Application
Tutorial 8: Developing an Excel Application
1 CA202 Spreadsheet Application Combining Data from Multiple Sources Lecture # 6.
XP New Perspectives on Microsoft Excel 2003, Second Edition- Tutorial 8 1 Microsoft Office Excel 2003 Tutorial 8 – Developing an Excel Application.
Using Excel to Understand Your Data Clayton County Public Schools Department of Research, Evaluation and Assessment Assistant Principal In-Service.
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
PIVOT TABLES AND CHARTS Leena Razzaq CS1100 Computer Science and its Applications CS1100Pivot tables and charts1.
Excel: Pivot Tables Computer Information Technology Section 6-18.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Lecture Excel: Multiple Worksheets. Workbook and Worksheets Multiple worksheets in a single workbook. When saved, only a single workbook (XLS) is saved.
Microsoft Excel 2010 Chapter 8
Microsoft Excel 2003 Illustrated Complete Excel and Advanced Worksheet Management Customizing.
Excel Lesson 14 Creating and Using Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Introduction to VBA. This is not Introduction to Excel We’re going to assume you have a basic level of familiarity with Excel If you don’t, or you need.
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
EXCEL ADVANCED 1. Mathematical Operators for Excel < > = >=
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 4 – Creating New.
With Microsoft Excel 2007 Comprehensive 1e© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2007 Comprehensive.
Air Quality System Precision and Accuracy Data Transaction Generator (AQSP&A) Training Session.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 7 BACKNEXTEND 7-1 LINKS TO OBJECTIVES Record & run a macro Record & run a macro Save as a macro-
Analysing Data with Excel Importing Data from a Text File To import data from a text file: 1.Start Excel. 2.Click File, click New, click Workbook,
XP 1 Excel Tables Purpose of tables – Process data in a group – Used to facilitate calculations – Used to enhance readability of output Types of tables.
Working with Reports in Microsoft Excel Session Version 1.0 © 2011 Aptech Limited.
PIVOT TABLES AND CHARTS CS1100 Computer Science and its Applications CS1100Pivot tables and charts1.
Exploring Microsoft Office XP - Microsoft Word 2002 Chapter 71 Exploring Microsoft Word Chapter 7 The Expert User: Workgroups, Forms, Master Documents,
Intro to Excel - Session 7.31 Tutorial 7 - Session 7.3 Developing an Excel Application.
Key Applications Module Lesson 21 — Access Essentials
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
XP. Objectives Sort data and filter data Summarize an Excel table Insert subtotals into a range of data Outline buttons to show or hide details Create.
Chapter 9 Macros And Visual Basic For Applications.
Access Lesson 11 Creating and Running Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
Creating Macros in Excel Adding Automated Functionality to Excel & Office Applications.
Lesson 7 – Microsoft Excel 2010 Working with Tables, PivotTables, and PivotCharts.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
Introduction to Microsoft Excel Macros COE 201- Computer Proficiency.
Intermacs Form Download Excel Tutorial Pivot Tables, Graphic Tools, Macros By: Devin Koehl.
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
Microsoft Excel Prepared by the Academic Faculty Members of IT.
PIVOT TABLES AND CHARTS Leena Razzaq CS1100 Computer Science and its Applications CS1100Pivot tables and charts1.
1 CA202 Spreadsheet Application Automating Repetitive Tasks with Macros Lecture # 12 Dammam Community College.
Microsoft ® Excel ® 2013 Enhanced Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts.
Microsoft Office Tips Pivot tables. Agenda Learn how to create and use PivotTables Q&A Excel 2010 is very similar to 2007, I have tried to demonstrate.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
April 9 th, Saturday PDP N° Malik Koné. I. Cells A. The Concept B. Properties, Types and Formats II. Spreadsheets A. Spreadsheet’s Elements B. Selection.
Microsoft Excel Illustrated Introductory Workbooks and Preparing them for the Web Managing.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Excel Tutorial 8 Developing an Excel Application
Excel: Macros & Pivot Tables
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
TDA Direct Certification
Microsoft Excel.
Microsoft Excel 2003 Illustrated Complete
Chapter 7 Advanced Form Techniques
Creating Macros in Excel
Exploring Microsoft Excel
Adam Little 3/10/2018 [website]
Microsoft Excel 101.
Topic 8 – Pivot tables and Charts Lesson 1 – Pivot tables
Lesson 1 - Automating Tasks
Lesson 19 Organizing and Enhancing Worksheets
Microsoft Office Excel 2003
Using Complex Formulas, Functions, and Tables
Pivot tables and charts
Lesson 13 Working with Tables
Assignment resource Working with Excel Tables, PivotTables, and Pivot Charts Fairhurst pp The commands on these slides work with the Week 2 Excel.
Microsoft Excel 2007 – Level 2
Presentation transcript:

Lecture Excel: Macros & Pivot Tables

Macros A macro is a series of commands that are stored and can be run whenever you need to perform the task

Macros, cont. Set of instructions that can be automated within Excel Purpose is to eliminate repetitive tasks as well as simplify Examples include adding or deleting rows or columns; adding a specific header; adding the date to a sheet

Security Viruses can be attached to macros Security settings have to be set to enable macros to run Ensure you know it’s your file or from a trusted source before enabling

Create a New Macro Macros are created from the View or Developer tab Actions can be recorded and then RUN in other sheets and workbooks

Two Ways There are two ways to create a macro The recordable option offers an easier interface for users to create Macros without needing to know the underlying VBA (Visual Basic for Applications) code The second option allows users to code directly utilizing VBA

Editing Even when macros have been recorded, users can edit the underlying VBA code to adjust colors, change ranges, update a function, etc.

Editing Macros – Visual Basic Editor Sub Sum() Sum Macro' Range("N5").Select ActiveCell.FormulaR1C1 = "=SUM(RC[-12]:RC[-1])" Range("N5").Select Selection.AutoFill Destination:=Range("N5:N7"), Type:=xlFillDefault Range("N5:N7").Select Range("B8").Select ActiveCell.FormulaR1C1 = "=SUM(R[-3]C:R[-1]C)" Range("B8").Select

Record and Edit

Save Macros Macros saved to workbook are only available within that workbook Macros saved to Personal Workbook are available within the software program itself The Personal Workbook is hidden and to make edits to macros stored there, it must first be unhidden from the toolbar

Save Macros, cont. A file with Macros will not save with the normal.xls or.xlsx extension It will prompt you to save with the.xlsm extension (Excel – Macro Enabled Workbook)

Run a Macro Macros can be run manually from the menu They can also be set to run automatically after another action, such as opening a workbook Macros can be set to run after clicking on a button

Macros In Action – Ex. #1 Add another year and delete all the totals! View tab – Record Macros in Workbook Go through the process of adding formulas to the 2011 sheet…formatting to. All done – stop recording.

Macros in action – Ex. #1 Copy the 2010 data to a new sheet, creating a sheet for Delete all of the totals. Run Macro!

Example…Assign to a Button

Pivot Tables A pivot table is an advanced data summarization and evaluation tool Sorting, totals, filters, counts and more can be automatically calculated Graphical properties make it user- friendly; drag and drop tools

Pivot Tables, cont. There are multiple formatting options available for the table (with or without totals) Formatting (colors and shading) can be applied manually or provided formats can be applied

Create a New Pivot Table Pivot Tables are based on source data Created from the Insert Tab Range of data to be included can be selected by clicking on the red arrow Can appear on the same sheet as the data or on a new worksheet – It is best to create on a new worksheet Any changes made to formatting or cells outside the pivot table can be overwritten by the pivot table

Drag & Drop Column/Row data has been separated Data values are able to be turned on/off Drag and Drop the data options into the appropriate areas of the Pivot Table (Row, Column, Data) Order matters

Drag & Drop, cont. As more fields are added, the data can be expanded or contracted so more or less is viewable Concurrently, grand totals and sub totals can be shown or not shown

Pivot Table – Data Analysis Row and Column headings can be swapped to analyze data in different ways The data can be expanded and contracted to analyze at macro and micro levels Trends can become visible as well as specific instances