Public Function randomdouble(lowerbound As Double, upperbound As Double) As Double On Error Resume Next

Size: px
Start display at page:

Download "Public Function randomdouble(lowerbound As Double, upperbound As Double) As Double On Error Resume Next"

Transcription

1 Table of Contents Introduction...1 Using VBA Functions...1 Accessing Visual Basic in Excel...2 Some Example Functions...3 Random Numbers...4 RandomDouble...4 randomint...4 Using the random numbers...5 Ranges of Values...6 Integer Ranges... 6 Char Ranges...6 Date Range...7 Sets...10 Excel Ranges as Sets...11 Shriek Functionality...12 Calling Macros...14 Introduction This document presents some ways in which MS Excel, combined with a little simple VBA (Visual Basic for Applications) can be helpful when generating test data. Using VBA Functions In the Visual Basic editor it is possible to create functions which can be used as though they were normal excel commands e.g. With the following code in Visual Basic in the spreadsheet: Public Function randomdouble(lowerbound As Double, upperbound As Double) As Double On Error Resume Next If upperbound < lowerbound Then randomdouble = (lowerbound - upperbound) * Rnd + upperbound Else randomdouble = (upperbound - lowerbound) * Rnd + lowerbound End If End Function Public Function daterange(fromdate As Variant, todate As Variant, Optional tformat As String = "dddddd ttttt") As String Dim fdate As Date, tdate As Date cast the variants fdate = fromdate tdate = todate Dim lcount As Double, mcount As Double convert the dates to doubles lcount = fdate mcount = tdate set the return date formatted to the correct style daterange = Format(randomDouble(lCount, mcount), tformat) End Function We can create random dates in a range by typing a daterange command into a cell, since there is no MS Excel function called daterange our custom VBA function will be called instead:

2 =daterange( 12/4/76, 14/6/89 ) The quotes are necessary otherwise, MS Excel will interpret the date as being = 12 dividedby 4 dividedby 76 The Cell will display a random date between 12/4/1976 and 14/6/1989. As shown below. Using the normal MS Excel autofill process, we can create a whole series of random dates in this range. Grab the corner of the cell and drag down. Values will be automatically filled in to the cells. Accessing Visual Basic in Excel In the example datagen.xls file, you can view the visual basic code by using the Visual Basic editor accessible from the Tools\Macro menu hierarchy. All code is either in the Workbook, or the Modules section of the project hierarchy (module1).

3 Some Example Functions The following sections will describe some example VBA functions which might be of use for generating test data.

4 Random Numbers Starting with the random number functions as these are used by other functions which generate ranges. randomdouble randomint =randomdouble(x,y) returns a random double between two given double values X and Y e.g. =randomdouble(4.0,10.0) generate a random integer between 4.0 and 10.0, e.g =randomint(x,y) returns a random integer between two given integer values X and Y e.g. =randomint(100,40) generate a random integer between 100 and 40, e.g. 67 Both functions have checks in place so that no matter what order the paramaters are e.g (lowervalue,highervalue) or (highervalue,lowervalue) the functions still return a value within the range. RandomDouble Uses the MS Excel Rnd command which returns a double between 0 and 1. The code fragment (lowerbound upperbound + 1) * Rnd + upperbound was in the MS Excel help file and is a standard way in Excel of generating random numbers between a range. Here we have encapsulated it in a function because we will reuse it often, and we are making it resilient to the parameter order. I have also removed the +1 The MS Excel help file is very good. Use it regularly and explore it to see what commands are built in to Excel. Press F1 in Excel to access the help. randomint randomint is very similar to the randomdouble function.

5 Using the random numbers Both randomint and randomdouble can be used directly in MS Excel cells to return a random number between two upper and lower boundaries: =randomint(3.10) =randomint(10,3) =randomdouble(3,10) =randomdouble(10,3)

6 Ranges of Values A range in MS Excel has a very specific meaning, but here we are talking about a set of values between two other values. The use of Excel ranges to generate test data will be discussed later <section to be written>. Integer Ranges <examples> <repeatedranges> Char Ranges

7 And we can repeat the ranges to make strings Date Range DateRange will return a formatted date randomly chosen from between two supplied dates.

8 the tformat paramater can be General Date Long Date Medium Date Short Date Long Time Medium Time Short Time using Windows settings using Windows long date format. using the medium date format appropriate according to Windows using Windows short date format. using Windows long time format time in 12-hour format with hours and minutes and AM/PM time in 24-hour format Or made up from : Local Time separator / Local Date Separator c d dd ddd dddd ddddd dddddd aaaa w ww m mm mmm mmmm oooo q y yy yyyy h Display as ddddd ttttt day (as a number) without a leading zero day (as a number) with a leading zero day as an abbreviation Full name of day Windows Short Date format Windows Long Date format Localised dddd day of the week as a number week of the year as a number month (as a number) without a leading zero. Or acts as a minute value if used after h or hh month (as a number) with a leading zero. Or acts as a minute (see above) month as an abbreviation month as a full month name Localised version of mmmm quarter of the year as a number day of the year as a number year as a 2-digit number year as a 4-digit number hour as a number without leading zeros Hh hour as a number with leading zeros.

