Download presentation
Presentation is loading. Please wait.
1
Lecture Excel: Multiple Worksheets
2
Workbook and Worksheets Multiple worksheets in a single workbook. When saved, only a single workbook (XLS) is saved which will contain all of the worksheets.
3
Purpose Used to track different groups of information in a single Workbook Examples: –Expenses, Income, and Summary –Data from 12 Months –Each Employee’s Sales –Each Product’s Performance
4
Advantages: Allows setting the print options for a number of sheets at once. Allows applying formats to many sheets. Allows unhiding of rows and/or columns simultaneously. Allows typing/inserting text or formulas for the same cell address in all grouped sheets.
5
Selecting Worksheets Worksheet tabs Initially: 3 worksheets Max: 255 worksheets Change default in Options First SheetPrior Sheet Next Sheet Last Sheet
6
Worksheet Options Insert (to add a new worksheet) Delete Rename (to identify it) Move (to another workbook) Copy (to another workbook, or clone) Rearrange (change the order) Color (make sheets easy to find) Right-Click on Tab
7
Grouped Worksheet Actions When multiple worksheets are selected (grouped), changes are made to all worksheets simultaneously Use this to: –Make formatting changes –Add rows/columns –Change page setup (orientation, header) –Change text/data
8
To Group Worksheets 1.Click first sheet tab 2.Hold down Shift 3.Click last sheet tab 1.Click first sheet tab 2.Hold down Control 3.Click each sheet tab or Select contiguous Worksheets Select individual Worksheets
9
Caution!! It is easy to forget that multiple worksheets are selected Deleting or changing values will affect all worksheets selected
10
Ungrouping Worksheets Right-Click tab, choose Ungroup Sheets Left-click any tab NOT part of the group
11
Formula References in Sheets Syntax: =Income!B2 Helpful to use point and click Examples: =A2 + Sales!B7 =Income!B10 – Expenses!B10 =Sum(Employees!C2:Employees!C99) =Sum(Week1:Week4!D2) Sheet Name Cell
12
Additional Financial Analysis Cost of Sales: What percentage of your income is devoted to expenses? How much does it cost you to just keep your doors open? Divide Expenses by Income
13
Additional Financial Analysis Profit Margin: What is your profit margin? 20% to 35% is considered a good profit margin Divide Profits by Income to come up with the profit Margin
14
Conditional Formatting Conditional formatting formats cells based on their content, or the content of other cells. IF the profit margin is greater than 30% fill this cell with yellow formatting and make it bold.
15
Conditional Formatting Excel 2003 and 2007
16
Conditional Formatting Requires that you set up a rule for the formatting Create a new rule Setup the parameters Define the formatting options
17
Conditional Formatting
18
Lecture Excel: Macros
19
Macros A macro is a series of commands that are stored and can be run whenever you need to perform the task
20
Macros, cont. Set of instructions that can be automated within Excel Purpose is to eliminate repetitive tasks as well as simplify Examples include adding or deleting rows or columns; adding a specific header; adding the date to a sheet
21
Security Viruses can be attached to macros Security settings have to be set to enable macros to run Ensure you know it’s your file or from a trusted source before enabling
22
Create a New Macro Macros are created from the View or Developer tab Actions can be recorded and then RUN in other sheets and workbooks
23
Two Ways There are two ways to create a macro The recordable option offers an easier interface for users to create Macros without needing to know the underlying VBA (Visual Basic for Applications) code The second option allows users to code directly utilizing VBA
24
Editing Even when macros have been recorded, users can edit the underlying VBA code to adjust colors, change ranges, update a function, etc.
25
Editing Macros – Visual Basic Editor Sub Sum() Sum Macro' Range("N5").Select ActiveCell.FormulaR1C1 = "=SUM(RC[-12]:RC[-1])" Range("N5").Select Selection.AutoFill Destination:=Range("N5:N7"), Type:=xlFillDefault Range("N5:N7").Select Range("B8").Select ActiveCell.FormulaR1C1 = "=SUM(R[-3]C:R[-1]C)" Range("B8").Select
26
Record and Edit
27
Save Macros Macros saved to workbook are only available within that workbook Macros saved to Personal Workbook are available within the software program itself The Personal Workbook is hidden and to make edits to macros stored there, it must first be unhidden from the toolbar
28
Save Macros, cont. A file with Macros will not save with the normal.xls or.xlsx extension It will prompt you to save with the.xlsm extension (Excel – Macro Enabled Workbook)
29
Run a Macro Macros can be run manually from the menu They can also be set to run automatically after another action, such as opening a workbook Macros can be set to run after clicking on a button
30
Macros In Action – Ex. #1 Add another year and delete all the totals! View tab – Record Macros in Workbook Go through the process of adding formulas to the 2011 sheet…formatting to. All done – stop recording.
31
Macros in action – Ex. #1 Copy the 2010 data to a new sheet, creating a sheet for 2012. Delete all of the totals. Run Macro!
32
Example…Assign to a Button
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.