Excel VBA for Physicists. A Primer

Size: px
Start display at page:

Download "Excel VBA for Physicists. A Primer"

Transcription

1

2 Excel VBA for Physicists A Primer

3

4 Excel VBA for Physicists A Primer Bernard V Liengme St Francis Xavier University, Nova Scotia, Canada Morgan & Claypool Publishers

5 Copyright ª 2016 Morgan & Claypool Publishers All rights reserved. No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, without the prior permission of the publisher, or as expressly permitted by law or under terms agreed with the appropriate rights organization. Multiple copying is permitted in accordance with the terms of licences issued by the Copyright Licensing Agency, the Copyright Clearance Centre and other reproduction rights organisations. Rights & Permissions To obtain permission to re-use copyrighted material from Morgan & Claypool Publishers, please contact info@morganclaypool.com. Online supplementary data files are available at live/bk suppdata.zip ISBN ISBN ISBN (ebook) (print) (mobi) DOI / Version: IOP Concise Physics ISSN (online) ISSN (print) A Morgan & Claypool publication as part of IOP Concise Physics Published by Morgan & Claypool Publishers, 40 Oak Drive, San Rafael, CA, USA IOP Publishing, Temple Circus, Temple Way, Bristol BS1 6HG, UK

6 To Pauline, my wife, my friend, and my amanuensis, with many, many thanks.

7

8 Contents Preface Acknowledgements Author biography x xi xii 1 Introduction Preparation Demonstrating a simple function Saving a macro-enabled workbook Using constants and VB functions User-defined array function Notes on VBA functions A simple subroutine Linking an image to a subroutine Recording a macro Finding a home for macros Typographical matters Variables, Dim statements, and data types Naming variables The Dim statement The major reason for variable declarations Declarations in function headers and for constants Data types A second reason for variable declarations Dimensioning arrays The Set statement The With End With structure Structured programming Branching structures (If and Select Case) Looping structures (For Next and Do While/Until) Some further examples 3-7 vii

9 Excel VBA for Physicists 4 The Excel object model Examples of properties, methods and events The Range object properties Range object methods Select, Copy, and Paste Clear methods Delete method WorksheetFunction object Workbook and worksheet events Workbook event Worksheet event Code for sending Working with add-ins Creating an add-in Installation Using the add-in Making changes to the add-in Viewing worksheets Protecting the add-in Reversing everything Numerical integration The trapezoid approximation The Simpson 1/3 approximation An aside Monte Carlo integration Gaussian and Romberg integration Numerical methods for differential equations Euler s method The Runge Kutta fourth-order method Simultaneous OEDs Example of a system of two OEDs Higher order OEDs R L circuit 7-8 viii

10 Excel VBA for Physicists 8 Finding roots The bisection method The successive iteration method Root finding with Solver Using range names 8-7 ix

11 Preface This work will introduce the reader to Visual Basic for Applications (VBA) and demonstrate how it can greatly enhance Microsoft Excel by giving users the ability to make their own functions that can be used within a worksheet, and to create subroutines to perform repetitive actions. Visual Basic (VB, the parent of VBA) has its roots in the educational programming language BASIC redeveloped at Dartmouth College in In the half-century since then, the language has evolved to become a high-powered object-orientated language which is no longer denigrated by aficionados of language such as C++ and C#. The VBA compiler and editor is incorporated within the Excel application; there is nothing to buy or install. The author s primary aim is to show the reader how to write both functions and subroutines, and to demonstrate that this is not a complex topic. The material is presented in a manner that will allow the reader to experiment with VBA programming; this is the best way to learn it. The scenarios used in the examples center around either fairly simple physics or non-complicated mathematics, such as root finding and numerical integration. The text, therefore, will be suitable not just for physicists but for other scientists and engineers, including students. A tested Excel workbook can be downloaded from here for each chapter. The brevity of the book prevents total rigour so it was necessary to condense some material, but Internet links are provided so the reader can explore VBA topics in greater depth. For the reader who prefers a paper reference source, Excel 2007 VBA by John Green et al (2007, New York: Wiley) is an excellent book, notwithstanding its date; furthermore, it can be obtained very cheaply online. The author is more than happy to reply to inquiries about topics in the book or other Excel (with or without VBA) questions. Please use the word Excel in the subject line of each message. Have fun learning to extend Excel with VBA! Bernard V Liengme bliengme@stfx.ca x

12 Acknowledgements The author thanks Microsoft Excel Most Valuable Professionals (MVPs) Jon Peltier, Bob Umlas, and Jan Karel Pieterse for their help over the years. xi

13 Author biography Bernard V Liengme Bernard V Liengme attended Imperial College London for his undergraduate and postgraduate degrees; he held post-doctoral fellowships at Carnegie-Mellon University and the University of British Columbia. He has conducted extensive research in surface chemistry and the Mossbauer effect. He has been at St Francis Xavier University in Canada since 1968 as a Professor, Associate Dean, and Registrar, as well as teaching chemistry and computer science. He currently lectures part-time on business information systems. Bernard is also the author of other successful books: COBOL by Command (1996), A Guide to Microsoft Excel for Scientists and Engineers (now in its fourth edition), A Guide to Microsoft Excel for Business and Management (now in its second edition), Modelling Physics with Microsoft Excel (2014), and SMath for Physics: A Primer (2015). xii