9 N Nn S Ss t t t t t AM/PM am/pm A/P a/p AMPM minute as a number without leading zeros minute as a number with leading zeros second as a number without leading zeros second as a number with leading zeros time as defined by Windows use 12-hour clock and uppercase AM or PM use 12-hour clock and lowercase AM or PM use 12-hour clock and uppercase A or P use 12-hour clock and lowercase A or P use 12-hour clock and AM or PM defined by Windows Settings

10 Sets The setval function returns one of the values in the set at random. Autofill can then be used to quickly populate a column with values in a set.

11 Excel Ranges as Sets To Create a Range, highlight an area, then create a named range, then type in the name. We can then programatically get a random value from that range using =valuefromexcelrange("bee3)

12 Shriek Functionality The macros "Create New Data Sheet" will run a macro across the current worksheet and create a new workbook with the formulas copied as values and any "!*" cells expanded e.g. The values above are the results of formulas: "10" above is a =randomint(3,10) and "08 February :50:44" is actually =daterange("12/4/1976", "14/6/1989") The formulas would be recalculated and copied as actual values and would become: where the row after!*23 was repeated 23 times. The "Create New Sheets from! Sheets" will do the same for all sheets named!<something> in the spreadsheet. e.g

13 In our example sheet we have 2!sheets:!data1!data2 Running the macro "Create New Sheets from! Sheets" will create a new workbook with two extra sheets: data2 is: data1 is: The 3 code subroutines which do this are: copysheettosheet createsheetfromactivesheet createsheetfromshrieksheets The code has minimal commenting but should be understandable.

14 Calling Macros A custom set of menu commands were created in the tools menu automatically by using some VBA code. In the workbook we use the open event to create the menu and get rid of the menu in the BeforeClose event Full code for these events follows (although it is easily viewable in side the Excel VBA editor):

15 Private Sub Workbook_Open() Dim CmdBar As CommandBar : Dim CmdBarMenu As CommandBarControl Dim CmdBarMenuItem As CommandBarControl Point to the Worksheet Menu Bar Set CmdBar = Application.CommandBars("Worksheet Menu Bar") Point to the Tools menu on the menu bar Set CmdBarMenu = CmdBar.Controls("Tools") Add a new menu item to the Tools menu Set CmdBarMenuItem = CmdBarMenu.Controls.Add Set the properties for the new control With CmdBarMenuItem.Caption = "========Test Data Addin=========".OnAction = "".Tag = "_CD_TestDataInSitu_v1_0".Enabled = False End With Set CmdBarMenuItem = CmdBarMenu.Controls.Add Set the properties for the new control With CmdBarMenuItem.Caption = "Create New Data Sheet".OnAction = "" & ThisWorkbook.Name & "!createsheetfromactivesheet".tag = "_CD_TestDataInSitu_v1_0" End With Set CmdBarMenuItem = CmdBarMenu.Controls.Add Set the properties for the new control With CmdBarMenuItem.Caption = "Create New Sheets from! Sheets".OnAction = "" & ThisWorkbook.Name & "!createsheetfromshrieksheets".tag = "_CD_TestDataInSitu_v1_0" End With Set CmdBarMenuItem = CmdBarMenu.Controls.Add Set the properties for the new control With CmdBarMenuItem.Caption = "Information About AddIn".OnAction = "" & ThisWorkbook.Name & "!helpnow".tag = "_CD_TestDataInSitu_v1_0" End With Set CmdBarMenuItem = CmdBarMenu.Controls.Add Set the properties for the new control With CmdBarMenuItem.Caption = "============================".OnAction = "".Tag = "_CD_TestDataInSitu_v1_0".Enabled = False End With End Sub Private Sub Workbook_BeforeClose(Cancel As Boolean) On Error Resume Next Dim CmdBar As CommandBar : Dim CmdBarMenu As CommandBarControl : Dim CmdBarMenuItem As CommandBarControl Set CmdBar = Application.CommandBars("Worksheet Menu Bar") Set CmdBarMenu = CmdBar.Controls("Tools") Set CmdCtrl = Application.CommandBars.FindControl(Tag:="_CD_TestDataInSitu_v1_0") While Not CmdCtrl Is Nothing CmdCtrl.Delete Set CmdCtrl = Application.CommandBars.FindControl _ (Tag:="_CD_TestDataInSitu_v1_0") Wend End Sub

EnableBasic. The Enable Basic language. Modified by Admin on Sep 13, Parent page: Scripting Languages

EnableBasic. The Enable Basic language. Modified by Admin on Sep 13, Parent page: Scripting Languages EnableBasic Old Content - visit altium.com/documentation Modified by Admin on Sep 13, 2017 Parent page: Scripting Languages This Enable Basic Reference provides an overview of the structure of scripts

More information

1. Introduction to Microsoft Excel

1. Introduction to Microsoft Excel 1. Introduction to Microsoft Excel A spreadsheet is an online version of an accountant's worksheet, which can automatically do most of the calculating for you. You can do budgets, analyze data, or generate

More information

Using Custom Number Formats

Using Custom Number Formats APPENDIX B Using Custom Number Formats Although Excel provides a good variety of built-in number formats, you may find that none of these suits your needs. This appendix describes how to create custom

More information

Formatting cells. Microsoft Excel Cell alignment. Format cells options

Formatting cells. Microsoft Excel Cell alignment. Format cells options Formatting cells Microsoft Excel 2003 Cell alignment 1. Select a cell or cells that you wish to apply alignment 2. Click Left, Centre or Right alignment. Left, Centre, Right Format cells options 1. Highlight

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Excel contains numerous tools that are intended to meet a wide range of requirements. Some of the more specialised tools are useful to only certain types of people while others have

More information

Excel's functionality falls into three different categories:

Excel's functionality falls into three different categories: Excel Data Analysis Options Excel's functionality falls into three different categories: entering data, analyzing data, and displaying the results. Understanding and accurately performing these functions

More information

Ms Excel Vba Continue Loop Through Columns Range

Ms Excel Vba Continue Loop Through Columns Range Ms Excel Vba Continue Loop Through Columns Range Learn how to make your VBA code dynamic by coding in a way that allows your 5 Different Ways to Find The Last Row or Last Column Using VBA In Microsoft

More information

Adobe EchoSign Calculated Fields Guide

Adobe EchoSign Calculated Fields Guide Adobe EchoSign Calculated Fields Guide Version 1.0 Last Updated: May, 2013 Table of Contents Table of Contents... 2 Overview... 3 Calculated Fields Use-Cases... 3 Calculated Fields Basics... 3 Calculated

More information

MagicListbox Description. MagicListbox. A Listbox Component from Simon Berridge RealStudio 2011 R4.3.

MagicListbox Description. MagicListbox. A Listbox Component from Simon Berridge RealStudio 2011 R4.3. MagicListbox A Listbox Component from Simon Berridge simberr@gmail.com RealStudio 2011 R4.3 Page 1 of 12 Table of Contents Introduction! 4 New Properties! 5 Property List Editor Properties! 5 TableType

More information

NCSS Statistical Software. The Data Window

NCSS Statistical Software. The Data Window Chapter 103 Introduction This chapter discusses the operation of the NCSS Data Window, one of the four main windows of the NCSS statistical analysis system. The other three windows are the Output Window,

More information

Download the files from you will use these files to finish the following exercises.

Download the files from  you will use these files to finish the following exercises. Exercise 6 Download the files from http://www.peter-lo.com/teaching/x4-xt-cdp-0071-a/source6.zip, you will use these files to finish the following exercises. 1. This exercise will guide you how to create

More information

1. Introduction to Microsoft Excel

1. Introduction to Microsoft Excel 1. Introduction to Microsoft Excel A spreadsheet is an online version of an accountant's worksheet, which can automatically do most of the calculating for you. You can do budgets, analyze data, or generate

More information

Microsoft Excel 2013: Part 3 More on Formatting Cells And Worksheet Basics. To apply number formatting:

Microsoft Excel 2013: Part 3 More on Formatting Cells And Worksheet Basics. To apply number formatting: Microsoft Excel 2013: Part 3 More on Formatting Cells And Worksheet Basics Formatting text and numbers In Excel, you can apply specific formatting for text and numbers instead of displaying all cell content

More information

Table Of Contents. Table Of Contents

Table Of Contents. Table Of Contents Windows and Files Table Of Contents Table Of Contents Minitab Windows... 5 Windows... 5 Rename Graph... 5 Rename Worksheet... 5 Data Window... 7 Data Window Overview... 7 General information on working

More information

IF 1: 2: INDEX MATCH MATCH

IF 1: 2: INDEX MATCH MATCH How to Excel Part 3 Contents Exercise 1: Advanced IF formulas... 3 Exercise 2: INDEX MATCH MATCH... 6 Data validation... 7 Exercise 3 Recording Macros... 8 Setting up a Personal workbook... 10 Adding a

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

Laboratory 1. Part 1: Introduction to Spreadsheets

Laboratory 1. Part 1: Introduction to Spreadsheets Laboratory 1 Part 1: Introduction to Spreadsheets By the end of this laboratory session you should be familiar with: Navigating around a worksheet. Naming sheets and cells. Formatting. The use of formulae.

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

Easily manage database using Pivot Tables

Easily manage database using Pivot Tables Easily manage database using Pivot Tables Pivot Table is very useful in analysing, sorting and getting specific details. Here we have data of 200 rows consisting of columns No, Product, Category, City,

More information

MOVING AND COPYING DATA...

MOVING AND COPYING DATA... Overview NOTES... 2 OVERVIEW... 3 VIEW THE PROJECT... 5 USING FORMULAS... 6 BASIC EXCEL REVIEW... 6 ENTERING FORMULAS... 7 Typing formulas... 7 Clicking to insert cell references... 7 Using a simple cell

More information

Microsoft Excel Chapter 1. Creating a Worksheet and a Chart

Microsoft Excel Chapter 1. Creating a Worksheet and a Chart Microsoft Excel 2013 Chapter 1 Creating a Worksheet and a Chart Objectives Describe the Excel worksheet Enter text and numbers Use the Sum button to sum a range of cells Enter a simple function Copy the

More information

COMPUTING AND DATA ANALYSIS WITH EXCEL

COMPUTING AND DATA ANALYSIS WITH EXCEL COMPUTING AND DATA ANALYSIS WITH EXCEL Lesson 1: Introduction to the Excel Environment 1 Scheme Introduction to spreadsheets The Excel Interface Menus Toolbars Built-in Help tool Workbooks, Worksheets,

More information

Vanguard Appraisals, Inc. CAMA-X. Advanced Query Wizard And Pro-Version Report Design

Vanguard Appraisals, Inc. CAMA-X. Advanced Query Wizard And Pro-Version Report Design Vanguard Appraisals, Inc. CAMA-X Advanced Query Wizard And Pro-Version Report Design Copyright 1995 2007 Vanguard Appraisals, Inc. The Query Wizard is intended for use only when you want to print a query

More information

Section 3. Formulas. By the end of this Section you should be able to:

Section 3. Formulas. By the end of this Section you should be able to: Excel 2003 CLAIT Plus Section 3 Formulas By the end of this Section you should be able to: Create Simple Formulas Understand Mathematical Operators Use Brackets Calculate Percentages Select Cells with

More information

Teach or show Excel the pattern, then drag the cursor and Excel will complete the pattern

Teach or show Excel the pattern, then drag the cursor and Excel will complete the pattern Autofill: Teach or show Excel the pattern, then drag the cursor and Excel will complete the pattern Step 1: select the pattern Step 2: hover the cursor over the bottom left corner of the highlighted area,

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Formatting a spreadsheet means changing the way it looks to make it neater and more attractive. Formatting changes can include modifying number styles, text size and colours. Many

More information

FACULTY AND STAFF COMPUTER FOOTHILL-DE ANZA

FACULTY AND STAFF COMPUTER FOOTHILL-DE ANZA FACULTY AND STAFF COMPUTER TRAINING @ FOOTHILL-DE ANZA Office 2001 Excel Worksheets A Quick Reference Guide 1 Getting Started Excel is a powerful spreadsheet program. To open up a new Microsoft Excel 2001

More information

Microsoft Excel Basics Ben Johnson

Microsoft Excel Basics Ben Johnson Microsoft Excel Basics Ben Johnson Topic...page # Basics...1 Workbook and worksheets...1 Sizing columns and rows...2 Auto Fill...2 Sort...2 Formatting Cells...3 Formulas...3 Percentage Button...4 Sum function...4

More information

UNIT ONE: The Worksheet. Workbook Window Excel Worksheet Fill handle Automatic fill Column widths Opening a file Saving a file

UNIT ONE: The Worksheet. Workbook Window Excel Worksheet Fill handle Automatic fill Column widths Opening a file Saving a file UNIT ONE: The Worksheet T o p i c s : Workbook Window Excel Worksheet Fill handle Automatic fill Column widths Opening a file Saving a file I. Start Excel: 1. Click the Start button in the lower-left corner

More information

Excel 2016: Basics 2 Math and Functions

Excel 2016: Basics 2 Math and Functions Excel 2016: Basics 2 Math and Functions training@health.ufl.edu Excel 2016: Basics 2 Math and Functions 2.0 hours In this workshop we will work with patterns of text, numbers and dates; build simple equations;

More information

Building an Excel Add-In

Building an Excel Add-In About Add-Ins An Excel Add-In is a file (usually with an.xlam or.xll extension -.xla in older versions of Excel) that Excel can load when it starts up. The file contains code (VBA in the case of an.xlam

More information

Microsoft Excel Chapter 1. Creating a Worksheet and an Embedded Chart

Microsoft Excel Chapter 1. Creating a Worksheet and an Embedded Chart Microsoft Excel 2010 Chapter 1 Creating a Worksheet and an Embedded Chart Objectives Describe the Excel worksheet Enter text and numbers Use the Sum button to sum a range of cells Copy the contents of

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

BASIC EXCEL SYLLABUS Section 1: Getting Started Section 2: Working with Worksheet Section 3: Administration Section 4: Data Handling & Manipulation

BASIC EXCEL SYLLABUS Section 1: Getting Started Section 2: Working with Worksheet Section 3: Administration Section 4: Data Handling & Manipulation BASIC EXCEL SYLLABUS Section 1: Getting Started Unit 1.1 - Excel Introduction Unit 1.2 - The Excel Interface Unit 1.3 - Basic Navigation and Entering Data Unit 1.4 - Shortcut Keys Section 2: Working with

More information

Vanguard Appraisals, Inc. CAMA-X. Advanced Query Wizard And Pro-Version Report Design

Vanguard Appraisals, Inc. CAMA-X. Advanced Query Wizard And Pro-Version Report Design Vanguard Appraisals, Inc. CAMA-X Advanced Query Wizard And Pro-Version Report Design Copyright 1995 2008 Vanguard Appraisals, Inc. Grouping Data & Where to find it? General & Status/Legal tab contents

More information

Examples. Alexander Walker May 26, 2018

Examples. Alexander Walker May 26, 2018 Examples Alexander Walker Alexander.Walker1989@gmail.com May 26, 2018 1 Formatting with writedata and writedatatable ## data.frame to write df

More information

Excel 2016 Basics for Windows

Excel 2016 Basics for Windows Excel 2016 Basics for Windows Excel 2016 Basics for Windows Training Objective To learn the tools and features to get started using Excel 2016 more efficiently and effectively. What you can expect to learn

More information

Microsoft Office Illustrated. Using Tables

Microsoft Office Illustrated. Using Tables Microsoft Office 2007 - Illustrated Using Tables Objectives Plan a Table Create a Table Add Table Data Find and Replace Table Data Delete Table Data 2 Objectives Sort Table Data Use Formulas in a Table

More information

Range Objects and the ActiveCell

Range Objects and the ActiveCell Range Objects and the Active Review Objects have two important features that we can make use of Properties Methods Talk does not cook rice. Chinese Proverb 2 Review Review There is a very precise syntax

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Excel contains numerous tools that are intended to meet a wide range of requirements. Some of the more specialised tools are useful to people in certain situations while others have

More information

Microsoft Excel. for Finance Majors. Microsoft Excel for Finance Majors

Microsoft Excel. for Finance Majors. Microsoft Excel for Finance Majors Microsoft Excel for Finance Majors 2007 Version: 12/21/2017 Contents Introduction... 3 Working with Tables... 3 Exercise... 10 Pivot Tables... 12 Exercise:... 17 Conditional Formatting... 18 Exercise:...

More information

Revenue Metering Reports Importing and Reading the IESO EDI-867 Meter Data File

Revenue Metering Reports Importing and Reading the IESO EDI-867 Meter Data File Revenue Metering Reports Importing and Reading the IESO EDI-867 Meter Data File GDE-XX (DRAFT) Issue: 1.0 Issue Date: June 8, 2015 IESO Public Table of Contents 1. Importing an EDI-867 File into Excel...

More information

Validate and Protect Data

Validate and Protect Data Validate and Protect Data Chapter 8 Objectives In this section you will Restrict Data Entry to a Cell Test the Data Entered in a Cell for Validity Display Instructions for Data Entry Display Error Messages

More information

Excel 2010 Formulas Not Working In Dragging >>>CLICK HERE<<<

Excel 2010 Formulas Not Working In Dragging >>>CLICK HERE<<< Excel 2010 Formulas Not Working In 2003 Dragging This article does not explain how to enter data manually or enter data To quickly fill in several types of data series, you can select cells and drag the

More information

Excel Skills. Copyright 2013 Tykoh Group Pty Limited All rights reserved

Excel Skills. Copyright 2013 Tykoh Group Pty Limited All rights reserved Excel Skills INTRODUCTION... 7 EXERCISES... 7 LEVEL OF THESE NOTES... 7 STYLE OF THESE NOTES... 7 NOTATION... 7 RE-SKILLING FROM EARLIER VERSIONS OF EXCEL (E.G. 2003)... 7 Interactive menu guide... 7 Menu-to-ribbon

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

Microsoft Exam Microsoft Excel 2013 Expert Part 1 Version: 3.0 [ Total Questions: 62 ]

Microsoft Exam Microsoft Excel 2013 Expert Part 1 Version: 3.0 [ Total Questions: 62 ] s@lm@n Microsoft Exam 77-427 Microsoft Excel 2013 Expert Part 1 Version: 3.0 [ Total Questions: 62 ] Question No : 1 DRAG DROP You work as a Help Desk Technician for Net Perfect Inc. You use Excel 2013

More information

Lab 5 Excel Spreadsheet Introduction

Lab 5 Excel Spreadsheet Introduction Lab 5 Excel Spreadsheet Introduction Step 1 Start Excel Under Start, select All Programs the Microsoft Office then Excel. Select the File tab and save your file as lab5 on your network drive. Step 2 Spreadsheet

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

Excel 2016 Basics for Mac

Excel 2016 Basics for Mac Excel 2016 Basics for Mac Excel 2016 Basics for Mac Training Objective To learn the tools and features to get started using Excel 2016 more efficiently and effectively. What you can expect to learn from

More information

Lesson 18 Getting Started with Excel Essentials

Lesson 18 Getting Started with Excel Essentials Getting Started with Excel Essentials Computer Literacy BASICS: A Comprehensive Guide to IC 3, 4 th Edition 1 Objectives Identify the parts of the Excel screen. Navigate through a worksheet and a workbook.

More information

Module 3 - Applied UDFs - 1

Module 3 - Applied UDFs - 1 Module 3 - Applied UDFs TOPICS COVERED: This module will continue the discussion of the UDF JOIN covered in the previous video... 1) Testing a Variant for Its Type (0:05) 2) Force the Creation of an Array

