3 IN THIS CHAPTER. Referring to Ranges. The Range Object The following is the Excel object hierarchy:
|
|
|
- Dennis Miles
- 9 years ago
- Views:
Transcription
1 Referring to Ranges A range can be a cell, row, column, or a grouping of any of these. The RANGE object is probably the most frequently used object in Excel VBA after all, you re manipulating data on a sheet. Although a range can refer to any grouping of cells on a sheet, it can refer to only one sheet at a time; if you want to refer to ranges on multiple sheets, you have to refer to each sheet separately. This chapter shows you different ways of referring to ranges, such as specifying a row or column. You ll also learn how to manipulate cells based on the active cell and how to create a new range from overlapping ranges. The Range Object The following is the Excel object hierarchy: Application Workbook Worksheet Range The Range object is a property of the Worksheet object. This means it requires that either a sheet be active or it must reference a worksheet. Both of the following lines mean the same thing if Worksheets(1) is the active sheet: Range( A1 ) Worksheets(1).Range( A1 ) There are several ways to refer to a Range object. Range( A1 ) is the most identifiable because that is how the macro recorder does it. But each of the following is equivalent: Range( D5 ) [D5] Range( B ).Range( C ) Cells(5,4) Range( A1 ).Offset(4,) Range( MyRange ) assuming that D5 has a Name of MyRange Which format you use depends on your needs. Keep reading it will all make sense soon! IN THIS CHAPTER The Range Object Using the Upper-Left and Lower-Right Corners of a Selection to Specify a Range Named Ranges Shortcut for Referencing Ranges Referencing Ranges in Other Sheets Referencing a Range Relative to Another Range Using the Cells Property to Select a Range Using the Offset Property to Refer to a Range Using the Resize Property to Change the Size of a Range Using the Columns and Rows Properties to Specify a Range Using the Union Method to Join Multiple Ranges Using the Intersect Method to Create a New Range from Overlapping Ranges Using the ISEMPTY Function to Check Whether a Cell Is Empty Using the CurrentRegion Property to Quickly Select a Data Range Using the Areas Collection to Return a Noncontiguous Range Referencing Tables
2 62 Chapter Referring to Ranges Using the Upper-Left and Lower-Right Corners of a Selection to Specify a Range The Range property has two acceptable syntaxes. To specify a rectangular range in the first syntax, you specify the complete range reference just as you would in a formula in Excel: Range( A1:B5 ).Select In the alternative syntax, you specify the upper-left corner and lower-right corner of the desired rectangular range. In this syntax, the equivalent statement might be this: Range( A1, B5 ).Select For either corner, you can substitute a named range, the Cells property, or the ActiveCell property. This line of code selects the rectangular range from A1 to the active cell: Range( A1, ActiveCell).Select The following statement selects from the active cell to five rows below the active cell and two columns to the right: Range(ActiveCell, ActiveCell.Offset(5, 2)).Select Named Ranges You ve probably already used named ranges on your sheets and in formulas. You can also use them in VBA. To refer to the range MyRange in Sheet1, do this: Worksheets( Sheet1 ).Range( MyRange ) Notice that the name of the range is in quotes unlike the use of named ranges in formulas on the sheet itself. If you forget to put the name in quotes, Excel thinks you are referring to a variable in the program, unless you are using the shortcut syntax discussed in the previous section, in which case, quotes are not used. Shortcut for Referencing Ranges A shortcut is available when referencing ranges. It uses square brackets, as shown in Table.1. Table.1 Shortcuts for Referring to Ranges Standard Method Shortcut Range( D5 ) [D5] Range( A1:D5 ) Range ( A1:D5, G6:I17 ) Range( MyRange ) [A1:D5] [A1:D5, G6:I17] [MyRange]
3 Referencing a Range Relative to Another Range 6 Referencing Ranges in Other Sheets Switching between sheets by activating the needed sheet can drastically slow down your code. To avoid this slowdown, you can refer to a sheet that is not active by referencing the Worksheet object first: Worksheets( Sheet1 ).Range( A1 ) This line of code references Sheet1 of the active workbook even if Sheet2 is the active sheet. If you need to reference a range in another workbook, include the Workbook object, the Worksheet object, and then the Range object: Workbooks( InvoiceData.xls ).Worksheets( Sheet1 ).Range( A1 ) Be careful if you use the Range property as an argument within another Range property. You must identify the range fully each time. Suppose, for example, that Sheet1 is your active sheet and you need to total data from Sheet2: WorksheetFunction.Sum(Worksheets( Sheet2 ).Range(Range( A1 ), Range( A7 ))) This line does not work. Why? Because Range(Range( A1 ), Range( A7 )) refers to an extra range at the beginning of the code line. Excel does not assume that you want to carry the Worksheet object reference over to the other Range objects. So, what do you do? Well, you could write this: WorksheetFunction.Sum(Worksheets( Sheet2 ).Range(Worksheets( Sheet2 ). _ Range( A1 ), Worksheets( Sheet2 ).Range( A7 ))) But this is not only a long line of code, it is difficult to read! Thankfully, there is a simpler way, With...End With: With Worksheets( Sheet2 ) WorksheetFunction.Sum(.Range(.Range( A1 ),.Range( A7 ))) End With Notice now that there is a.range in your code, but without the preceding object reference. That s because With Worksheets( Sheet2 ) implies that the object of the range is the worksheet. Referencing a Range Relative to Another Range Typically, the RANGE object is a property of a worksheet. It is also possible to have RANGE be the property of another range. In this case, the Range property is relative to the original range! This makes for code that is very unintuitive. Consider this example: Range( B5 ).Range( C ).Select This actually selects cell D7. Think about cell C. It is located two rows below and two columns to the right of cell A1. The preceding line of code starts at cell B5. If we assume that B5 is in the A1 position, VBA finds the cell that would be in the C position relative to
4 64 Chapter Referring to Ranges B5. In other words, VBA finds the cell that is two rows below and two columns to the right of B5, and this is D7. Again, I consider this coding style to be very unintuitive. This line of code mentions two addresses, and the actual cell being selected is neither of these addresses! It seems misleading when you are trying to read this code. You might consider using this syntax to refer to a cell relative to the active cell. For example, this line activates the cell three rows down and four columns to the right of the currently active cell: Selection.Range( E4 ).Select This syntax is mentioned only because the macro recorder uses it. Remember that back in Chapter 1, Unleash the Power of Excel with VBA! when we were recording a macro with Relative References on, the following line was recorded: ActiveCell.Offset(0, 4).Range( A2 ).Select It found the cell four columns to the right of the active cell, and from there selected the cell that would correspond to A2. This is not the easiest way to write code, but that s the macro recorder. Although a worksheet is usually the object of the Range property, on occasion, such as during recording, a range may be the property of a range. Using the Cells Property to Select a Range The Cells property refers to all the cells of the specified range object, which can be a worksheet or a range of cells. For example, this line selects all the cells of the active sheet: Cells.Select Using the Cells property with the Range object might seem redundant: Range( A1:D5 ).Cells The line refers to the original Range object. However, the Cells property has a property, Item, which makes the Cells property very useful. The Item property enables you to refer to a specific cell relative to the Range object. The syntax for using the Item property with the Cells property is as follows: Cells.Item(Row,Column) You must use a numeric value for Row, but you may use the numeric value or string value for Column. Both the following lines refer to cell C5: Cells.Item(5, C ) Cells.Item(5,) Because the Item property is the default property of the RANGE object, you can shorten these lines:
5 Using the Offset Property to Refer to a Range 65 Cells(5, C ) Cells(5,) The ability to use numeric values for parameters proves especially useful if you need to loop through rows or columns. The macro recorder usually uses something like Range( A1 ). Select for a single cell and Range( A1:C5 ).Select for a range of cells. If you are learning to code simply from the recorder, you might be tempted to write code like this: FinalRow = Cells(Rows.Count, 1).End(xlUp).Row For i = 1 to FinalRow Range( A & i & :E & i).font.bold = True Next i This little piece of code, which loops through rows and bolds the cells in Columns A through E, is awkward to read and write. But, how else can you do it? FinalRow = Cells(Rows.Count, 1).End(xlUp).Row For i = 1 to FinalRow Cells(i, A ).Resize(,5).Font.Bold = True Next i Instead of trying to type out the range address, the new code uses the Cells and Resize properties to find the required cell, based on the active cell. Using the Cells Property in the Range Property You can use Cells properties as parameters in the Range property. The following refers to the range A1:E5: Range(Cells(1,1),Cells(5,5)) This proves especially useful when you need to specify your variables with a parameter, as in the previous looping example. Using the Offset Property to Refer to a Range You ve already seen a reference to Offset; the macro recorder used it when we were recording a relative reference. It enables you to manipulate a cell based off the location of the active cell. In this way, you don t have to know the address of a cell. The syntax for the Offset property is this: Range.Offset(RowOffset, ColumnOffset) To affect cell F5 from cell A1, write this: Range( A1 ).Offset(RowOffset:=4, ColumnOffset:=5) Or, shorter yet, write this: Range( A1 ).Offset(4,5) The count starts at A1 but does not include A1.
6 66 Chapter Referring to Ranges But what if you need to go over only a row or a column, but not both? You don t have to enter both the row and column parameter. If you need to refer to a cell one column over, use one of these: Range( A1 ).Offset(ColumnOffset:=1) Range( A1 ).Offset(,1) Both lines mean the same. The choice is yours. Referring to a cell one row up is similar: Range( B2 ).Offset(RowOffset:=-1) Range( B2 ).Offset(-1) Once again, the choice is yours. It is a matter of readability of the code. Let s suppose you have a list of produce with totals next to them, and you want to find any total equal to zero and place LOW in the cell next to it. You could do it this way: Set Rng = Range( B1:B16 ).Find(What:= 0, LookAt:=xlWhole, LookIn:=xlValues) Rng.Offset(, 1).Value = LOW Sub MyOffset() With Range( B1:B16 ) Set Rng =.Find(What:= 0, LookAt:=xlWhole, LookIn:=xlValues) If Not Rng Is Nothing Then firstaddress = Rng.Address Do Rng.Offset(, 1).Value = LOW Set Rng =.FindNext(Rng) Loop While Not Rng Is Nothing And Rng.Address <> firstaddress End If End With End Sub The LOW totals are quickly noted by the program, as shown in Figure.1. Offsetting isn t only for single cells it can be used with ranges. You can shift the focus of a range over in the same way you can shift the active cell. The following line refers to B2:D4 (see Figure.2): Range( A1:C ).Offset(1,1) Figure.1 Find the produce with the 0 total. Figure.2 Offsetting a range Range( A1:C ). Offset(1,1). Select.
7 Using the Resize Property to Change the Size of a Range 67 Using the Resize Property to Change the Size of a Range The Resize property enables you to change the size of a range based on the location of the active cell. You can create a new range as you need it. The syntax for the Resize property is this: Range.Resize(RowSize, ColumnSize) To create a range B:D1, use this: Range( B ).Resize(RowSize:=11, ColumnSize:=) Or, simpler, use this: Range( B ).Resize(11, ) But what if you need to resize by only a row or a column, not both? You don t have to enter both the row and column parameters. If you need to expand by two columns, use one of these: Range( B ).Resize(ColumnSize:=2) or Range( B ).ReSize(,2) Both lines mean the same. The choice is yours. Resizing just the rows is similar: Range( B ).Resize(RowSize:=2) or Range( B ).Resize(2) Once again, the choice is yours. It is a matter of readability of the code. From the list of produce, find the zero total and color the cells of the total and corresponding produce (see Figure.): Set Rng = Range( B1:B16 ).Find(What:= 0, LookAt:=xlWhole, LookIn:=xlValues) Rng.Offset(, -1).Resize(, 2).Interior.ColorIndex = 15 Notice that the Offset property was used first to move the active cell over; when you are resizing, the upper-left corner cell must remain the same. Resizing isn t only for single cells it can be used to resize an existing range. For example, if you have a named range but need it and the two columns next to it, use this: Range( Produce ).Resize(,2) Remember, the number you resize by is the total number of rows/columns you want to include.
8 68 Chapter Referring to Ranges Figure. Resizing a range to extend the selection. Using the Columns and Rows Properties to Specify a Range Columns and Rows refer to the columns and rows of a specified Range object, which can be a worksheet or a range of cells. They return a Range object referencing the rows or columns of the specified object. You ve seen the following line used, but what is it doing? FinalRow = Cells(Rows.Count, 1).End(xlUp).Row This line of code finds the last row in a sheet in which Column A has a value and places the row number of that Range object into FinalRow. This can be very useful when you need to loop through a sheet row by row you ll know exactly how many rows you need to go through. CAUTION Some properties of columns and rows require contiguous rows and columns to work properly. For example, if you were to use the following line of code, 9 would be the answer because only the first range would be evaluated: Range( A1:B9, C10:D19 ).Rows.Count But if the ranges are grouped separately, Range( A1:B9, C10:D19 ).Rows.Count the answer would be 19. Using the Union Method to Join Multiple Ranges The Union method enables you to join two or more noncontiguous ranges. It creates a temporary object of the multiple ranges, allowing you to affect them together: Application.Union(argument1, argument2, etc.) The following code joins two named ranges on the sheet, inserts the =RAND() formula, and bolds them: Set UnionRange = Union(Range( Range1 ), Range( Range2 )) With UnionRange.Formula = =RAND().Font.Bold = True End With
9 Using the ISEMPTY Function to Check Whether a Cell Is Empty 69 Using the Intersect Method to Create a New Range from Overlapping Ranges The Intersect method returns the cells that overlap between two or more ranges: Application.Intersect(argument1, argument2, etc.) The following code colors the overlapping cells of the two ranges. Set IntersectRange = Intersect(Range( Range1 ), Range( Range2 )) IntersectRange.Interior.ColorIndex = 6 Using the ISEMPTY Function to Check Whether a Cell Is Empty The ISEMPTY function returns a Boolean value of whether a single cell is empty or not; True if empty, False if not. The cell must truly be empty. Even if it has a space in it, which you cannot see, Excel does not consider it empty: IsEmpty(Cell) Look at Figure.4. You have several groups of data separated by a blank row. You want to make the separations a little more obvious. Figure.4 Blank empty rows separating data. The following code goes down the data in Column A; where it finds an empty cell, it colors in the first four cells for that row (see Figure.5): LastRow = Cells(Rows.Count, 1).End(xlUp).Row For i = 1 To LastRow If IsEmpty(Cells(i, 1)) Then Cells(i, 1).Resize(1, 4).Interior.ColorIndex = 1 End If Next i
10 70 Chapter Referring to Ranges Figure.5 Colored rows separating data. Using the CurrentRegion Property to Quickly Select a Data Range CurrentRegion returns a Range object representing a set of contiguous data. As long as the data is surrounded by one empty row and one empty column, you can select the table with CurrentRegion: RangeObject.CurrentRegion Look at Figure.6. The following line selects A1:D because this is the contiguous range of cells around cell A1: Range( A1 ).CurrentRegion.Select This is useful if you have a table whose size is in constant flux. Figure.6 Use CurrentRegion to quickly select a range of contiguous data around the active cell. CASE STUDY Using the SpecialCells Method to Select Specific Cells Even Excel power users may never have encountered the Go To Special dialog box. If you press the F5 key in an Excel worksheet, you get the normal Go To dialog box (see Figure.7). In the lower-left corner of this dialog is a button labeled Special. Click that button to get to the super-powerful Go To Special dialog (see Figure.8). In the Excel interface, the Go To Special dialog enables you to select only cells with formulas, or only blank cells, or only the visible cells. Selecting visible cells only is excellent for grabbing the visible results of AutoFiltered data. To simulate the Go To Special dialog in VBA, use the SpecialCells method. This enables you to act on cells that meet a certain criteria: RangeObject.SpecialCells(Type, Value)
11 Using the CurrentRegion Property to Quickly Select a Data Range 71 Figure.7 Although the Go To dialog doesn t seem very useful, click the Special button in the lower-left corner. Figure.8 The Go To Special dialog has many incredibly useful selection tools. This method has two parameters: Type and Value. Type is one of the xlcelltype constants: xlcelltypeallformatconditions xlcelltypeallvalidation xlcelltypeblanks xlcelltypecomments xlcelltypeconstants xlcelltypeformulas xlcelltypelastcell xlcelltypesameformatconditions xlcelltypesamevalidation xlcelltypevisible Value is optional and can be one of the following: xlerrors xllogical xlnumbers xltextvalues The following code returns all the ranges that have conditional formatting set up. It produces an error if there are no conditional formats. It puts a border around each contiguous section it finds:
12 72 Chapter Referring to Ranges Set rngcond = ActiveSheet.Cells.SpecialCells(xlCellTypeAllFormatConditions) If Not rngcond Is Nothing Then rngcond.borderaround xlcontinuous End If Have you ever had someone send you a worksheet without all the labels filled in? Some people consider that the data shown in Figure.9 looks neat. They enter the Region field only once for each region. This might look aesthetically pleasing, but it is impossible to sort. Even Excel s pivot table routinely returns data in this annoying format. Figure.9 The blank cells in the region column make data tables such as this very difficult to sort. Using the SpecialCells method to select all the blanks in this range is one way to quickly fill in all the blank region cells with the region found above them: Sub FillIn() On Error Resume Next Need this because if there aren t any blank cells, the code will error Range( A1 ).CurrentRegion.SpecialCells(xlCellTypeBlanks).FormulaR1C1 _ = =R[-1]C Range( A1 ).CurrentRegion.Value = Range( A1 ).CurrentRegion.Value End Sub In this code, Range( A1 ).CurrentRegion refers to the contiguous range of data in the report. The SpecialCells method returns just the blank cells in that range. Although you can read more about R1C1 style formulas in Chapter 6, R1C1-Style Formulas, this particular formula fills in all the blank cells with a formula that points to the cell above the blank cell. The second line of code is a fast way to simulate doing a Copy and then Paste Special Values. Figure.10 shows the results. Figure.10 After the macro runs, the blank cells in the Region column have been filled in with data.
13 Referencing Tables 7 Using the Areas Collection to Return a Noncontiguous Range The Areas collection is a collection on noncontiguous ranges within a selection. It consists of individual Range objects representing contiguous ranges of cells within the selection. If the selection contains only one area, the Areas collection contains a single Range object corresponding to that selection. You might be tempted to loop through the sheet, copy a row, and paste it to another section. But there s an easier way (see Figure.11): Range( A:D ).SpecialCells(xlCellTypeConstants, 1).Copy Range( I1 ) Figure.11 The Areas collection makes it easy to manipulate noncontiguous ranges. Referencing Tables With Excel 2007, we re introduced to a new way of interacting with ranges of data: tables. These special ranges offer the convenience of referencing named ranges, but are not created in the same manner. For more information on how to create a named table, see Chapter 8, Create and Manipulate Names in VBA. The table itself is referenced using the standard method of referring to a ranged name. To refer to the data in table Table1 in Sheet1, do this: Worksheets(1).Range( Table1 ) This references just the data part of the table; it does not include the header or total row. To include the header and total row, do this: Worksheets(1).Range( Table1[#All] ) What I really like about this new feature is the ease of referencing specific columns of a table. You don t have to know how many columns in from a starting position or the letter/number of the column, and you don t have to use a FIND function. You can just use the header name of the column. To reference the Qty column of the table, for example, do this: Worksheets(1).Range( Table1[Qty] )
14 74 Chapter Referring to Ranges Next Steps Now that you re getting an idea of how Excel works, it s time to apply it to useful situations. The next chapter looks at user-defined functions, uses the skills you ve learned so far, and introduces other programming methods that you will learn more about throughout this book.
Microsoft Excel 2010 Part 3: Advanced Excel
CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Excel 2010 Part 3: Advanced Excel Winter 2015, Version 1.0 Table of Contents Introduction...2 Sorting Data...2 Sorting
Advanced Excel Charts : Tables : Pivots : Macros
Advanced Excel Charts : Tables : Pivots : Macros Charts In Excel, charts are a great way to visualize your data. However, it is always good to remember some charts are not meant to display particular types
Migrating to Excel 2010 from Excel 2003 - Excel - Microsoft Office 1 of 1
Migrating to Excel 2010 - Excel - Microsoft Office 1 of 1 In This Guide Microsoft Excel 2010 looks very different, so we created this guide to help you minimize the learning curve. Read on to learn key
Getting Started with Excel 2008. Table of Contents
Table of Contents Elements of An Excel Document... 2 Resizing and Hiding Columns and Rows... 3 Using Panes to Create Spreadsheet Headers... 3 Using the AutoFill Command... 4 Using AutoFill for Sequences...
The Center for Teaching, Learning, & Technology
The Center for Teaching, Learning, & Technology Instructional Technology Workshops Microsoft Excel 2010 Formulas and Charts Albert Robinson / Delwar Sayeed Faculty and Staff Development Programs Colston
To launch the Microsoft Excel program, locate the Microsoft Excel icon, and double click.
EDIT202 Spreadsheet Lab Assignment Guidelines Getting Started 1. For this lab you will modify a sample spreadsheet file named Starter- Spreadsheet.xls which is available for download from the Spreadsheet
Microsoft Excel 2013 Step-by-Step Exercises: PivotTables and PivotCharts: Exercise 1
Microsoft Excel 2013 Step-by-Step Exercises: PivotTables and PivotCharts: Exercise 1 In this exercise you will learn how to: Create a new PivotTable Add fields to a PivotTable Format and rename PivotTable
Excel Reporting with 1010data
Excel Reporting with 1010data (212) 405.1010 [email protected] Follow: @1010data www.1010data.com Excel Reporting with 1010data Contents 2 Contents Overview... 3 Start with a 1010data query... 5 Running
Macros in Word & Excel
Macros in Word & Excel Description: If you perform a task repeatedly in Word or Excel, you can automate the task by using a macro. A macro is a series of steps that is grouped together as a single step
Excel: Introduction to Formulas
Excel: Introduction to Formulas Table of Contents Formulas Arithmetic & Comparison Operators... 2 Text Concatenation... 2 Operator Precedence... 2 UPPER, LOWER, PROPER and TRIM... 3 & (Ampersand)... 4
Creating Basic Excel Formulas
Creating Basic Excel Formulas Formulas are equations that perform calculations on values in your worksheet. Depending on how you build a formula in Excel will determine if the answer to your formula automatically
Excel Intermediate Session 2: Charts and Tables
Excel Intermediate Session 2: Charts and Tables Agenda 1. Introduction (10 minutes) 2. Tables and Ranges (5 minutes) 3. The Report Part 1: Creating and Manipulating Tables (45 min) 4. Charts and other
A Beginning Guide to the Excel 2007 Pivot Table
A Beginning Guide to the Excel 2007 Pivot Table Paula Ecklund Summer 2008 Page 1 Contents I. What is a Pivot Table?...1 II. Basic Excel 2007 Pivot Table Creation Source data requirements...2 Pivot Table
ECDL. European Computer Driving Licence. Spreadsheet Software BCS ITQ Level 2. Syllabus Version 5.0
European Computer Driving Licence Spreadsheet Software BCS ITQ Level 2 Using Microsoft Excel 2010 Syllabus Version 5.0 This training, which has been approved by BCS, The Chartered Institute for IT, includes
Monte Carlo Simulation. SMG ITS Advanced Excel Workshop
Advanced Excel Workshop Monte Carlo Simulation Page 1 Contents Monte Carlo Simulation Tutorial... 2 Example 1: New Marketing Campaign... 2 VLOOKUP... 5 Example 2: Revenue Forecast... 6 Pivot Table... 8
Excel Formatting: Best Practices in Financial Models
Excel Formatting: Best Practices in Financial Models Properly formatting your Excel models is important because it makes it easier for others to read and understand your analysis and for you to read and
Construction Administrators Work Smart with Excel Programming and Functions. OTEC 2014 Session 78 Robert Henry
Construction Administrators Work Smart with Excel Programming and Functions OTEC 2014 Session 78 Robert Henry Cell References C O P Y Clicking into the Formula Bar or the Active Cell will cause color coded
Microsoft Excel 2007 Mini Skills Overview of Tables
To make managing and analyzing a group of related data easier, you can turn a range of cells into a Microsoft Office Excel table (previously known as an Excel list). A table typically contains related
How to Make the Most of Excel Spreadsheets
How to Make the Most of Excel Spreadsheets Analyzing data is often easier when it s in an Excel spreadsheet rather than a PDF for example, you can filter to view just a particular grade, sort to view which
Intermediate. Microsoft Excel 2007- Tables and Printing
John W. Jacobs Technology Center 450 Exton Square Parkway Exton, PA 19341 610.280.2666 [email protected] www.ccls.org Facebook.com/ChesterCountyLibrary Intermediate Microsoft Excel 2007- Tables and Printing
Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.
Working with Tables in Microsoft Word The purpose of this document is to lead you through the steps of creating, editing and deleting tables and parts of tables. This document follows a tutorial format
Advanced Excel 10/20/2011 1
Advanced Excel Data Validation Excel has a feature called Data Validation, which will allow you to control what kind of information is typed into cells. 1. Select the cell(s) you wish to control. 2. Click
Excel macros made easy
IT Training Excel macros made easy Jane Barrett, IT Training & Engagement Team Information System Services Version 1.1 Scope Learning outcomes Understand the concept of what a macro is and what it does.
Microsoft Migrating to Word 2010 from Word 2003
In This Guide Microsoft Word 2010 looks very different, so we created this guide to help you minimize the learning curve. Read on to learn key parts of the new interface, discover free Word 2010 training,
Basic Microsoft Excel 2007
Basic Microsoft Excel 2007 The biggest difference between Excel 2007 and its predecessors is the new layout. All of the old functions are still there (with some new additions), but they are now located
Microsoft Excel 2010. Understanding the Basics
Microsoft Excel 2010 Understanding the Basics Table of Contents Opening Excel 2010 2 Components of Excel 2 The Ribbon 3 o Contextual Tabs 3 o Dialog Box Launcher 4 o Quick Access Toolbar 4 Key Tips 5 The
Excel Pivot Tables. Blue Pecan Computer Training Ltd - Onsite Training Provider www.bluepecantraining.com :: 0800 6124105 :: [email protected].
Excel Pivot Tables 1 Table of Contents Pivot Tables... 3 Preparing Data for a Pivot Table... 3 Creating a Dynamic Range for a Pivot Table... 3 Creating a Pivot Table... 4 Removing a Field... 5 Change the
Calculating Cash Flow Using Excel Data Lists
Calculating Cash Flow Using Excel Data Lists By: Curtis D. Frye 7/26/2006 Bank and credit card statements tell you where your money has gone, but they don t show you how much money you ll have on hand
Excel 2007: Basics Learning Guide
Excel 2007: Basics Learning Guide Exploring Excel At first glance, the new Excel 2007 interface may seem a bit unsettling, with fat bands called Ribbons replacing cascading text menus and task bars. This
Chapter 9 Creating Reports in Excel
Chapter 9 Creating Reports in Excel One of the most powerful features of Standard & Poor s Research Insight is its ability to communicate with Microsoft Excel through Active-X Technology. Excel requests
Plots, Curve-Fitting, and Data Modeling in Microsoft Excel
Plots, Curve-Fitting, and Data Modeling in Microsoft Excel This handout offers some tips on making nice plots of data collected in your lab experiments, as well as instruction on how to use the built-in
Formatting Formatting Tables
Intermediate Excel 2013 One major organizational change introduced in Excel 2007, was the ribbon. Each ribbon revealed many more options depending on the tab selected. The Help button is the question mark
INTERMEDIATE Excel 2013
INTERMEDIATE Excel 2013 Information Technology September 1, 2014 1 P a g e Managing Workbooks Excel uses the term workbook for a file. The term worksheet refers to an individual spreadsheet within a workbook.
Excel 2003 Tutorial I
This tutorial was adapted from a tutorial by see its complete version at http://www.fgcu.edu/support/office2000/excel/index.html Excel 2003 Tutorial I Spreadsheet Basics Screen Layout Title bar Menu bar
What is Microsoft Excel?
What is Microsoft Excel? Microsoft Excel is a member of the spreadsheet family of software. Spreadsheets allow you to keep track of data, create charts based from data, and perform complex calculations.
Q&As: Microsoft Excel 2013: Chapter 2
Q&As: Microsoft Excel 2013: Chapter 2 In Step 5, why did the date that was entered change from 4/5/10 to 4/5/2010? When Excel recognizes that you entered a date in mm/dd/yy format, it automatically formats
Microsoft Office 2010: Access 2010, Excel 2010, Lync 2010 learning assets
Microsoft Office 2010: Access 2010, Excel 2010, Lync 2010 learning assets Simply type the id# in the search mechanism of ACS Skills Online to access the learning assets outlined below. Titles Microsoft
USC Marshall School of Business Marshall Information Services
USC Marshall School of Business Marshall Information Services Excel Dashboards and Reports The goal of this workshop is to create a dynamic "dashboard" or "Report". A partial image of what we will be creating
Notes on Excel Forecasting Tools. Data Table, Scenario Manager, Goal Seek, & Solver
Notes on Excel Forecasting Tools Data Table, Scenario Manager, Goal Seek, & Solver 2001-2002 1 Contents Overview...1 Data Table Scenario Manager Goal Seek Solver Examples Data Table...2 Scenario Manager...8
Introduction to Microsoft Excel 2007/2010
to Microsoft Excel 2007/2010 Abstract: Microsoft Excel is one of the most powerful and widely used spreadsheet applications available today. Excel's functionality and popularity have made it an essential
Formulas & Functions in Microsoft Excel
Formulas & Functions in Microsoft Excel Theresa A Scott, MS Biostatistician II Department of Biostatistics Vanderbilt University [email protected] Table of Contents 1 Introduction 1 1.1 Using
Creating and Using Forms in SharePoint
Creating and Using Forms in SharePoint Getting started with custom lists... 1 Creating a custom list... 1 Creating a user-friendly list name... 1 Other options for creating custom lists... 2 Building a
Basic Excel Handbook
2 5 2 7 1 1 0 4 3 9 8 1 Basic Excel Handbook Version 3.6 May 6, 2008 Contents Contents... 1 Part I: Background Information...3 About This Handbook... 4 Excel Terminology... 5 Excel Terminology (cont.)...
Excel Functions (fx) Click the Paste Function button. In the Function Category select All. Scroll down the Function Name list And select SUM.
Excel Functions (fx) Excel has prewritten formulas called functions to help simplify making complicated calculations. A function takes a value or values, performs an operation, and returns a result to
Differences in Use between Calc and Excel
Differences in Use between Calc and Excel Title: Differences in Use between Calc and Excel: Version: 1.0 First edition: October 2004 Contents Overview... 3 Copyright and trademark information... 3 Feedback...3
Using VLOOKUP to Combine Data in Microsoft Excel
Using VLOOKUP to Combine Data in Microsoft Excel Microsoft Excel includes a very powerful function that helps users combine data from multiple sources into one table in a spreadsheet. For example, if you
Advanced Microsoft Excel 2010
Advanced Microsoft Excel 2010 Table of Contents THE PASTE SPECIAL FUNCTION... 2 Paste Special Options... 2 Using the Paste Special Function... 3 ORGANIZING DATA... 4 Multiple-Level Sorting... 4 Subtotaling
INTRODUCTION TO EXCEL
INTRODUCTION TO EXCEL 1 INTRODUCTION Anyone who has used a computer for more than just playing games will be aware of spreadsheets A spreadsheet is a versatile computer program (package) that enables you
Task Force on Technology / EXCEL
Task Force on Technology EXCEL Basic terminology Spreadsheet A spreadsheet is an electronic document that stores various types of data. There are vertical columns and horizontal rows. A cell is where the
warpct.com Working with MS Excel 2003 Workbook courseware by WARP! Computer Training
warpct.com courseware by WARP! Computer Training Working with MS Excel 2003 Workbook Welcome! Thank you for evaluating a portion of this workbook. If you have any questions or comments regarding our training
Excel 2010: Create your first spreadsheet
Excel 2010: Create your first spreadsheet Goals: After completing this course you will be able to: Create a new spreadsheet. Add, subtract, multiply, and divide in a spreadsheet. Enter and format column
Search help. More on Office.com: images templates. Here are some basic tasks that you can do in Microsoft Excel 2010.
Page 1 of 8 Excel 2010 Home > Excel 2010 Help and How-to > Getting started with Excel Search help More on Office.com: images templates Basic tasks in Excel 2010 Here are some basic tasks that you can do
Introduction to MS EXCEL 2007 Data entry & formatting Using formulas & functions Presenting data with charts Database features in Excel
Introduction to MS EXCEL 2007 Data entry & formatting Using formulas & functions Presenting data with charts Database features in Excel Introduction to MS Excel 2007 2 Table of Contents Getting started
Excel 2007 A Beginners Guide
Excel 2007 A Beginners Guide Beginner Introduction The aim of this document is to introduce some basic techniques for using Excel to enter data, perform calculations and produce simple charts based on
ACADEMIC TECHNOLOGY SUPPORT
ACADEMIC TECHNOLOGY SUPPORT Microsoft Excel: Tables & Pivot Tables [email protected] 439-8611 www.etsu.edu/ats Table of Contents: Overview... 1 Objectives... 1 1. What is an Excel Table?... 2 2. Creating Pivot
Writing Macros in Microsoft Excel 2003
Writing Macros in Microsoft Excel 2003 Introduction A macro is a series of instructions which can be issued using a single command. The macro can be invoked in various different ways - from the keyboard
Introduction to Data Tables. Data Table Exercises
Tools for Excel Modeling Introduction to Data Tables and Data Table Exercises EXCEL REVIEW 2000-2001 Data Tables are among the most useful of Excel s tools for analyzing data in spreadsheet models. Some
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 [email protected] DATA 301: Data Analytics (2) Why Microsoft Excel Visual Basic
Microsoft PowerPoint Exercises 4
Microsoft PowerPoint Exercises 4 In these exercises, you will be working with your Music Presentation file used in part 1 and 2. Open that file if you haven t already done so. Exercise 1. Slide Sorter
Introduction to Pivot Tables in Excel 2007
The Company Rocks Introduction to Pivot Tables in Excel 2007 Step-by-step instructions to accompany video lessons Danny Rocks 4/11/2011 Introduction to Pivot Tables in Excel 2007 Pivot Tables are the most
Using Microsoft Project 2000
Using MS Project Personal Computer Fundamentals 1 of 45 Using Microsoft Project 2000 General Conventions All text highlighted in bold refers to menu selections. Examples would be File and Analysis. ALL
Printing with Calc Title: Printing with Calc Version: 1.0 First edition: December 2004 First English edition: December 2004
Printing with Calc Title: Printing with Calc Version: 1.0 First edition: December 2004 First English edition: December 2004 Contents Overview...ii Copyright and trademark information...ii Feedback...ii
Tommy B. Harrington 104 Azalea Drive Greenville, NC 27858 Email: [email protected]
M o s t U s e f u l E x c e l C o m m a n d s Tommy B. Harrington 104 Azalea Drive Greenville, NC 27858 Email: [email protected] Computer Training YOU Can Understand! Most Useful Excel Commands
EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002
EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002 Table of Contents Part I Creating a Pivot Table Excel Database......3 What is a Pivot Table...... 3 Creating Pivot Tables
Microsoft Migrating to PowerPoint 2010 from PowerPoint 2003
In This Guide Microsoft PowerPoint 2010 looks very different, so we created this guide to help you minimize the learning curve. Read on to learn key parts of the new interface, discover free PowerPoint
Microsoft Excel Tips & Tricks
Microsoft Excel Tips & Tricks Collaborative Programs Research & Evaluation TABLE OF CONTENTS Introduction page 2 Useful Functions page 2 Getting Started with Formulas page 2 Nested Formulas page 3 Copying
MS Excel. Handout: Level 2. elearning Department. Copyright 2016 CMS e-learning Department. All Rights Reserved. Page 1 of 11
MS Excel Handout: Level 2 elearning Department 2016 Page 1 of 11 Contents Excel Environment:... 3 To create a new blank workbook:...3 To insert text:...4 Cell addresses:...4 To save the workbook:... 5
Formulas, Functions and Charts
Formulas, Functions and Charts :: 167 8 Formulas, Functions and Charts 8.1 INTRODUCTION In this leson you can enter formula and functions and perform mathematical calcualtions. You will also be able to
Formulas & Functions in Microsoft Excel
Formulas & Functions in Microsoft Excel Theresa A Scott, MS Biostatistician III Department of Biostatistics Vanderbilt University [email protected] Table of Contents 1 Introduction 1 1.1 Using
Computer Training Centre University College Cork. Excel 2013 Level 1
Computer Training Centre University College Cork Excel 2013 Level 1 Table of Contents Introduction... 1 Opening Excel... 1 Using Windows 7... 1 Using Windows 8... 1 Getting Started with Excel 2013... 2
Introduction. Syntax Statements. Colon : Line Continuation _ Conditions. If Then Else End If 1. block form syntax 2. One-Line syntax. Do...
3 Syntax Introduction Syntax Statements Colon : Line Continuation _ Conditions If Then Else End If 1. block form syntax 2. One-Line syntax Select Case Case Case Else End Select Do...Loop For...Next While...Wend
Dashboard reports created in Microsoft Excel are powerful, flexible. Dashboard Your Scorecard. Unleash the power of Excel for visual data analysis.
Dashboard Your Scorecard Unleash the power of Excel for visual data analysis. by Mark W. Lehman, CPA, Carol M. Lehman and Jim Feazell Dashboard reports created in Microsoft Excel are powerful, flexible
Excel & Visual Basic for Applications (VBA)
Excel & Visual Basic for Applications (VBA) The VBA Programming Environment Recording Macros Working with the Visual Basic Editor (VBE) 1 Why get involved with this programming business? If you can't program,
Microsoft Excel 2010 Tutorial
1 Microsoft Excel 2010 Tutorial Excel is a spreadsheet program in the Microsoft Office system. You can use Excel to create and format workbooks (a collection of spreadsheets) in order to analyze data and
Explore commands on the ribbon Each ribbon tab has groups, and each group has a set of related commands.
Quick Start Guide Microsoft Excel 2013 looks different from previous versions, so we created this guide to help you minimize the learning curve. Add commands to the Quick Access Toolbar Keep favorite commands
An Introduction to Excel Pivot Tables
An Introduction to Excel Pivot Tables EXCEL REVIEW 2001-2002 This brief introduction to Excel Pivot Tables addresses the English version of MS Excel 2000. Microsoft revised the Pivot Tables feature with
Intro to Excel spreadsheets
Intro to Excel spreadsheets What are the objectives of this document? The objectives of document are: 1. Familiarize you with what a spreadsheet is, how it works, and what its capabilities are; 2. Using
Excel -- Creating Charts
Excel -- Creating Charts The saying goes, A picture is worth a thousand words, and so true. Professional looking charts give visual enhancement to your statistics, fiscal reports or presentation. Excel
Excel basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:
Excel basics Excel is a powerful spreadsheet and data analysis application, but to use it most effectively, you first have to understand the basics. This tutorial introduces some of the tasks and features
Using Loops to Repeat Code
Using s to Repeat Code Why You Need s The macro recording tools in Microsoft Word and Microsoft Excel make easy work of creating simple coding tasks, but running a recorded macro is just that you do a
MICROSOFT EXCEL 2010. Formulas, Functions, & Macros. Documented by Vincent J. Yanusauskas Computer Training Coordinator
MICROSOFT EXCEL 2010 Formulas, Functions, & Macros Documented by Vincent J. Yanusauskas Computer Training Coordinator Introduction This handout was created to familiarize the user with the most common
About PivotTable reports
Page 1 of 8 Excel Home > PivotTable reports and PivotChart reports > Basics Overview of PivotTable and PivotChart reports Show All Use a PivotTable report to summarize, analyze, explore, and present summary
Excel Spreadsheets: Getting Started
Excel Spreadsheets: Getting Started EXCEL REVIEW 2003-2004 Excel Spreadsheets: Getting Started Review this guide for tips on some of the basic skills you need to get started building and using spreadsheets.
Easy Calculations in Excel
Easy Calculations in Excel (2007 and newer) Any time you have a list of numbers that require some sort of calculation like percent change from one year to the next, percent of total, average or just a
Excel 2003 A Beginners Guide
Excel 2003 A Beginners Guide Beginner Introduction The aim of this document is to introduce some basic techniques for using Excel to enter data, perform calculations and produce simple charts based on
EXCEL 2007. Using Excel for Data Query & Management. Information Technology. MS Office Excel 2007 Users Guide. IT Training & Development
Information Technology MS Office Excel 2007 Users Guide EXCEL 2007 Using Excel for Data Query & Management IT Training & Development (818) 677-1700 [email protected] http://www.csun.edu/training TABLE
Microsoft Excel Basics
COMMUNITY TECHNICAL SUPPORT Microsoft Excel Basics Introduction to Excel Click on the program icon in Launcher or the Microsoft Office Shortcut Bar. A worksheet is a grid, made up of columns, which are
Introduction to Microsoft Excel 1 Part I
Introduction to Microsoft Excel 1 Part I Objectives When you complete this workshop you will be able to: Recognize Excel s basic operations and tools; Develop simple worksheets; Use formulas; Format worksheets;
The Basics of Microsoft Excel
The Basics of Microsoft Excel Theresa A Scott, MS Biostatistician III Department of Biostatistics Vanderbilt University [email protected] Table of Contents 1 Introduction 1 1.1 Spreadsheet Basics..........................................
"Excel with Excel 2013: Pivoting with Pivot Tables" by Venu Gopalakrishna Remani. October 28, 2014
Teaching Excellence and Innovation 1 Pivot table Pivot table does calculations with criteria Data should be arranged as : Field names in the first rows, records in rows No blank rows or blank columns should
Using Excel As A Database
Using Excel As A Database Access is a great database application, but let s face it sometimes it s just a bit complicated! There are a lot of times when it would be nice to have some of the capabilities
Microsoft Excel 2007 Level 2
Information Technology Services Kennesaw State University Microsoft Excel 2007 Level 2 Copyright 2008 KSU Dept. of Information Technology Services This document may be downloaded, printed or copied for
Basic Formulas in Excel. Why use cell names in formulas instead of actual numbers?
Understanding formulas Basic Formulas in Excel Formulas are placed into cells whenever you want Excel to add, subtract, multiply, divide or do other mathematical calculations. The formula should be placed
USC Marshall School of Business Academic Information Services. Excel 2007 Qualtrics Survey Analysis
USC Marshall School of Business Academic Information Services Excel 2007 Qualtrics Survey Analysis DESCRIPTION OF EXCEL ANALYSIS TOOLS AVAILABLE... 3 Summary of Tools Available and their Properties...