14 IOP Concise Physics Excel VBA for Physicists A Primer Bernard V Liengme Chapter 1 Introduction Visual Basic for Applications (VBA) is a programming language that has been built into Microsoft Office since Office It has its roots in Visual Basic (VB), so when you perform an internet search on a VBA topic do not be surprised by references to VB. In this chapter we will make a few simple changes to our Excel environment to allow us to code and run macros. Then we will see how to code some examples of simple macros (procedures), i.e. functions and subroutines. We close with a brief look at recording a subroutine. 1.1 Preparation There is little to do in preparation. We start by adding the Developer tab to the Excel ribbon. Right click on the Home tab and select Customize Ribbon. This opens the dialog box as shown in figure 1.1, click the box to the left of Developer to add a check mark (if it is not already there), and then click the OK button in the lower right-hand corner of the dialog. As can be seen from the title in this dialog, one can also customize the ribbon by using the command File Options Customize Ribbon. The ribbon now has the Developer tab present, as shown in figure 1.2. We can now check the macro security setting. Open the Developer tab and click on Macro Security to open the dialog shown in figure 1.3. Make sure that the setting is Disable all macros with notification (this is the default setting and should not be changed without good reason.) Beginning with Office 2007, Microsoft required that workbooks containing macros be saved with the extension XLSM; we refer to such workbooks as macro-enabled. This is a security feature since a rogue macro can harm a computer. When you open a macro-enabled workbook you will see a warning as shown in figure 1.4; click on Enable Content if you trust the workbook not to have rogue macros. If you are working with Excel 2003, your workbooks will have the extension XLS even when they contain macros. To learn more about macro security, visit Office-files-12B036FD-D140-4E74-B45E-16FED1A7E5C6. doi: / ch1 1-1 ª Morgan & Claypool Publishers 2016

15 Excel VBA for Physicists Figure 1.1. Customizing the Quick Access Toolbar to add the Developer tab. Figure 1.2. The ribbon with the Developer tab added. You may not see this warning every time; Excel seems to remember if a specific macro-enabled file has been opened in the same user session. At other times the warning comes with a more ominous message (figure 1.5). It seems odd that this message occurs when the file sits on the author s hard drive. In subsequent chapters all the reader needs to do is open one of the workbooks (Topic2.xlsm to Topic8.xlsm) which are available for download see the preface. In this chapter the reader needs to learn how to open the VB Editor (VBE), add a module, and save a macro-enabled file. It is best that the reader starts with a new file. However, to cut down on the work, the companion site has the file Topic1BVL.xlsm, and this chapter gives instructions on copying from that workbook to the reader s new workbook. 1-2

16 Excel VBA for Physicists Figure 1.3. Setting the macro security. Figure 1.4. Example of a macro warning. Figure 1.5. Another macro warning format. 1.2 Demonstrating a simple function Within the Excel environment there are three types of function: the worksheet function (examples being SUM, AVERAGE, ACOS); VB functions (Lcase, Len, Round); 1-3

17 Excel VBA for Physicists and functions that are coded by a user. Functions of the last type are often referred to as user-defined functions (UDFs). Later we will see that all VB functions may be used within a UDF, but there is a restriction on which worksheet function may be used. In general, if there is an equivalent VB function then the worksheet function may not be used. Example. A physics student needs to compute the kinetic energy given the mass and velocity of the object. Figure 1.6 shows a sample worksheet. In column C he uses a worksheet formula to compute the kinetic energy, while column D shows how a UDF may be used. The reader should set up a worksheet like this but leave D2:D5 empty for now. In B7 we have the formula = FORMULATEXT(C2), which displays the referenced cell s formula. Open the Developer tab, click on Visual Basic (the left most icon) to open the VBE. Figure 1.7 shows the VBE window, but since you have just opened it the working space (the module area, the panel at top right) will be grey. Click on the Insert command and select Module. Now type this code into the module: Function KE(mass, Vel) KE = (1 / 2) * mass * Vel ^ 2 End Function You may now return to the worksheet by clicking the green Excel icon on the far left of the VBE toolbars, or by clicking the worksheet if it is visible behind the VBE. In D2 type =KE(A2, B2), press Enter to complete the formula, and drag the formula down to row 5. Suppose you made a mistake in the code and had entered KE = (1/2) *mass*vel+2. You can return to the VBE (try the shortcut ALT+F11) and make the correction. How disappointed will you be when on returning to the worksheet you find the results in columns C and D still do not agree? MORAL. Whenever a change is made to a UDF it will not affect the worksheet until the worksheet is recalculated. Do this by pressing F9, or selecting a cell with the UDF (D2 for example) and double clicking it. Figure 1.6. Example of using a UDF. 1-4

18 Excel VBA for Physicists If you have a syntax error in a macro, Excel will throw up a warning. Click the Debug button and the offending line will be highlighted. After making a correction, click the square blue reset button it is right under Run in the menu bar of the VBE as shown in figure 1.7. When there is a VBA error you cannot do anything with the worksheet until the error is removed. 1.3 Saving a macro-enabled workbook Now we will save our work. From the Excel workspace either click the Save icon in the Quick Access Toolbar (will Microsoft think of a new icon when we have all forgotten about floppy discs?) or use the command File Save. In the normal way, give the file a name such as Topic1 but there is an extra step. Under the name box you will see a box Excel Workbook (.xlsx) with a drop down arrow at the right. Click the arrow and select the second option, Excel Macro-Enabled Workbook (.xlsm), see figure 1.8. If you fail to do this Excel will detect the presence of a macro and issue a warning. If you do not heed the warning all your modules will disappear! Figure 1.7. The VBE interface. Figure 1.8. The macro-enabled option in Save. 1-5