More information

MICROSOFT EXCEL KEYBOARD SHORCUTS

MICROSOFT EXCEL KEYBOARD SHORCUTS MICROSOFT EXCEL KEYBOARD SHORCUTS F1 Displays the Office Assistant or (Help > Microsoft Excel Help) F2 Edits the active cell, putting the cursor at the end F3 Displays the (Insert > Name > Paste) dialog

More information

Skill Set 3. Formulas

Skill Set 3. Formulas Skill Set 3 Formulas By the end of this Skill Set you should be able to: Create Simple Formulas Understand Totals and Subtotals Use Brackets Select Cells with the Mouse to Create Formulas Calculate Percentages

More information

The Direct Excel Connection plugin PRINTED MANUAL

The Direct Excel Connection plugin PRINTED MANUAL The Direct Excel Connection plugin PRINTED MANUAL Direct Excel Connection plugin All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or mechanical,

More information

Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed

Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed The code that follows has been courtesy of this forum and the extensive help i received from everyone. But after an Runtime Error '1004'

More information

CSE 123 Introduction to Computing

CSE 123 Introduction to Computing CSE 123 Introduction to Computing Lecture 6 Programming with VBA (Projects, forms, modules, variables, flowcharts) SPRING 2012 Assist. Prof. A. Evren Tugtas Starting with the VBA Editor Developer/Code/Visual

More information

ENGG1811 Computing for Engineers Week 7 Iteration; Sequential Algorithms; Strings and Built-in Functions

ENGG1811 Computing for Engineers Week 7 Iteration; Sequential Algorithms; Strings and Built-in Functions ENGG1811 Computing for Engineers Week 7 Iteration; Sequential Algorithms; Strings and Built-in Functions ENGG1811 UNSW, CRICOS Provider No: 00098G1 W7 slide 1 References Chapra (Part 2 of ENGG1811 Text)

More information

Functions in Excel. Structure of a function: Basic Mathematical Functions. Arithmetic operators: Comparison Operators:

Functions in Excel. Structure of a function: Basic Mathematical Functions. Arithmetic operators: Comparison Operators: Page1 Functions in Excel Formulas (functions) are equations that perform calculations on values in your spreadsheet. A formula always starts with an equal sign (=). Example: =5+2*7 This formula multiples

More information

Introduction to. Excel XP Bob Booth December 2004 AP-Excel5. University of Sheffield

Introduction to. Excel XP Bob Booth December 2004 AP-Excel5. University of Sheffield Introduction to Excel XP December 2004 AP-Excel5 University of Sheffield Contents 1. INTRODUCTION... 3 2. OVERVIEW OF SPREADSHEETS... 3 3. GETTING STARTED...4 3.1 STARTING EXCEL... 4 3.2 SELECTING CELLS...