This content has been downloaded from IOPscience. Please scroll down to see the full text.

This content has been downloaded from IOPscience. Please scroll down to see the full text. This content has been downloaded from IOPscience. Please scroll down to see the full text. Download details: IP Address: 37.44.194.164 This content was downloaded on 31/01/2018 at 06:24 Please note that

More information

This content has been downloaded from IOPscience. Please scroll down to see the full text.

This content has been downloaded from IOPscience. Please scroll down to see the full text. This content has been downloaded from IOPscience. Please scroll down to see the full text. Download details: IP Address: 148.251.232.83 This content was downloaded on 22/11/2018 at 08:50 Please note that

More information

Microsoft Excel 2007 Macros and VBA

Microsoft Excel 2007 Macros and VBA Microsoft Excel 2007 Macros and VBA With the introduction of Excel 2007 Microsoft made a number of changes to the way macros and VBA are approached. This document outlines these special features of Excel

More information

Welcome to Microsoft Excel 2013 p. 1 Customizing the QAT p. 5 Customizing the Ribbon Control p. 6 The Worksheet p. 6 Excel 2013 Specifications and

Welcome to Microsoft Excel 2013 p. 1 Customizing the QAT p. 5 Customizing the Ribbon Control p. 6 The Worksheet p. 6 Excel 2013 Specifications and Preface p. xi Welcome to Microsoft Excel 2013 p. 1 Customizing the QAT p. 5 Customizing the Ribbon Control p. 6 The Worksheet p. 6 Excel 2013 Specifications and Limits p. 9 Compatibility with Other Versions

More information

DATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan

DATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan DATA 301 Introduction to Data Analytics Microsoft Excel VBA Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca DATA 301: Data Analytics (2) Why Microsoft Excel Visual Basic

More information

Advanced Financial Modeling Macros. EduPristine

Advanced Financial Modeling Macros. EduPristine Advanced Financial Modeling Macros EduPristine www.edupristine.com/ca Agenda Introduction to Macros & Advanced Application Building in Excel Introduction and context Key Concepts in Macros Macros as recorded

More information

This chapter is intended to take you through the basic steps of using the Visual Basic

This chapter is intended to take you through the basic steps of using the Visual Basic CHAPTER 1 The Basics This chapter is intended to take you through the basic steps of using the Visual Basic Editor window and writing a simple piece of VBA code. It will show you how to use the Visual

More information

Getting started 7. Writing macros 23

Getting started 7. Writing macros 23 Contents 1 2 3 Getting started 7 Introducing Excel VBA 8 Recording a macro 10 Viewing macro code 12 Testing a macro 14 Editing macro code 15 Referencing relatives 16 Saving macros 18 Trusting macros 20

More information

Excel for Chemists. Second Edition

Excel for Chemists. Second Edition Excel for Chemists Second Edition This page intentionally left blank ExceL for Chemists A Comprehensive Guide Second Edition E. Joseph Billo Department of Chemistry Boston College Chestnut Hill, Massachusetts

More information

VBA Excel 2013/2016. VBA Visual Basic for Applications. Learner Guide

VBA Excel 2013/2016. VBA Visual Basic for Applications. Learner Guide VBA Visual Basic for Applications Learner Guide 1 Table of Contents SECTION 1 WORKING WITH MACROS...5 WORKING WITH MACROS...6 About Excel macros...6 Opening Excel (using Windows 7 or 10)...6 Recognizing

More information

download instant at

download instant at CHAPTER 1 - LAB SESSION INTRODUCTION TO EXCEL INTRODUCTION: This lab session is designed to introduce you to the statistical aspects of Microsoft Excel. During this session you will learn how to enter

More information

As you probably know, Microsoft Excel is an

As you probably know, Microsoft Excel is an Introducing Excel Programming As you probably know, Microsoft Excel is an electronic worksheet you can use for a variety of purposes, including the following: maintain lists; perform mathematical, financial,

More information

Saving a Workbook That Contains Macros

Saving a Workbook That Contains Macros Procedures LESSON 64: RECDING A MACRO Adding the DEVELOPER Tab to the Ribbon box, click Customize Ribbon. 4. In the Customize the Ribbon list at the right, click to mark Developer. Setting the Macro Security

More information

Macros enable you to automate almost any task that you can undertake

Macros enable you to automate almost any task that you can undertake Chapter 1: Building and Running Macros In This Chapter Understanding how macros do what they do Recording macros for instant playback Using the relative option when recording macros Running the macros

More information

COMP1000 / Spreadsheets Week 2 Review

COMP1000 / Spreadsheets Week 2 Review / Spreadsheets Week 2 Review Plot chart Column chart/bar chart/pie chart Customize chart Chart style/labels/titles Add trendline Create table Create table/apply different style/print table Sort/filter

More information

Introduction to macros

Introduction to macros L E S S O N 7 Introduction to macros Suggested teaching time 30-40 minutes Lesson objectives To understand the basics of creating Visual Basic for Applications modules in Excel, you will: a b c Run existing

More information

Microsoft Excel Level 2