More information

Rio Hondo Prep Computer Applications Class

Rio Hondo Prep Computer Applications Class Open up document 10-1 (this is the one you worked on in the previous assignment). It should look like this: We have one column that is blank; the Avg Speed (this leg), column C. The formula for C2 is pretty

More information

Introduction. Understanding charts. Excel 2016

Introduction. Understanding charts. Excel 2016 Excel 2016 Charts Introduction It can be di icult to interpret Excel workbooks that contain a lot of data. Charts allow you to illustrate your workbook data graphically, which makes it easy to visualize

More information

VBA Handout. References, tutorials, books. Code basics. Conditional statements. Dim myvar As <Type >

VBA Handout. References, tutorials, books. Code basics. Conditional statements. Dim myvar As <Type > VBA Handout References, tutorials, books Excel and VBA tutorials Excel VBA Made Easy (Book) Excel 2013 Power Programming with VBA (online library reference) VBA for Modelers (Book on Amazon) Code basics

More information

Error Vba Code For Vlookup Function In Excel 2010

Error Vba Code For Vlookup Function In Excel 2010 Error Vba Code For Vlookup Function In Excel 2010 Users who use VLOOKUP or HLOOKUP function get N/A Error many times when In case, if there is a need to use these function in a Excel VBA Macro, then. Excel

More information

Create your first workbook

Create your first workbook Create your first workbook You've been asked to enter data in Excel, but you've never worked with Excel. Where do you begin? Or perhaps you have worked in Excel a time or two, but you still wonder how

More information

The Year argument can be one to four digits between 1 and Month is a number representing the month of the year between 1 and 12.

The Year argument can be one to four digits between 1 and Month is a number representing the month of the year between 1 and 12. The table below lists all of the Excel -style date and time functions provided by the WinCalcManager control, along with a description and example of each function. FUNCTION DESCRIPTION REMARKS EXAMPLE

More information

Jump Right In! Essential Computer Skills Using Microsoft 2013 By Andrews, Dark, and West

Jump Right In! Essential Computer Skills Using Microsoft 2013 By Andrews, Dark, and West Jump Right In! Essential Computer Skills Using Microsoft 2013 By Andrews, Dark, and West Chapter 10 Managing Numbers and Text Using Excel 1 Objectives Examine the Excel window and tools Enter and format

More information

3/31/2016. Spreadsheets. Spreadsheets. Spreadsheets and Data Management. Unit 3. Can be used to automatically

3/31/2016. Spreadsheets. Spreadsheets. Spreadsheets and Data Management. Unit 3. Can be used to automatically MICROSOFT EXCEL and Data Management Unit 3 Thursday March 31, 2016 Allow users to perform simple and complex sorting Allow users to perform calculations quickly Organizes and presents figures that can