Microsoft Excel Level 2 Microsoft Excel Level 2 Table of Contents Chapter 1 Working with Excel Templates... 5 What is a Template?... 5 I. Opening a Template... 5 II. Using a Template... 5 III. Creating a Template... 6 Chapter

More information

Macros enable you to automate almost any task that you can undertake

Macros enable you to automate almost any task that you can undertake Chapter 1: Building and Running Macros In This Chapter Understanding how macros do what they do Recording macros for instant playback Using the relative option when recording macros Running the macros

More information

Read Me First (Excel 2007)

Read Me First (Excel 2007) Read Me First (Excel 2007) Concrete Mix Evaluator Before installing the CME program please go through these steps to configure your Excel 2007. Open a NEW BLANK Workbook and click on the "Developer " (A)

More information

Excel Advanced

Excel Advanced Excel 2016 - Advanced LINDA MUCHOW Alexandria Technical & Community College 320-762-4539 lindac@alextech.edu Table of Contents Macros... 2 Adding the Developer Tab in Excel 2016... 2 Excel Macro Recorder...

More information

Reference Services Division Presents. Excel Introductory Course

Reference Services Division Presents. Excel Introductory Course Reference Services Division Presents Excel 2007 Introductory Course OBJECTIVES: Navigate Comfortably in the Excel Environment Create a basic spreadsheet Learn how to format the cells and text Apply a simple

More information

Database Concepts Using Microsoft Access

Database Concepts Using Microsoft Access lab Database Concepts Using Microsoft Access 9 Objectives: Upon successful completion of Lab 9, you will be able to Understand fundamental concepts including database, table, record, field, field name,

More information

2. create the workbook file

2. create the workbook file 2. create the workbook file Excel documents are called workbook files. A workbook can include multiple sheets of information. Excel supports two kinds of sheets for working with data: Worksheets, which

More information

Basic Microsoft Excel 2007

Basic Microsoft Excel 2007 Basic Microsoft Excel 2007 Contents Starting Excel... 2 Excel Window Properties... 2 The Ribbon... 3 Tabs... 3 Contextual Tabs... 3 Dialog Box Launchers... 4 Galleries... 5 Minimizing the Ribbon... 5 The

More information

1 Welcome to Microsoft Excel 2007

1 Welcome to Microsoft Excel 2007 1 Welcome to Microsoft Excel 2007 The Excel Window With Office 2007, Microsoft has abandoned the interface consisting of a menu and a collection of toolbars so common in all Windows applications until

More information

Excel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013)

Excel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013) Excel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013) T APPENDIX B he Excel template for the Payroll Project is an electronic version of the books of account and payroll

More information

Microsoft Excel 2007

Microsoft Excel 2007 Microsoft Excel 2007 Objective To provide a review of the new features in the Microsoft Excel 2007 screen. Overview Introduction Office Button Quick Access Toolbar Tabs Scroll Bar Status Bar Clipboard

More information

Excel Intermediate

Excel Intermediate Excel 2013 - Intermediate (103-124) Multiple Worksheets Quick Links Manipulating Sheets Pages EX16 EX17 Copying Worksheets Page EX337 Grouping Worksheets Pages EX330 EX332 Multi-Sheet Cell References Page

More information

Excel Community SAMPLE CONTENT

Excel Community SAMPLE CONTENT Excel Community GUIDE TO BUSINESS MODELLING BLOG SERIES SAMPLE CONTENT business with CONFIDENCE icaew.com/itfac Contents This document provides the full blog series on a Guide to Business Modelling written

More information

Office 2016 Excel Basics 01 Video/Class Project #13 Excel Basics 1: Excel Grid, Formatting, Formulas, Cell References, Page Setup (O16-13)

Office 2016 Excel Basics 01 Video/Class Project #13 Excel Basics 1: Excel Grid, Formatting, Formulas, Cell References, Page Setup (O16-13) Office 2016 Excel Basics 01 Video/Class Project #13 Excel Basics 1: Excel Grid, Formatting, Formulas, Cell References, Page Setup (O16-13) Topics Covered in Video: 1) Excel file = Workbook, not Document

More information

Instructions for creating and modifying queries will be available in the future.

Instructions for creating and modifying queries will be available in the future. This document is intended to get you started quickly with BEx Analyzer 7.0. You will be able to open, run, and save queries; and export your data to Excel. Instructions for creating and modifying queries

More information

Mastering. Spreadsheets Q

Mastering. Spreadsheets Q Mastering Spreadsheets Q Macmillan Master Series Accounting Arabic Astronomy Background to Business Banking Basic Management Biology British Politics Business Communication Business Law Business Microcomputing

More information

Module 4 : Spreadsheets

Module 4 : Spreadsheets Module 4 : Spreadsheets What is a spreadsheet program? A spreadsheet program allows you to store, organise and analyse information. Applications of spreadsheets focus on generating numeric information

More information

Excel Macros, Links and Other Good Stuff

Excel Macros, Links and Other Good Stuff Excel Macros, Links and Other Good Stuff COPYRIGHT Copyright 2001 by EZ-REF Courseware, Laguna Beach, CA http://www.ezref.com/ All rights reserved. This publication, including the student manual, instructor's

More information

Global Software, Inc.'s Distribution Manager User Manual. Release V12 R5 M1

Global Software, Inc.'s Distribution Manager User Manual. Release V12 R5 M1 Global Software, Inc.'s Distribution Manager User Manual Release V12 R5 M1 Worldwide Headquarters 3201 Beechleaf Court Raleigh, NC 27604 USA +1.919.872.7800 www.glbsoft.com EMEA Headquarters 500 Chiswick

More information

CHAPTER 1 GETTING STARTED

CHAPTER 1 GETTING STARTED GETTING STARTED WITH EXCEL CHAPTER 1 GETTING STARTED Microsoft Excel is an all-purpose spreadsheet application with many functions. We will be using Excel 97. This guide is not a general Excel manual,

More information

This document describes how to use the CAP workbook with Excel It applies to version 6b of the workbook.

This document describes how to use the CAP workbook with Excel It applies to version 6b of the workbook. Introduction This document describes how to use the CAP workbook with Excel 2007. It applies to version 6b of the workbook. Be sure to use the new version 6b of the CAP workbook when using Excel 2007!

More information

Excel Programming with VBA (Macro Programming) 24 hours Getting Started

Excel Programming with VBA (Macro Programming) 24 hours Getting Started Excel Programming with VBA (Macro Programming) 24 hours Getting Started Introducing Visual Basic for Applications Displaying the Developer Tab in the Ribbon Recording a Macro Saving a Macro-Enabled Workbook

More information

0 Mastering Microsoft Office

0 Mastering Microsoft Office 0 Mastering Microsoft Office MACMILLAN MASTER SERIES Accounting Advanced English Language Advanced Pure Mathematics Arabic Banking Basic Management Biology British Politics Business Administration Business

More information

Applied Systems Client Network SEMINAR HANDOUT. Excel 2007: Level 2

Applied Systems Client Network SEMINAR HANDOUT. Excel 2007: Level 2 Applied Systems Client Network SEMINAR HANDOUT Excel 2007: Level 2 Prepared for ASCnet Applied Systems Client Network 801 Douglas Avenue #205 Altamonte Springs, FL 32714 Phone: 407-869-0404 Fax: 407-869-0418

More information

Intermediate Microsoft Excel 2010 Tables and Printing

Intermediate Microsoft Excel 2010 Tables and Printing John W. Jacobs Technology Center 450 Exton Square Parkway Exton, PA 19341 610.280.2666 ccljtc@ccls.org www.ccls.org Intermediate Microsoft Excel 2010 Workshop Topics: Tables o Create tables, use automatic

More information

Experiment 1 CH Fall 2004 INTRODUCTION TO SPREADSHEETS

Experiment 1 CH Fall 2004 INTRODUCTION TO SPREADSHEETS Experiment 1 CH 222 - Fall 2004 INTRODUCTION TO SPREADSHEETS Introduction Spreadsheets are valuable tools utilized in a variety of fields. They can be used for tasks as simple as adding or subtracting

More information

Microsoft Excel Office 2016/2013/2010/2007 Tips and Tricks

Microsoft Excel Office 2016/2013/2010/2007 Tips and Tricks Microsoft Excel Office 2016/2013/2010/2007 Tips and Tricks In Office 2007, the OFFICE BUTTON is the symbol at the top left of the screen. 1 Enter Fractions That Will Display And Calculate Properly a. Type

More information

Excel 2010 Formulas Don't Update Automatically

Excel 2010 Formulas Don't Update Automatically Excel 2010 Formulas Don't Update Automatically Home20132010Other VersionsLibraryForumsGallery Ask a question How can I make the formula result to update automatically when I open it after each update on

More information

Introduction to Microsoft Excel 2010

Introduction to Microsoft Excel 2010 Introduction to Microsoft Excel 2010 This class is designed to cover the following basics: What you can do with Excel Excel Ribbon Moving and selecting cells Formatting cells Adding Worksheets, Rows and

More information

Rev Up to Excel 2010

Rev Up to Excel 2010 Rev Up to Excel 2010 Upgraders Guide to Excel 2010 by Bill Jelen Published by H OLY MACRO! BOOKS PO Box 82, Uniontown, OH 44685 Contents About the Author Dedication Acknowledgements v v v Introduction

More information

SPREADSHEET (Excel 2007)

SPREADSHEET (Excel 2007) SPREADSHEET (Excel 2007) 1 U N I T 0 4 BY I F T I K H A R H U S S A I N B A B U R Spreadsheet Microsoft Office Excel 2007 (or Excel) is a computer program used to enter, analyze, and present quantitative

More information

Excel for Auditors. by Bill Jelen and Dwayne K. Dowell. Holy Macro! Books

Excel for Auditors. by Bill Jelen and Dwayne K. Dowell. Holy Macro! Books Excel for Auditors by Bill Jelen and Dwayne K. Dowell Holy Macro! Books Excel for Auditors 2007 Tickling Keys All rights reserved. No part of this book may be reproduced or transmitted in any form or by

More information

Introduction to Microsoft Excel

Introduction to Microsoft Excel Chapter A spreadsheet is a computer program that turns the computer into a very powerful calculator. Headings and comments can be entered along with detailed formulas. The spreadsheet screen is divided

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Files in Microsoft Excel are referred to as Workbooks. This is because they can contain more than one sheet. The number of sheets a workbook can contain is only limited by your computer

More information

You can record macros to automate tedious

You can record macros to automate tedious Introduction to Macros You can record macros to automate tedious and repetitive tasks in Excel without writing programming code directly. Macros are efficiency tools that enable you to perform repetitive