More information

Microsoft Office Excel 2007: Basic Course 01 - Getting Started

Microsoft Office Excel 2007: Basic Course 01 - Getting Started Microsoft Office Excel 2007: Basic Course 01 - Getting Started Slide 1 Getting started Course objectives Identify spreadsheet components Identify the main components of Excel Use the Help feature Open

More information

Excel Tips and Tricks

Excel Tips and Tricks Excel Tips and Tricks References Excel Annoyances - Curtis Frye Excel Hacks - O Reilly http://www.exceltip.com (Joseph Rubin) http://exceltips.vitalnews.com/ (Allen Wyatt) Some Excel Basics as well as

More information

2. Key the titles in cells A1 to D1, adjust to size 12, click on the bold button, and format with an underline.

2. Key the titles in cells A1 to D1, adjust to size 12, click on the bold button, and format with an underline. Excel Assignment 3 1. Create a new worksheet on Sheet 3. 2. Key the titles in cells A1 to D1, adjust to size 12, click on the bold button, and format with an underline. 3. Under Class in column D key Algebra

More information

A B C D E F G H I J K L M 1 Student Test 1 Test 2 Test 3 Test 4 Total AVG. Joe Smith

A B C D E F G H I J K L M 1 Student Test 1 Test 2 Test 3 Test 4 Total AVG. Joe Smith 5.05 Instructions Part 1: Modifying the Worksheet 1. Click on the F in the shaded area at the top of the spreadsheet. This should cause the entire column to become highlighted. 2. Click on the Home tab

More information

Ms Excel Vba Continue Loop Through Range Of

Ms Excel Vba Continue Loop Through Range Of Ms Excel Vba Continue Loop Through Range Of Rows Learn how to make your VBA code dynamic by coding in a way that allows your 5 Different Ways to Find The Last Row or Last Column Using VBA In Microsoft

More information

Microsoft Excel Microsoft Excel

Microsoft Excel Microsoft Excel Excel 101 Microsoft Excel is a spreadsheet program that can be used to organize data, perform calculations, and create charts and graphs. Spreadsheets or graphs created with Microsoft Excel can be imported

More information

Manual Calculation Definition Excel 2010 Vba Set

Manual Calculation Definition Excel 2010 Vba Set Manual Calculation Definition Excel 2010 Vba Set The default is to calculate them automatically, unless certain criteria are met. written for users of the following Microsoft Excel versions: 2007, 2010,

More information

Excel 2010-Part. Two

Excel 2010-Part. Two Jefferson Parish Library Computer Training Team Excel 2010-Part Two August 2011 Symbols Used in Formulas Add Subtract Divide Multiply + - / * When working with formulas in Excel you will use basic keyboard

More information

Create a PivotTable. If you prefer to design the PivotTable yourself, you can create a manual PivotTable.

Create a PivotTable. If you prefer to design the PivotTable yourself, you can create a manual PivotTable. Create a PivotTable Excel provides two ways to create a PivotTable report. When you use an automatic PivotTable, Excel evaluates both the structure and kind of data in your range and creates the PivotTable

More information

Excel. Spreadsheet functions

Excel. Spreadsheet functions Excel Spreadsheet functions Objectives Week 1 By the end of this session you will be able to :- Move around workbooks and worksheets Insert and delete rows and columns Calculate with the Auto Sum function

More information

How to Generate Random Numbers in Excel (Ultimate Guide)

How to Generate Random Numbers in Excel (Ultimate Guide) Random numbers are those numbers which are generated by a process in which the outcome is not predictable and in a defined interval/set, the values are uniformly distributed. Random numbers are used in

More information

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples:

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples: VBA program units: Subroutines and Functions Subs: a chunk of VBA code that can be executed by running it from Excel, from the VBE, or by being called by another VBA subprogram can be created with the

More information

Watch the video below to learn more about the basics of working with cells. *Video removed from printing pages. Understanding cells

Watch the video below to learn more about the basics of working with cells. *Video removed from printing pages. Understanding cells Excel 06 Cell Basics Introduction Whenever you work with Excel, you'll enter information or content into cells. Cells are the basic building blocks of a worksheet. You'll need to learn the basics of cells

More information

References. Iteration For. Iteration (Repetition) Iteration While. For loop examples

References. Iteration For. Iteration (Repetition) Iteration While. For loop examples ENGG1811 UNSW, CRICOS Provider No: 00098G W6 slide 1 References ENGG1811 Computing for Engineers Week 6 Iteration; Sequential Algorithms; Strings and Built-in Functions Chapra (Part 2 of ENGG1811 Text)

More information

Spreadsheets: Mathematics

Spreadsheets: Mathematics Lesson 7 Spreadsheets: Mathematics Activity 1: Time Charts Format Data Enter a Formula Create a Series Change Column Width Activity 2: Measurements Apply Number Formats Activity 3: Calculating with a Spreadsheet

More information

Ms excel. The Microsoft Office Button. The Quick Access Toolbar

Ms excel. The Microsoft Office Button. The Quick Access Toolbar Ms excel MS Excel is electronic spreadsheet software. In This software we can do any type of Calculation & inserting any table, data and making chart and graphs etc. the File of excel is called workbook.

More information

BASIC MACROINSTRUCTIONS (MACROS)

BASIC MACROINSTRUCTIONS (MACROS) MS office offers a functionality of building complex actions and quasi-programs by means of a special scripting language called VBA (Visual Basic for Applications). In this lab, you will learn how to use

More information

EXCEL 2016 SERIES AT NORTH SEATTLE COLLEGE

EXCEL 2016 SERIES AT NORTH SEATTLE COLLEGE EXCEL 2016 SERIES AT NORTH SEATTLE COLLEGE Instructor: Instructor Email: Website: Class Days/Times: Course Duration Mikel Anne Aldrich Mikel.Aldrich@seattlecolleges.edu www.aldrichcorptech.com Saturdays,

More information

The For Next and For Each Loops Explained for VBA & Excel

The For Next and For Each Loops Explained for VBA & Excel The For Next and For Each Loops Explained for VBA & Excel excelcampus.com /vba/for-each-next-loop/ 16 Bottom line: The For Next Loops are some of the most powerful VBA macro coding techniques for automating

More information

Patricia Andrada Quick Guide Excel 2010 Data Management-July 2011 Page 1

Patricia Andrada Quick Guide Excel 2010 Data Management-July 2011 Page 1 Patricia Andrada Quick Guide Excel 2010 Data Management-July 2011 Page 1 Excel 2010 Data Management AutoFill and Custom Lists AutoFill 1. Select the range that contains the initial value(s) of the series

More information

Unit 9: Excel Page( )

Unit 9: Excel Page( ) Unit 9: Excel Page( 496-499) Lab: A. Font B. Fill color C. Font color D. View buttons E. Numeric entry F. Row G. Cell H. Column I. Workbook window J. Active sheet K. Status bar L. Range M. Column labels

More information

Visual Basic for Applications

Visual Basic for Applications Visual Basic for Applications Programming Damiano SOMENZI School of Economics and Management Advanced Computer Skills damiano.somenzi@unibz.it Week 1 Outline 1 Visual Basic for Applications Programming

More information

Basics of Spreadsheet

Basics of Spreadsheet 106 :: Data Entry Operations 6 Basics of Spreadsheet 6.1 INTRODUCTION A spreadsheet is a large sheet having data and information arranged in rows and columns. As you know, Excel is one of the most widely

More information

Excel 2016: Introduction to VBA

Excel 2016: Introduction to VBA Excel 2016: Introduction to VBA In the previous Excel courses, you used Excel to simplify business tasks, including the creation of spreadsheets, graphs, charts, and formulas that were difficult to create

More information

Structured Solutions Inc. Tools MS Project to Excel Export/Import Tools

Structured Solutions Inc. Tools MS Project to Excel Export/Import Tools Structured Solutions Inc. Tools MS Project to Excel Export/Import Tools This Macro Enabled Excel workbook contains a collection of useful tools that enables the user to Get, Post or Lookup data from MS

More information

Microsoft Office Excel 2007: Basic. Course Overview. Course Length: 1 Day. Course Overview

Microsoft Office Excel 2007: Basic. Course Overview. Course Length: 1 Day. Course Overview Microsoft Office Excel 2007: Basic Course Length: 1 Day Course Overview This course teaches the basic functions and features of Excel 2007. After an introduction to spreadsheet terminology and Excel's

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

Thermodata Viewer software

Thermodata Viewer software Thermodata Viewer software Thermodata Viewer consists of a set of tools to configure temperature temperature loggers an download, view and save the resulting data. It is designed for users in the commercial

More information

2. This is a cell; this cell is designated as A1.

2. This is a cell; this cell is designated as A1. Queen s Learning Commons: Microsoft Excel Basics 1. These are the columns. 2. This is a cell; this cell is designated as A1. 3. Let s make a table. Click on the box you want to put text in and simply begin

More information

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

Microsoft. Student Edition. The Richard Stockton College of New Jersey. Computer Courseware Microsoft Understanding Field Properties in Access 2002 Student Edition The Richard Stockton College of New Jersey Computer Courseware CustomGuide.com granted to Computer and Telecommunication Services

More information

Excel Conditional Formatting (Mac)

Excel Conditional Formatting (Mac) [Type here] Excel Conditional Formatting (Mac) Using colour to make data analysis easier Excel conditional formatting automatically formats cells in your worksheet if specified criteria are met, giving

More information

Never Give Up Page 1

Never Give Up Page 1 VISUAL BASIC FOR APPLICATIONS (VBA) & MACROS TRAINING: Microsoft Visual Basic for Applications (VBA, Macros) when used with Microsoft Excel can build powerful automated business tools quickly and with

More information