More information

PHLI Instruction (734) Introduction. Lists.

PHLI Instruction (734) Introduction. Lists. INTERMEDIATE EXCEL Introduction Microsoft Excel has many purposes. In addition to being an excellent data manger, Excel provides the means to perform complex analysis and evaluation of data. This brief

More information

GeODin Basics Training. Introduction to GeODin

GeODin Basics Training. Introduction to GeODin Introduction to GeODin Contents User interface Objects & object types Organising object types General data Geological data Geotechnical data Samples Well design Groundwater Data types Creating a new data

More information

Excel Level 1

Excel Level 1 Excel 2016 - Level 1 Tell Me Assistant The Tell Me Assistant, which is new to all Office 2016 applications, allows users to search words, or phrases, about what they want to do in Excel. The Tell Me Assistant

More information

Introduction to Microsoft Excel

Introduction to Microsoft Excel Athens-Clarke County Library Page 1 What is a spreadsheet program? Microsoft Excel is an example of a spreadsheet program that will maintain records for you relating to finances, products, activities,

More information

Office 2016 Excel Basics 06 Video/Class Project #18 Excel Basics 6: Customize Quick Access Toolbar (QAT) and Show New Ribbon Tabs

Office 2016 Excel Basics 06 Video/Class Project #18 Excel Basics 6: Customize Quick Access Toolbar (QAT) and Show New Ribbon Tabs **These pdf Notes are for video 6-8. Scroll down to see notes for all three videos. Office 2016 Excel Basics 06 Video/Class Project #18 Excel Basics 6: Customize Quick Access Toolbar (QAT) and Show New

More information

ABOUT THIS COURSE... 3 ABOUT THIS MANUAL... 4 LESSON 1: MANAGING LISTS... 5

ABOUT THIS COURSE... 3 ABOUT THIS MANUAL... 4 LESSON 1: MANAGING LISTS... 5 Table of Contents ABOUT THIS COURSE... 3 ABOUT THIS MANUAL... 4 LESSON 1: MANAGING LISTS... 5 TOPIC 1A: SORT A LIST... 6 Sort a list in A-Z or Z-A Order... 6 TOPIC 1B: RENUMBER A LIST... 7 Renumber a List

More information

Excel Tables and Pivot Tables

Excel Tables and Pivot Tables A) Why use a table in the first place a. Easy to filter and sort if you only sort or filter by one item b. Automatically fills formulas down c. Can easily add a totals row d. Easy formatting with preformatted

More information

Excel4apps Web ADI Investigation with Excel4apps Wands version Excel4apps Inc.

Excel4apps Web ADI Investigation with Excel4apps Wands version Excel4apps Inc. Excel4apps Web ADI Investigation with Excel4apps Wands version 5 2014 Excel4apps Inc. Table of Contents 1 Introduction... 3 2 Error... 3 3 Problem Description... 3 4 Cause... 3 5 Conclusion... 4 6 Next

More information

Candy is Dandy Project (Project #12)

Candy is Dandy Project (Project #12) Candy is Dandy Project (Project #12) You have been hired to conduct some market research about M&M's. First, you had your team purchase 4 large bags and the results are given for the contents of those

More information

Microsoft Excel - Macros Explained

Microsoft Excel - Macros Explained Microsoft Excel - Macros Explained Macros Explained Macros or macroinstructions allow you to automate procedures or calculations in Excel. Macros are usually recorded using the Macro recorder and then

More information

Customizing the Excel 2013 program window. Getting started with Excel 2013

Customizing the Excel 2013 program window. Getting started with Excel 2013 Customizing the Excel 2013 program window 1 2 Getting started with Excel 2013 Working with data and Excel tables Creating workbooks Modifying workbooks Modifying worksheets Merging and unmerging cells

More information

B I Z N E T B R O A D C A S T Release Notes. BizNet Broadcast Build /5/ P a g e

B I Z N E T B R O A D C A S T Release Notes. BizNet Broadcast Build /5/ P a g e B I Z N E T B R O A D C A S T 2. 2. 1 Release Notes BizNet Broadcast Build 2.2.1 5/5/2015 1 P a g e Copyright Notice BizNet Software makes no representations or warranties with respect to the contents

More information

Introduction to Microsoft Excel

Introduction to Microsoft Excel Intro to Excel Introduction to Microsoft Excel OVERVIEW In this lab, you will become familiar with the general layout and features of Microsoft Excel spreadsheet computer application. Excel has many features,

More information

Let s start by examining an Excel worksheet for the linear programming. Maximize P 70x 120y. subject to

Let s start by examining an Excel worksheet for the linear programming. Maximize P 70x 120y. subject to Excel is a useful tool for solving linear programming problems. In this question we ll solve and analyze our manufacturing problem with Excel. Although this problem can easily be solved graphically or

More information

Using Excel to Troubleshoot EMIS Data

Using Excel to Troubleshoot EMIS Data Using Excel to Troubleshoot EMIS Data Overview Basic Excel techniques can be used to analyze EMIS data from Student Information Systems (SISs), from the Data Collector, and on ODE EMIS reports This session

More information

VBA Collections A Group of Similar Objects that Share Common Properties, Methods and

VBA Collections A Group of Similar Objects that Share Common Properties, Methods and VBA AND MACROS VBA is a major division of the stand-alone Visual Basic programming language. It is integrated into Microsoft Office applications. It is the macro language of Microsoft Office Suite. Previously

More information

Introduction. A cell can contain any of the following:

Introduction. A cell can contain any of the following: Introduction A spreadsheet is a table consisting of Rows and Columns. Where a row and a column meet, the box is called a Cell. Each cell has an address consisting of the column name followed by the row

More information

Lesson 4: Introduction to the Excel Spreadsheet 121

Lesson 4: Introduction to the Excel Spreadsheet 121 Lesson 4: Introduction to the Excel Spreadsheet 121 In the Window options section, put a check mark in the box next to Formulas, and click OK This will display all the formulas in your spreadsheet. Excel

More information

Excel VBA. Microsoft Excel is an extremely powerful tool that you can use to manipulate, analyze, and present data.

Excel VBA. Microsoft Excel is an extremely powerful tool that you can use to manipulate, analyze, and present data. Excel VBA WHAT IS VBA AND WHY WE USE IT Microsoft Excel is an extremely powerful tool that you can use to manipulate, analyze, and present data. Sometimes though, despite the rich set of features in the

More information

MS Excel Henrico County Public Library. I. Tour of the Excel Window

MS Excel Henrico County Public Library. I. Tour of the Excel Window MS Excel 2013 I. Tour of the Excel Window Start Excel by double-clicking on the Excel icon on the desktop. Excel may also be opened by clicking on the Start button>all Programs>Microsoft Office>Excel.

More information

Solving Managerial Accounting Problems Using Excel for Windows

Solving Managerial Accounting Problems Using Excel for Windows Solving Managerial Accounting Problems Using Excel for Windows to accompany Managerial Accounting Fourth Edition Rex A Schildhouse, M.B.A. San Diego Community College District Miramar Campus San Diego,

More information

Excel 2010: Getting Started with Excel

Excel 2010: Getting Started with Excel Excel 2010: Getting Started with Excel Excel 2010 Getting Started with Excel Introduction Page 1 Excel is a spreadsheet program that allows you to store, organize, and analyze information. In this lesson,

More information

MICROSOFT Excel 2010 Advanced Self-Study

MICROSOFT Excel 2010 Advanced Self-Study MICROSOFT Excel 2010 Advanced Self-Study COPYRIGHT This manual is copyrighted: S&G Training Limited. This manual may not be copied, photocopied or reproduced in whole or in part without the written permission

More information

Lesson 2. Using the Macro Recorder

Lesson 2. Using the Macro Recorder Lesson 2. Using the Macro Recorder When the recorder is activated, everything that you do will be recorded as a Macro. When the Macro is run, everything that you recorded will be played back exactly as

More information

x, with a range of 1-50 (You can use the randbetween command on excel)

x, with a range of 1-50 (You can use the randbetween command on excel) HW 2, Part 1 Question 1 (In EXCEL) Create a data set with the following characteristics: Sample size: 100 One independent variable: x, with a range of 1-50 (You can use the randbetween command on excel)

More information

Microsoft How to Series

Microsoft How to Series Microsoft How to Series Getting Started with EXCEL 2007 A B C D E F Tabs Introduction to the Excel 2007 Interface The Excel 2007 Interface is comprised of several elements, with four main parts: Office

More information

Introduction to Microsoft Excel 2010

Introduction to Microsoft Excel 2010 Introduction to Microsoft Excel 2010 This class is designed to cover the following basics: What you can do with Excel Excel Ribbon Moving and selecting cells Formatting cells Adding Worksheets, Rows and

More information

Microsoft Office Excel 2007

Microsoft Office Excel 2007 Microsoft Office Excel 2007 Gaining Proficiency: Web & Business Applications 1/26/2009 Microsoft Excel 1 Isolate Assumptions Base your formulas on cell references, not values. Use of values means use of

More information

Excel 2010 Foundation. Excel 2010 Foundation SAMPLE

Excel 2010 Foundation. Excel 2010 Foundation SAMPLE Excel 2010 Foundation Excel 2010 Foundation Excel 2010 Foundation Page 2 2010 Cheltenham Courseware Pty. Ltd. All trademarks acknowledged. E&OE. No part of this document may be copied without written permission

More information

Troubleshooting and FAQs

Troubleshooting and FAQs Troubleshooting and FAQs 1. The dropdown menu for a field on the Incident Data worksheet does not contain all the option I want to enter. There is a high likelihood that the option you want to enter is

More information

HOW TO USE THIS BOOK... V 1 GETTING STARTED... 2

HOW TO USE THIS BOOK... V 1 GETTING STARTED... 2 TABLE OF CONTENTS HOW TO USE THIS BOOK...................... V 1 GETTING STARTED.......................... 2 Introducing Data Analysis with Excel...2 Tour the Excel Window...3 Explore the Ribbon...4 Using

More information

Getting Started with Excel

Getting Started with Excel Getting Started with Excel Introduction Excel is a spreadsheet program that allows you to store, organize, and analyze information. In this lesson, you will learn your way around the Excel 2010 environment,

More information

Fundamentals of Operating Systems. Fifth Edition

Fundamentals of Operating Systems. Fifth Edition Fundamentals of Operating Systems Fifth Edition Fundamentals of Operating Systems A.M. Lister University of Queensland R. D. Eager University of Kent at Canterbury Fifth Edition Springer Science+Business

More information

Basics: How to Calculate Standard Deviation in Excel

Basics: How to Calculate Standard Deviation in Excel Basics: How to Calculate Standard Deviation in Excel In this guide, we are going to look at the basics of calculating the standard deviation of a data set. The calculations will be done step by step, without

More information

MS Excel Henrico County Public Library. I. Tour of the Excel Window

MS Excel Henrico County Public Library. I. Tour of the Excel Window MS Excel 2013 I. Tour of the Excel Window Start Excel by double-clicking on the Excel icon on the desktop. Excel may also be opened by clicking on the Start button>all Programs>Microsoft Office>Excel.

More information

Visual basic tutorial problems, developed by Dr. Clement,

Visual basic tutorial problems, developed by Dr. Clement, EXCEL Visual Basic Tutorial Problems (Version January 20, 2009) Dr. Prabhakar Clement Arthur H. Feagin Distinguished Chair Professor Department of Civil Engineering, Auburn University Home page: http://www.eng.auburn.edu/users/clemept/

More information

Excel 2013 Getting Started

Excel 2013 Getting Started Excel 2013 Getting Started Introduction Excel 2013 is a spreadsheet program that allows you to store, organize, and analyze information. While you may think that Excel is only used by certain people to

More information

Civil Engineering Computation

Civil Engineering Computation Civil Engineering Computation First Steps in VBA Homework Evaluation 2 1 Homework Evaluation 3 Based on this rubric, you may resubmit Homework 1 and Homework 2 (along with today s homework) by next Monday

More information

outlook-vba #outlookvba

outlook-vba #outlookvba outlook-vba #outlookvba Table of Contents About 1 Chapter 1: Getting started with outlook-vba 2 Remarks 2 Examples 2 Introduction 2 Outlook Visual Basic for Applications 3 Advanced topics 3 Chapter 2:

More information

Reading Lists Guide. Contents

Reading Lists Guide. Contents Reading Lists Guide THE LIBRARY www.salford.ac.uk/library Contents Introduction... 2 Getting started... 4 Create a profile... 4 Install the bookmark button... 5 Add items to a list... 5 Add books... 5

More information

HO-1: BASIC SPREADSHEET SKILLS - CREATING A WORKBOOK

HO-1: BASIC SPREADSHEET SKILLS - CREATING A WORKBOOK HO-1: BASIC SPREADSHEET SKILLS - CREATING A WORKBOOK After completing this exercise you will be able to: Create a new workbook and add and rename worksheets. Enter data (text labels, numerical values and

More information

RegressItPC installation and test instructions 1

RegressItPC installation and test instructions 1 RegressItPC installation and test instructions 1 1. Create a new folder in which to store your RegressIt files. It is recommended that you create a new folder called RegressIt in the Documents folder,

More information

Chapter-2 Digital Data Analysis

Chapter-2 Digital Data Analysis Chapter-2 Digital Data Analysis 1. Securing Spreadsheets How to Password Protect Excel Files Encrypting and password protecting Microsoft Word and Excel files is a simple matter. There are a couple of

More information

IV. Arranging & Viewing the Worksheet

IV. Arranging & Viewing the Worksheet IV. Arranging & Viewing the Worksheet Adding & deleting rows and columns Excel makes it easy to rearrange a worksheet. Along with dragging data ranges to move them, you can add or delete rows and columns.

More information

Microsoft Excel Basics

Microsoft Excel Basics M01_KUNC1657_SE_04_C01.QXD 12/18/08 7:56 PM Page 1 CHAPTER 1 Microsoft Excel Basics Objectives After reading this chapter, you should be able to perform the following tasks: Describe how spreadsheets are

More information

Excel Select a template category in the Office.com Templates section. 5. Click the Download button.

Excel Select a template category in the Office.com Templates section. 5. Click the Download button. Microsoft QUICK Excel 2010 Source Getting Started The Excel Window u v w z Creating a New Blank Workbook 2. Select New in the left pane. 3. Select the Blank workbook template in the Available Templates

More information

European Computer Driving Licence. Advanced Spreadsheet Software BCS ITQ Level 3. Syllabus Version 2.0

European Computer Driving Licence. Advanced Spreadsheet Software BCS ITQ Level 3. Syllabus Version 2.0 ECDL Advanced European Computer Driving Licence Advanced Spreadsheet Software BCS ITQ Level 3 Using Microsoft Excel 2010 Syllabus Version 2.0 This training, which has been approved by BCS, The Chartered

More information

Microsoft Excel is a spreadsheet tool capable of performing calculations, analyzing data and integrating information from different programs.

Microsoft Excel is a spreadsheet tool capable of performing calculations, analyzing data and integrating information from different programs. About the Tutorial Microsoft Excel is a commercial spreadsheet application, written and distributed by Microsoft for Microsoft Windows and Mac OS X. At the time of writing this tutorial the Microsoft excel

More information

Teach yourself... PivotTables and PivotCharts. with. Microsoft Excel Easy to follow Step-by-step instructions Written in plain English

Teach yourself... PivotTables and PivotCharts. with. Microsoft Excel Easy to follow Step-by-step instructions Written in plain English Easy Way Teach yourself... PivotTables and PivotCharts with Microsoft Excel 2013 Easy to follow Step-by-step instructions Written in plain English A Cheryl Price Publication Easy Way PivotTables and PivotCharts

More information