Excel 2019 Level 3
Excel 2019 Level 3
Level 3
800-639-3535
www.tcworkshop.com
[email protected]
Lesson Notes
Excel 2019
Level 3
11/11/2019
Developed by:
Brian Ireson
Suzanne Hixon
Thelma Tippie
Edited by:
Marissa Kain, Jeffrey DeRamus and Cheri Stevenson
Published by:
RoundTown Publishing
5200 Upper Metro Place, Suite 140
Dublin, Ohio 43017
for
Copyright © 2019 by RoundTown Publishing. No reproduction or transmittal of any part of this publication,
in any form or by any means, mechanical or electronic, including photocopying, recording, storage in an
information retrieval system, or otherwise, is permitted without the prior consent of RoundTown Publishing.
Disclaimer:
Round Town Publishing produced this manual with great care to make it of good quality and accurate, and
therefore, provides no warranties for this publication whatsoever, including, but not limited to, the implied
warranties of merchantability or fitness for specific uses. Changes may be made to this document without
notice.
Trademark Notices:
The Computer Workshop, Inc. and The Computer Workshop logo are registered trademarks of The
Computer Workshop, Inc. [Microsoft], [Windows], [PowerPoint], [Excel], [Word], and [Access] are registered
trademarks of Microsoft Corporation. [Photoshop] and [InDesign] are a registered trademark of Adobe. All
other product names and services identified throughout this book are trademarks or registered trademarks
of their respective companies. Using any of these trade names is for editorial purposes only and in no way is
intended to convey endorsement or other affiliation with this manual.
Preface
Using this Welcome to the Excel 2019 Level 3 course. This manual and
the data files are designed to be used for learning, review and
Manual reference after the class. The data files can be downloaded any
time from The Computer Workshop website:
http:\\www.tcworkshop.com
There is no login or password required to access these files. You
will also find handouts and supplementary materials on the
website in the Download section.
What is a Macro? A Macro can be described as a tiny program that uses Visual
Basic code to automate a sequence of actions or instructions.
A Macro can be simple and consist of only a few tasks or
commands, or be quite complex, involving lots of data
manipulation and calculations. To create complex Macros, it is
worthwhile to invest time in learning Visual Basic programming.
But for simple Macros, you don’t have to do any programming at
all.
Saving Files with Once you plan on creating Macros in a workbook, it must be
saved as a macro-enabled workbook. When performing a Save As
Macros choose the second option from the drop-down list within the Save
As Type field. The saved Excel workbook will have an extension
of .xlsm.
- OR -
Click on the File Tab.
Select Options.
Choose Trust Center from the index on the left.
Click on the [Trust Center Settings] button.
The Excel Trust Center dialog box will open.
2. Click the File Tab and choose Options The Excel Options dialog box opens.
from the categories listed on the left side
of the Backstage view.
3. Select Customize Ribbon from the Options related to customizing the ribbon
categories on the left. are displayed.
4. In the right list of Tabs, click the The Developer Tab will now be added to
checkbox next to Developer and click the the ribbon.
[OK] button.
5. Activate the Developer Tab on the ribbon. To view the Developer Ribbon.
6. Locate the Code Group. This group deals with creating and editing
Macros.
7. Locate the Controls Group. This group is used when creating Form
Controls.
9. Locate the Macros Group. You can record and run Macros from this
menu as well as the Developer Tab.
Macro Naming To create a Macro, you can either write it from scratch using
Visual Basic code, which can be considered programming, or
you can have Excel record the actions you perform, which in turn
creates the Visual Basic code for you. Recording is less efficient,
but much easier.
There are benefits to both methods. You must decide what is best
for your Macro. By default, Excel uses Absolute Referencing.
Recording a Once you have planned your Macro, recording a Macro is very
easy using the steps outlined below, even if you don't have access
Macro to the Developer Tab.
If you want your In the Macro name: field, type a descriptive name -
Macro to run
remember, no spaces.
automatically when
the file is opened, use If you want to assign a shortcut key, type a letter or
the name Auto_Open. number that is not used for other shortcuts in the
text box to the right of Ctrl+.
In the Store macro in: drop-down list, select one of
the options This Workbook, Personal Macro Book, or
New Workbook.
2. Click the [Record Macro] button. The Record Macro dialog opens.
3. In the Macro Name: field, type in; This will be the name of the macro.
NewInvoiceLayout.
4. In the Shortcut key: field, type in; This will be the keyboard shortcut to run
< Q > while holding the [Shift] key. the macro.
5. From the Store macro in: field drop- By choosing this option, this macro will
down, choose; This Workbook. only be available when working in this
specific file.
6. In the Description: field type in; The description should be clear and
< This adds logo with address block and concise.
inserts data structure with formulas. >
15. Select cell A9 and type in; This is the list of regions.
< Region1 >
then use Autofill down to cell A14.
16. Select cell H9 and type in the following This formula adds up each month for the
formula; region.
=SUM(B9:G9). Tap the [Enter] key.
17. Use Autofill down to cell H14. Each region will be calculated as values
are added.
19. Select cell H15 and type in the following The subtotal of all the regions is calculated
formula; here.
=SUM(H9:H14). Tap the [Enter] key.
21. Select cell H16 and type in the following The amount of taxes owed is calculated
formula; here.
=H15*H5. Tap the [Enter] key.
23. Select cell H17 and type in the following The final total is calculated here.
formula;
=H15+H16. Tap the [Enter] key.
24. Select cell B9. This will be where you begin entering data
into the worksheet.
25. Click the Stop Recording button in the The recording is stopped and the macro is
Macros Group on the Developer Tab. ready for use.
Excel 2019: Level 3, Rel. 1.0, Editing Personal Macros
Lesson 1: Macros and VBA, Page 13
Lesson 1: Macros and VBA
Running a Once your Macro is created and saved, it will be available to run
anytime it is needed.
Macro
Run a Macro Using the Macro Dialog Box
You can also Select the worksheet where you want to apply the
access the dialog Macro.
box by going Select the Developer Tab
to the View Tab and
selecting View Macros Click the [Macros] button.
from the [Macros] drop
down button. The Macro dialog box is displayed.
2. Click the Developer Tab, in the Code The Macro dialog opens, this window
Group, click the [Macros] button. allows you to see, run, or edit.
3. Select the macro and click the [Run] The sheet now has the logo, structure and
button. formulas in place.
4. Click the [New Sheet] button. Another sheet is added to the workbook.
5. Use the keyboard shortcut assigned to The sheet now has the logo, structure and
the macro; formulas in place.
[Ctrl+Shift+Q].
6. Save the file as MyMacro.XLSM. [F12] will open the Save As dialog. Save it
Remember to choose the Excel Macro- in the Lessons folder as an Excel Macro
Enabled Workbook from the Save As Type: Enabled Workbook.
drop-down.
8. Click the Developer Tab, in the Code The Macros dialog opens, you can see and
Group, click the [Macros] button. use the Macro you just created. This is
because the system is searching All Open
Workbooks as the default within the Macros
in:.
9. Close both files without saving any [Ctrl+W] for both files.
changes.
11. Click the Developer Tab, in the Code The Macros dialog opens, it has no macros
Group, click the [Macros] button. listed since the macro was recorded and
stored in This Workbook. Once the original
file has been closed, it's macros are not
available in new files.
Editing a Macro There are several reasons to edit a Macro instead of rerecording:
VBA Modules
Each Macro consists of a block of VBA code. A Module is used
to store these Macros. Modules can contain one or more Macros.
Workbooks and templates can contain one or more Modules. A
set of Modules in a workbook is called a Project.
Menu Bar
Project Explorer
Code (Editing)
Pane
Window
Properties
Window
Immediate
Window
2. Click the Developer Tab, in the Code The Macros dialog opens.
Group, click the [Macros] button.
3. Select the macro and click the [Edit] The VBA Editor opens.
button.
4. In the Project panel, open the Models If the Project Panel is not visible, go the
folder and double click the Module1 View option in the main menu and click
icon. If necessary. the Project Panel to activate the panel.
When you double click the Module1 icon
the code is displayed in the main panel to
the right.
5. Set the cursor at the end to the line that You will be adding some code to make the
says: headings bold.
ActiveCell.FormulaR1C1 = "Total"
6. Tap the Enter key and type in; This code will select the headings range
< Range("B8:H8").Select and apply a bold format to the text. Tap
Selection.Font.Bold = True > the [Enter] key before typing the second
line of code.
7. Click the [Save] icon in the toolbar and The macro is updated and you are taken
then the [Excel] icon. back into your Excel file.
8. Examine the headings on your sheet. Nothing has been changed, the macro
must be re-run in order for the change to
take affect.
9. Add a new sheet to the workbook. Click the [New Worksheet] button.
10. Click the Developer Tab, in the Code You can also use the keyboard shortcut
Group, click the [Macros] button. Select you assigned to the macro to re-run it.
the macro and click the [Run] button.
When creating new files and running the personal macro, the file
can be saved as either a normal .xlsx or .xlsm file type. Choosing
the Excel Workbook(.XLSX0) file format will disable the macro
for future use in the file being saved. While saving the file as
an Excel Macro Enabled Workbook(.XLSM) will maintain the
functionality of the macro for future use in the file.
2. Click the [Record Macro] button in the The Record Macro dialog opens.
Code Group.
3. In the Macro Name: field type in; This will be the name of the macro.
< NewSheetLayout >.
4. Leave the Shortcut key: field blank. There will be no need for a keyboard
shortcut for this macro but you can assign
one if you like.
5. From the Store macro in: field drop- By choosing this option, this macro will be
down choose Personal Macro Workbook. available in any new or existing file.
6. In the Description: field type in; The description should be clear and
< This Adds Logo with address block concise.
and inserts data structure with formulas
>.
7. Click the [OK] button. You are now recording, everything you do
now is captured in the new macro.
11. Select cell B8 and type in; A list of the first six months is added to the
< Jan > worksheet.
then use Autofill across to G8.
12. Select cell H8 and type in; This will be the column where each region
< Total > . will be summed.
14. Select cell H1 and apply a fill color. This is the list of regions.
15. Select cell A9 and type in; This formula adds up each month for the
< Region1 > then use Autofill down the region.
cell A15.
16. Select cell H9 and type in the following Each region will be calculated as values
formula; are added.
=SUM(B9:G9). Tap the [Enter] key.
18. Select cell G16 and type in; The subtotal of all the regions is calculated
< Subtotal >. here.
20. Select cell G17 and type in; The amount of taxes owed is calculated
< Tax >. here.
22. Select cell G18 and type in; The final total is calculated here.
< Total >.
- OR -
Use the [Macros] drop-down on the View Tab.
2. Click the Developer Tab, in the Code The Macro dialog opens.
Group, click the [Macros] button.
4. Click the [New Sheet] button. A new sheet is added to the workbook.
6. Choose the
PERSONAL.XLSB!NewSheetLayout macro
and click the [Run] button.
7. Click the Developer Tab, in the Code The Macro dialog opens.
Group, click the [Macro] button.
9. Click the View Tab, in the Window A warning dialog box opens to let you
Group, click the [Unhide] button. know that the personal workbook must be
unhidden before editing can be done.
10. Select the PERSONAL.XLSB workbook The Unhide dialog opens. By default a
and click the [OK] button. hidden workbook is opened in Excel
as long as any Macros are saved in the
Personal Macro Workbook.
11. Click the Developer Tab, in the Macros The Macro dialog opens.
Group, click the [Macro] button.
12. Select the NewSheetLayout and click the The VBA Editor opens without issue this
[Edit] button. time.
14. Tap the ]Enter] key and type in; Remember to tap the [Enter] key before
< Range("B8:H8").Select typing the second line of code.
Selection.Font.Bold = True >.
15. Click the [Save] icon in the toolbar and The macro is updated and you are back in
then the [Excel] icon. your Excel workbook.
16. Click the View Tab in the Window The PERSONAL.XLSB sheet is hidden.
Group and click the [Hide] button.
18. Click the Developer Tab, in the Macros The Macro dialog opens.
Group click the Macro button.
19. Select the The new sheet has its content and
PERSONAL.XLSB!NewSheetLayout formulas added, with the formatting
and click the Run button. change applied.
Adding a Macro To make running a Macro easier, you can add a button to
the Quick Access Toolbar for convenience. If the workbook
Button to the containing the Macro is not open, the button will simply be
QAT grayed out. If you add the Macro to the Personal workbook
when you create it, the Macro will always be available regardless
of which workbook you have open.
- OR -
Double-click on the Macro to add it to the list on the
right.
2. From the Choose Commands From: The left side panel displays any macros
drop-down choose Macros. associated with this or personal
workbooks.
5. Click the [Modify] button below the The Modify Button dialog opens.
right side panel.
6. Choose an Icon and click the [OK] The icon is now used to represent the
button. macro.
7. Click the [OK] button. The Options dialog closes and the new
button is visible on the QAT.
8. Click the [New Sheet] button, then click The sheet now has the logo, structure and
the new button you just added to the formulas in place.
QAT.
11. Click the macro button on the QAT. The sheet now has the logo, structure and
formulas in place.
The first number represents the Rows while the second number
represents the Columns. Positive values move down in Rows
and right in Columns, negative values move the rows up and
Columns left.
3. Click the Developer Tab, in the By making this button active, you are able
Macros Group, click the [Use Relative to run the macro based on offsets from
References] button. whatever cell is active.
4. Click the [Record Macro] button. The New Macro dialog opens.
10. Select cell A4 and type in; This is the beginning of a list.
< Jan >.
13. Select cell B3 and type in; This is the beginning of another list.
< Week 1 >.
14. Use Autofill over to cell F3. A numeric list of weeks is created.
17. Use Autofill down to cell G15. All the months of the year will now be
calculated.
18. Select cell B4. This will be an active cell when the macro
has been run.
19. Click the Developer Tab, in the Macros The macro is completed and ready to be
Group, click the [Stop Recording] run.
button.
This is where the next data block needs to
20. Select cell A20. be added.
21. Run the NewDataBlock macro. Use the keyboard shortcut you assigned to
the macro, [Ctrl+Shift+W].
3. Click the View Tab, in the Window The Unhide dialog opens.
Group click the [Unhide] button.
5. Click the Developer Tab, in the Code The Macros dialog opens. You could also
Group click the [Macros] button. access the [Macros] button on the View
Tab in the Macro Group.
6. In the Macros in: field drop-down, This is to make sure that you are removing
choose the PERSONAL.XLSB file. the macro from the PERSONAL.XLSB
workbook and not any other.
7. Select the NewSheetLayout macro in the All macros in the PERSONAL.XLSB are
Macro Name: field. displayed in the Macro Name: field.
9. When the Warning dialog opens click the The macro is removed from the personal
[Yes] button. workbook.
2. Click the [Hide] button in the Window The PERSONAL.XLSB closes. You may or
Group. may not see another workbook in Excel.
4. Click the [Save] button to commit the This includes the removal of the unwanted
edits just made to the PERSONAL.XLSB macro and set the view status of the
file. PERSONAL.XLSB to a hidden state.
Excel closes.
5. Restart Excel and open a new blank Click the [Blank Workbook] button on the
workbook. Start Screen if necessary. You should see
the new workbook title be Book1 in the
program titlebar.
Lesson Overview
When using Form Controls, you can place data lists, lookup
tables, functions and formulas on a separate worksheet from the
actual controls. This way, the user can access one sheet with all
the controls they need, and the sheets with the actual data and
formulas can be set up on a protected sheet to prevent deletion or
modification.
Some of the Form Controls that you can choose from include:
Check boxes
Combo boxes
Control buttons
List boxes
Option (radio) buttons
Scroll bars
This allows you to manage what kind of data a user can enter or
manipulate and what happens in the worksheet after a user has
performed specific actions.
You can also use Active X form controls which offer a much
more extensive properties that you can use to customize their
appearance, behavior, fonts, and other characteristics. The draw
back with these type of form controls is that the user of the file
will require having Active X on the systems which means these
form controls can be less accessible to people running older
versions of Excel. In this book we will be focusing on the regular
form controls.
Form Controls, Form Controls in a worksheet make it easier for people to enter
continued or edit data. A worksheet form contains controls, such as boxes or
drop-down lists that can be used to make selections that trigger
simple calculations, or to provide a basic interface that allows a
user to interact with the workbook data.
3. Click the [Insert] button drop-down in The list of Form Controls are displayed.
the Form Controls Group.
4. Click the List Box control from the list of It is the second option in the first row of
available controls. options.
6. Click into any cell to deselect the control. The resizing handles disappear.
7. Right-click the control to re-select it. This is the method to reselect a form
control for editing or repositioning.
8. Examine the list of option in the Depending on the control different options
contextual menu. are available.
Modifying Form On the Control Tab, you will find options specific
to the type of control you have selected.
Controls,
continued
2. Use the Autofill handle to add the rest of The rest of the weekdays are added to the
the weekdays down to cell H7. worksheet.
3. Right-click the control you just added The Format Control dialog opens.
before and choose Format Control from
the contextual menu.
4. Click the Size Tab in the dialog. The size controls are now displayed in the
dialog.
5. Set the Height to 2.5" The size of the control is now set.
Set the Width to 2"
6. Click the Protection Tab to see that the This tab offers the same type of object or
control is locked. cell protection as the Protection Tab in the
Format Cells dialog.
7. Click the Properties Tab. Examine the options of how the control
will react when changes are made in the
worksheet.
8. Uncheck the Print object checkbox. Now the control will not be included when
the worksheet is printed.
9. Click the Alt Text Tab, click in the This tab allows you to enter text which
Alternative Text field and type in; will be read aloud for the visually
< Click here to choose the day from the impaired, this is part of ensuring that your
list. >. document is ADA compliant. (ADA =
American Disabilities Act)
10. Click the Control Tab. From this tab you can add functionality to
the control.
11. Click into the Input range field, then Here, you are connecting the cells that
highlight cells H1:H7. contain the values to be displayed in the
drop-down.
13. Click the [OK] button. The Format Control dialog is closed and all
setting applied.
15. Click the day to select from the list. Use the Left mouse button to interact with
the control. The list of weekdays has been
added to the form control and when one is
chosen the numeric position of the choice
is displayed in cell A6.
The Combo Box can use a range of existing cells to populate the
drop-down list as well as return a value into another cell based
on the choice made. The returned value is simply the numeric
position of the choice within the list.
Adding a Combo In the Format Control dialog, activate the Control tab.
2. Click the [Enable Content] button and This file has all the worksheets needed
examine the structure of the file. already built.
3. Activate the Control Sheet. This worksheet has the list of months for
the Combo Box drop-down list.
4. Double click cell D9 and examine the This cell has a nested If formula designed
formula in the cell. to pull information from the appropriate
worksheet depending on the month
selected from the Combo Box list.
7. Click the Developer Tab, in the Controls The list of controls are displayed.
Group click the [Insert] button.
8. Select the Combo Box control. The second option in the top row.
9. Set the cursor over the upper left corner The Combo Box control has been added to
of cell B16, click and drag over to lower the worksheet.
right corner of cell C16.
10. Right-click the control and choose The Format Control dialog opens.
Format Control from the contextual
menu.
The Alt Text tab is now active.
11. Click the Alt Text tab.
You have added text that will be read
12. Click into the Alternative text: field, and by screen reading applications for the
type in; visually impaired.
< Choose a month from the list >.
The Control tab is now active.
13. Click the Control tab.
15. Click into the Cell Link: field, then click When a choice is made from the list of
the [Collapse Dialog] button and select options, the numeric value of that choice's
the Control sheet and select cell C9. position in the list will be entered into this
Click the [Expand Dialog] button to cell.
show the full dialog again.
16. Click the [OK] button. The Format Control dialog is closed and the
changes applied to the control.
17. Select cell D16 and type in; This is a 3D reference back to cell D9 on
< =Control!D9 >. the Control worksheet.
and press the [Enter] key.
18. Click the Combo Box control and choose As you make a selection from the list the
a month from the list to see the value in value displayed in D16 shows the amount
cell D16 change. of units sold in relation to the month
chosen.
When drawing
the new Option Click where you would like the Option Button placed
buttons, do not to use the default size or draw out the Option Button
let their edges touch to size where you want on the worksheet.
the edge of the Group
Box control or they Continue adding Option Buttons for each choice
will not be part of you want to make available. (Remember not to
the options set in the deselect the completed Option Button before
Group Box.
creating the next.)
Right-click the default text and chose Edit Text from the
contextual menu.
Selecting and Arranging a group of Option Buttons
Once all the Option Buttons have been created and named, you
may want to align and distribute them so as to make them look
well organized.
To select a control: right-click the control.
Hold the [CTRL] key and click each subsequent
control.
3. Click the [Insert] button drop-down in This will be the first option in te second
the Controls Group and select the Group row.
Box option.
4. Set the cursor over the top left corner of You are defining the size and location of
cell B18 and drag down to lower right the Group Box.
corner of cell C30.
5. Right-click the Group Box text and The text for the Group Box can now be
choose Edit Text from the contextual modified to suit your needs.
menu.
6. Type in;
< Months >
and delete the other existing text.
7. Do not deselect the control. The control must remain selected in order
for Excel to group the Group Box with the
Option Buttons to be added.
8. Click the [Insert] button drop-down in If necessary, reactivate the Developer Tab
the Controls Group and select the Option to access this command.
Button option.
9. Click over the middle of cell B19. The Option Button is added, using the
default size and text.
10. Right-click the Option Button control The Option Button label is active and can
and choose Edit Text from the contextual be modified.
menu.
11. Type in; This is the first radio button option of the
< January> list you are creating within the Group Box.
and delete the other existing text.
14. Right-click the last control you edited The Format Controls dialog opens, notice
and choose Format Control from the you now also have access to a Color and
menu. Lines Tab in the dialog.
17. Click into the Cell link: field and select This will populate the cell link with
cell C9 on the Control worksheet. the numeric value of the Option Button
selected.
18. Click the [OK] button. The Format Control dialog closes.
19. Hold the [CTRL] key and click each of By holding the [CTRL] key while clicking
the Option Button controls in the Group each Option Button, you are adding to the
Box. current selection.
20. Activate the Format Tab in the ribbon. The formatting controls are available.
21. Click the [Align] drop-down button in The selected objects are now all aligned.
the Arrange Group and select Align Left.
22. Click the [Align] drop-down button in The selected objects are now all evenly
the Arrange Group and select Distribute spaced apart.
Vertically.
23. Deselect the controls. Click into any cell on the worksheet.
24. Test the radio buttons you just made. As you click one Option Button the
number of units sold that month are
displayed.
Click [OK].
If you choose to record a Macro, perform the steps you
want attached to the Form Control and then stop the
Macro.
After you have assigned the Macro, you will be taken
back to the spreadsheet. Click away from your new
Form Control to deselect it. It is ready to use.
3. Click the [Insert] button drop-down in The first button in the first row of options.
the Controls Group and select the Button
option.
4. Set the cursor over the top left corner To define the size and location of the
of cell E9 and drag down to lower right button.
corner of cell F10.
5. In the Assign Macro dialog choose As soon as you finish drawing out a button
CommandButton1_Click and then click the control the Assign Macro dialog appears.
[OK] button. You can choose to record a new macro or
use an existing macro.
6. Right-click the new button and choose The Format Control dialog opens, by
Format Control from the contextual menu. default to the Font tab.
7. On the Font tab in the Format Control You are defining the appearance of the text
dialog, set the font to Trebuchet, Bold, on the button.
and 14pt.
8. On the Alt Text tab; type in; You are adding accessibility to the button
< Click here to print the selected in order to be ADA compliant.
month's detail page >.
11. Replace the current text with < PRINT>. The button is now renamed.
13. Click the [Printer] drop-down button This will set the Adobe PDF Printer as the
and choose the Adobe PDF Printer from default printer. You may need to use the
the list of available printers. Microsoft XPS Document Writer.
16. Click the [Print] button. The Save PDF As dialog opens.
17. Save the PDF to the desktop without This way the PDF can be easily found later
changing the file name. if necessary.
18. Preview the PDF and close Acrobat. Acrobat opens the PDF, it should be a copy
of the month worksheet for the month you
choose.
19. Go back into the Excel file and try When the Save PDF As dialog opens,
changing the month choice and running simply replace the existing file on the
another print. desktop.
20. Preview the PDF and close Acrobat. Acrobat opens the PDF, it should be a copy
of the month worksheet for the month you
choose.
2. Select the CommandButton1_Click macro The selected macro is opened in the VBA
and click the [Edit] button. editor.
Select Case ThisWorkbook.Sheets("Control"). This line defines where the macro will
Range("D9") look to see the Case to print.
End Select
4. Now to look at the Print(Month) macro. The Print(Month) macros were each
created as recorded macros.
5. Activate the Developer Tab and click the The Macro dialog opens.
Macros button in the Code Group.
6. Select the PrintApr macro and click the The selected macro is opened in the VBA
Edit button. editor.
Lesson 3: Hyperlinks
and Connecting to the
Internet
Lesson Overview
What is a In this lesson, you will learn about hyperlinks and the Internet.
You will learn how to insert hyperlinks into a worksheet, modify
Hyperlink hyperlinks in a worksheet, and browse hyperlinks in Excel.
What is a Hyperlink?
A hyperlink is an object in a file that links to another location in
the same file, or to another file altogether.
continued
1. Look In
2. Current Folder
8. In the Link to: field, click A list of all the sheets in the workbook are
[Place in This Document]. displayed.
10. Click the [Screentip...] button next to the The Set Hyperlink ScreenTip dialog opens.
Text to display: field.
11. In the ScreenTip text: field type in; This text will be displayed as the user
< Click here to go to the Jan sheet. > hovers over the link, it will also be read
and click the [OK] button. aloud by screen reading applications.
(ADA compliance)
12. Click the [OK] button. The Insert Hyperlink dialog closes.
13. Click the link to verify that it works. The Jan sheet should now be the active
worksheet.
14. Reactivate the Main sheet. Click on the Main sheet tab.
15. Repeat steps 7 through 10 to create Direct each link to the correct worksheet
links for Feb through Jun in cells D1:H1 and adjust the ScreenTips accordingly.
respectively.
17. Select the Jan through Jun sheets. Click the Jan sheet tab, hold the [Shift] key
and click the Jun sheet tab.
18. Click into cell C1 and paste the copied [Ctrl+V] to paste or right-click and choose
cells. Paste from the menu. All the worksheets
selected now have the sheet navigation
links pasted.
3. Click the Insert Tab, in the Illustrations The list of available shapes are displayed
Group, click the [Insert Shape] button in the drop-down.
drop-down.
4. Choose the Rounded Rectangle. The sixth button in the top row of options.
5. Draw out the shape starting at the upper To define the size and location of the
left corner of cell A1 to A2. shape.
7. Right-click the shape and choose Format The Format Shape pane opens on the right
Shape from the menu. side of the screen.
8. In the Format Shape pane, click Shape Options pertaining to shape size and
Options then the [Size & Properties] properties are displayed in the pane.
button.
9. Expand the Textbox set of controls and The text is now vertically centered.
set the Vertical alignment to Middle.
10. Expand the Properties set of controls and If this sheet is printed, the button will not
uncheck the Print Object checkbox. be included in the print.
11. Close the Format Shape pane. Click the [Close] button in the Format
Shape pane.
12. Click the Home Tab, in the Alignment The text is now also horizontally centered
Group, click the [Center Align] button. in the shape.
14. Click the Insert Tab, in the Links Group, [Ctrl+K] or right-click the shape and
click the [Hyperlink] button. choose Hyperlink from the menu.
15. In the Link to: field, click This will be another internal link.
[Place in This Document].
Excel 2019: Level 3, Rel. 1.0, 11/11/2019
Lesson 3: Hyperlinks and Connecting to the Internet, Page 78
Action 3.2 - Adding a hyperlink to an Object, continued
17. Click the [Screentip...] button next to the The Set Hyperlink ScreenTip dialog opens.
Text to display: field.
18. In the ScreenTip text: field type in; You are making this link ADA compliant.
< Click here to go Back to the Main
sheet. >
and click the [OK] button. The Set Hyperlink ScreenTip dialog closes.
19. Click the [OK] button. The Insert Hyperlink dialog closes.
20. Select and copy the shape. [Ctrl+C] or right-click the shape and
choose Copy from the menu.
21. Go to cell A1 on each of the remaining [Ctrl+V] or right-click the shape and
month worksheets and paste the choose Paste from the menu.
hyperlinked shape into place.
22. Test the links. Using the links, you should be able
to move back and forth through the
worksheets.
5. Click the Insert Tab, in the Links Group, [Ctrl+K] or right-click the cell and choose
click the [Hyperlink[ button drop-down. Hyperlink from the menu. The Insert
Hyperlink dialog opens.
7. Click into the Address: field and type in This is the URL where the link will direct
< www.tcworkshop.com >. your browser to open.
8. Click the [ScreenTip] button. The Set Hyperlink ScreenTip dialog opens.
9. Add helpful screentip text and click the You are making this link ADA compliant.
[OK] button. Think about text that clearly lets the user
know what to expect when clicking this
link. The Set Hyperlink ScreenTip dialog
closes.
10. Click the [OK] button. The Insert Hyperlink dialog closes.
11. Test the link. A browser window opens to the web page
listed in the link.
3. Select cell A5 and type in; This will be a link that opens a new E-mail
< Contact Us >. message.
5. Click the Insert Tab, in the Links Group, [Ctrl+K] or right-click the cell and choose
click the Hyperlink button drop-down. Hyperlink from the menu. The Insert
Hyperlink dialog opens.
6. In the Link to: field, click The E-mail screen is active in the Insert
[E-mail Address]. Hyperlink dialog.
7. Click into the E-mail address: field and This is who will receive any E-mails sent
type in; by clicking the link.
< [email protected]>.
8. Click into the Subject: field and type in; This will be the default subject line of any
< More Info>. E-mails sent.
9. Click the [ScreenTip] button. The Set Hyperlink ScreenTip dialog opens.
10. Add helpful screentip text and click the You are making this link ADA compliant.
[OK] button. The Set Hyperlink ScreenTip dialog closes.
11. Click the [OK] button. The Insert Hyperlink dialog closes.
13. Do not configure an Outlook account. Exit the setup screen or close the new
email window.
2. Make sure you are on your Main If not, click the worksheet tab for Main.
worksheet.
3. Right-click on the link in cell A3 and The Edit Hyperlink dialog box is displayed.
select Edit Hyperlink from the shortcut
menu.
4. Click in the Address: field, and change The link will now open Google when
the address to clicked.
< www.google.com >.
9. Right-click on the selection and choose The Format Cells dialog box is displayed.
Format Cells from the shortcut menu.
Querying Data Excel offers new tools that allow querying data from external
sources. These tools are found in the new Get & Transform
from a Website Group on the Data Tab. While the new Power Query and
Power Pivot tools are outside the scope of this book, we will be
examining how to use the New Query to gather information from
websites.
- OR -.
Click the [Get Data] button drop-down and choose
From Other Sources then From Web.
from a Website,
continued
Enter the web address into the URL field and click
the [OK] button.
The Web Access Content dialog opens.
Querying Data In the Display Options area, a list of all the different
tables on the web page are displayed.
from a Website,
continued These may or may not be named, depending on
how the site is using HTML labels to define the
tables.
You are able to choose a single table or by checking
the Select Multiple Items checkbox select more
than one table to connect to.
When choosing a single table, a preview is displayed
on the right side of the dialog.
2. In the data files folder, open the This will act as an active web site for
ClassTable.html file in a browser the exercise. To copy the url, [Ctrl+C]
window. Copy the url in the address or right-click and choose Copy from the
bar. menu.
5. Select cell A1, and copy it. [Ctrl+C] or right-click and choose Copy
from the menu.
6. Click the Data Tab, in the Get & The From Web dialog opens.
Transform Group, click the [From Web]
button.
7. Click into the URL field and paste the [Ctrl+V] or right-click and choose Paste
copied link. from the menu.
8. Click the [OK] button. The Web Access Conent dialog opens.
9. Leave the setting as they are and click the Take a few moments to explore this dialog.
[Connect] button. when you click the [Connect} button the
Navigation dialog opens.
10. From the Display Options area, select A preview of the data in that table
the Table from the list of tables. is displayed on the right side of the
Navigation dialog.
11. Click the Web View tab. The preview now shows what the table
looks like on the site.
12. Click the back to the Table View tab. The preview shows simple table view.
13. Click the [Load] button. The data from the selected table is added
in cell A1 of a new worksheet.
Editing A Query, As changes are made, they are listed in the Applied
continued Steps of the Query Setting pane of the editor.
To see how the changes will affect the table click the
[Refresh Preview] button in the Query Group on the
Home Tab of the Query Editor dialog.
When all changes are completed, click the [Close &
Load] button in the Close Group on the Home Tab of
the Query Editor dialog.
2. Click any cell in the data table that was To make the data table active and display
just added to the workbook. the Query Tab in the ribbon.
4. In the Edit Group, click the [Edit] button. The Power Query Editor window opens.
5. Select the third column header (Course_ The column is highlighted.This column
ID) in the preview. will be split into three separate columns.
6. In the Transform Group, click the [Split The Split Column by Delimiter dialog opens.
Column] button drop-down and choose
By Delimiter.
7. Choose Space from the Select or enter Each part of the date field has been put
delimiter field, into it's own column.
Then select the Right-most delimiter radio
button and click the [OK] button.
8. Right-click the first column header The column has been given a name in-line
(Course_ID.1) in the preview and choose with the data it contains.
Rename, name the column as Course_ID.
11. In the Manage Columns Group, click the The column is removed from the preview.
[Remove Columns] button.
14. In the Applied Step field of the Query The preview of the data reverts back to
Settings pane, try selecting different how the data was shaped at that stage of
steps taken in shaping the data. the edit.
15. On the Home Tab, click the [Close & The data is returned to the worksheet in
Load] button. the way it has been shaped.
16. Click the [Refresh] button in the Load The data in the table is updated based on
Group on the Query Tab. the information from the website.
Lesson 4: Outlining,
Subtotals, and
Consolidation
Lesson Overview
If an Outline is
collapsed, only the
data that is visible
on your screen will be
printed.
Showing or Hiding Outlined Data
After the spreadsheet is outlined, you will see outline symbols
above and to the left of your spreadsheet.
Expand Button
Collapse Button
- OR -
Exploring Select a cell within a level group and click the desired
button to show or hide the detail of group
Outlined Data,
continued Show Detail
Hide Detail
3. Click the Data Tab and click the [Group] The data in the worksheet is now
button on and choose Auto Outline. Outlined.
5. Click both the number [1] buttons in the The data in the worksheet is collapsed
upper left area of the worksheet. down to the point where we only see the
profit totals for each year. Since the Yearly
Totals formulas are summing the quarters,
these are the top level formulas in the files
and are the Level 1 breakpoints.
6. Click the number [2] button of the Now the quarterly totals of all the years
horizontal row of numbered buttons in are now also displayed. The individual
the upper left area of the worksheet. [Expand] and [Collapse] buttons are
displayed within the second column on
the left side of the worksheet. The Level
2 formula are gathering the summing the
data in order to provide the values used
by the Level 1 formulas.
7. Click the number [2] button of the Now the Sales and Expenses columns
vertical column of numbered buttons in are displayed, along with the individual
the upper left area of the worksheet. [Expand] and [Collapse] buttons above
the worksheet.
8. Click the [Plus] buttons to expand each Each of the four quarters in the first year
of the Quarter in the first year. are expanded so you can see the detailed
data. The [Plus] buttons change to [Minus]
button when the group is expanded.
10. Clicking the number [3] buttons will The highest number value buttons will
expand to show the data used by the displays all the source data used by the
formulas in the data set. formulas within the data set.
11. Click the Data Tab, in the Outline The Outlining features are removed and
Group, click the [Ungroup] button drop- you are working with a normal large data
down and choose Clear Outline. set on the worksheet.
2. Click the Data Tab, in the Outline Since this file has no formulas, Excel is
Group, click the [Group] button drop- unable to determine how the data should
down and choose Auto Outline. be outlined and now displays the Cannot
create an outline screen.
5. Click the Data Tab, in the Outline Columns B:D are now grouped. The
Group, click the [Group] button drop- outlining controls are added above the
down and choose Group. column headers.
6. Click the [Minus] button above the Columns B:D are collapsed out of view.
column headers.
7. Click the [Plus] button above the column The columns are re-displayed.
headers.
9. Click the Data Tab, in the Outline You can also simply click the [Group]
Group, click the [Group] button drop- button itself. Since only cell were actively
down and choose Group. selected when click the [Group] button
Excel requires more direction on how
to group the data and opens the Group
dialog.
10. Choose Rows in the Group dialog and Rows 5:20 are now grouped and the
click the [OK] button. outlining controls are added to the left of
the row headers.
11. Click the [Minus] button to the left of the Rows 5:20 are collapsed out of view.
row headers.
14. Click the number [1] button on the All the row groups are collapsed.
horizontal number buttons.
15. Click the number [2] button on the All the groups are expanded, showing all
horizontal number buttons. the data.
17. Click the Data Tab, in the Outline The group related to the selected cell is
Group, click the [Ungroup] button drop- removed.
down.
19. Click the Data Tab, in the Outline Since there wasn't a cell within a group
Group, click the [Ungroup] button drop- selected all group and outlining was
down and choose Clear Outline. removed.
Ensure your dataset does not include blank columns and rows so
that Excel includes all of the data and include the headings.
To use the Subtotal
feature, your data Using the Subtotal Feature
should be sorted, Click into the dataset you want to apply Subtotals to.
to break the data into an
organized structure. Select the Data Tab and in the Outline Group, click the
[Subtotal] button. The Subtotal dialog box is displayed.
Select the drop-down for At each change in: to choose
options for the number of rows that will be totaled.
Totals will be applied every time the values under the
chosen column label changes.
Removing Subtotals
Select a cell in the range of data.
Click on the [Subtotal] button in the Outline Group
on the Data Tab to reveal the Subtotal dialog box.
In the Subtotal dialog box, click the [Remove All]
button.
2. Click into any cell in the Sales Rep This will be the data used to organize the
column. data set.
3. Click the Data Tab, in the Sort & Filter The data is now organized by the sales
Group, click the [Sort A to Z] button. reps.
5. In the Subtotal dialog, click the drop- Subtotals will be added for each sales rep
down for the At each change in: field within the Sales Rep column.
and choose Sales Rep.
6. Leave the Use function: field as Sum. This is the function that will be used by the
subtotaling feature.
7. Check the Price checkbox in the Add Totals will be added to this column of
subtotal to: field. data.
8. Click the [OK] button. The subtotals are added to the data set
along with the Outlining tools.
9. Examine the data. You can now see the total sales by each rep
in the Price column as well as the grand
total of all sales.
10. Click the Data Tab, in the Outline You will now add more information to
Group, click the [Subtotal] button. the data set that did not exist before. The
Subtotal dialog opens.
11. Click the drop-down for the At each Subtotals will be added for each sales rep
change in: field and choose Sales Rep. within the Sales Rep column.
12. Set the Use function: field to Count. This function will count the number of
sales each rep has made.
13. Check the Price checkbox in the Add The count of sales will be added to this
subtotal to: field. column of data.
15. Click the [OK] button. The counts are added to the data set.
16. Examine the data. You can now see the sales counts by each
rep in the Price column as well as the total
count of all sales.
17. Click the number [1] button in the Only the grand totals are displayed.
horizontal outlining buttons.
18. Try the other outline number buttons to Groups of data are displayed depenent on
see how the data set is grouped. the numbered level chosen.
19. Click the number [4] button in the All the data is displayed.
horizontal outlining buttons.
20. Click the Data Tab, in the Outline The Subtotal dialog opens.
Group, click the [Subtotal] button.
21. Click the [Remove All] button and then All subtotals and outlining are removed
click [OK]. from the data set.
22. Click into any cell in the Course Name This will now be the column used to break
column. the data on with the subtotaling tool.
23. Click the Data Tab, in the Sort & Filter The data is resorted.
Group, click the [Sort A to Z] button.
24. Click the Data Tab in the Outline Group, The Subtotal dialog opens.
click the [Subtotal] button.
25. In the Subtotal dialog, click the drop- Subtotals will be added for each course
down for the At each change in: field name within the Course Name column.
and choose Course Name.
26. Leave the Use function: field as Sum. This is the function that will be used by the
subtotaling feature.
27. Check the Price checkbox in the Add Totals will be added to this column of
subtotal to: field. data.
Excel 2019: Level 3, Rel. .0, 11/11/2019
Lesson 4: Outlining, Subtotals, and Consolidation, Page 109
Action 4.3 - Subtotaling, continued
2. Open the following files from the lessons You will be consolidating each city file into
folder: one regional summary.
Report.xlsx
Columbus.xlsx
Dayton.xlsx
Detroit.xlsx
4. Click the View Tab, in the Window The Arrange Windows dialog opens.
Group, click the [Arrange All]. button.
5. Make sure the Windows of active This tiles the workbooks so that you can
workbook checkbox is not checked, and see them all at the same time.
click [OK].
6. Activate the Regional Summary sheet in This will be where the consolidated data
the Report file and click into cell A1. will be placed.
7. Click the Data Tab, in the Data Tools The Consolidate dialog opens.
Group, click the [Consolidate] button.
15. Click the checkbox to Create links to This will dynamically connect the source
source data. files to the consolidated data.
17. Click the [Expand] button to the left Widen the columns if necessary to see all
of Week1 to show the detail for the the data source information.
summary data.
Lesson 5: Analytical
Tools
Lesson Overview
Goal Seek Goal Seek is a useful analysis tool provided by Excel. With
Goal Seek, Excel will find a value for a specified cell that makes
a given worksheet formula equal to a value that you define. In
other words, you can set a formula to a value (goal) that you
would like to attain, and then specify one of the cells that the
formula references as a cell that Excel can adjust in order to reach
the goal.
Goal Seek, The active cell shows in the Set cell: field.
continued If that isn't the cell where the goal will be displayed,
change it.
In the To Value: field, type the goal you want to get to.
In the By changing cell: field, type the cell reference that
needs to change in order to calculate the answer.
Click [OK].
The Goal Seek Status dialog is displayed and reports
that a solution has been found. The cells in the
spreadsheet have changed to solve the problem.
3. Select cell D4 on the Loan Seek This cell contains a payment function
worksheet and examine the formula in formula that uses cell B5 for the interest
the Formula Bar. rate divided by 12 (this value must be
divided by 12 since this calculates monthly
payments); cell B4 defines the number of
payments (if this value was in year then
the value would have to be multiplied by
12); the -B3 is a negative value since this is
money which is owed.
4. On the Data Tab, in the Forecast Group, The What-If analysis options are
click the [What-If Analysis] drop-down displayed.
button.
13. Choose Goal Seek for the options in the The Goal Seek dialog opens.
menu.
17. Click the [OK] button. The Goal Seek Status dialog opens.
18. Click the [OK] button. The value in the cell B4 is updated to
reflect the results of the Goal Seek.
Data Tables While the Goal Seek is good for looking at a single variation the
Data Table is a more useful tool for seeing a wider set of variables
in relation to a PMT function. Data Tables are a range of cells
showing the results of substituted values of a formula. They are
used in situations where you want to perform "what-if" analysis
to see how changing certain values in your formulas effects the
results of the formulas. By using Data Tables you can calculate all
of the variations in one operation which will save many hours of
work.
Excel offers two types of data tables: one-input tables and two-
input tables.
Formula
Select the range beginning with the cell above the
input values through the cell to the right of the last
input value.
Select the Data Tab.
In the Forecast Group, click on the [What-If Analysis]
button drop-down.
Select Data Table from the menu.
2. Make the Loan Tables worksheet active. Click the Loan Tables worksheet tab.
3. Select cells B11:K12. This cell range is where you will create a
row one input data table.
5. Choose Data Table from the menu. The Data Table dialog opens.
6. Click in the Row input cell: field and the Since the selected cell range has a range of
click in cell B5. variable interest rates running across one
row, you will use the Row input cell: field
in this example.
8. Select cell B15:C31. This cell range is where you will create a
column one input data table.
10. Choose Data Table from the menu. The Data Table dialog opens.
11. Click in the Column input cell: field and Since the selected cell range has a range of
the click in cell B4. variable interest rates running down one
column, you will use the Column input
cell: field in this example.
12. Click the [OK] button. The monthly payments are calculated
according to the variable number of
months in cells B16:B31.
14. Make the SimpleMathTable worksheet This worksheet will be used to convert
active. one currency into another using a simple
formula with cell references.
16. Examine the formula in C5. This cell has simple formula to convert the
current amount to another amount based
on currency conversion values.
17. Select cells C4:I5. This is where the data table will be
created.
19. Choose Data Table from the menu. The Data Table dialog opens.
20. Click in the Row input cell: field and the This cell represents the exchange rates in
click in cell C2. cells D4:I4.
21. Click the [OK] button. The conversion rates are calculated
according to the variable interest rates in
cells D4:I4.
Variable
months
values to
replace the
term value
in PMT
function
Data Tables, The Row input cell: field will be the Rate cell reference
continued in the PMT formula.
The Column input cell: field should be the Term cell
reference in the PMT formula.
Click [OK].
3. Select cells G15:P31. These cells will be used to create the two
input data table showing how changes in
the interest rate and length of the loan will
affect the monthly payments.
5. Choose Data Table from the menu. The Data Table dialog opens.
6. Click in the Row input cell: field and the This will define the interest rate variables.
click in cell B5.
7. Click in the Column input cell: field and This will define the number of months to
the click in cell B4. repay the loan.
Showing Scenarios
Click the Data Tab.
Click the [What-If analysis] button drop-down in the
Forecast Group.
Choose Scenario Manager from the menu.
The Scenario Manager dialog opens, any existing
Scenarios are displayed in the Scenarios: field.
3. Activate the Manual Scenario worksheet. Click the Manual Scenario worksheet tab
if necessary.
5. Select Scenario Manager from the menu. The Scenario Manager dialog opens. This
file has no scenarios yet so none are listed.
6. Click the [Add] button. To create the first scenario. The Add
Scenario dialog opens.
7. Click into the Scenario name: field and This will be the name of the scenario when
type in; complete.
<Original>.
8. Click into the Changing cells: field and This are the cells that can be altered in this
then select cells B7:C7 hold the [Ctrl] key and other scenarios to allow changes.
and click cell G7.
9. In the Comment: field type in; This is not required but never hurts to see
<These are the current figures>." the comments to know which scenario you
will choose to show later on.
10. Click the [OK] button. The Edit Scenario dialog opens, showing
the cells that can be changed along with
the values in those cells.
11. Leave the values as they are and click the Since this is the original scenario, no
[OK] button. changes should be made. The Scenario
Manger dialog is re-displayed.
12. Click the [Add] button. The Add Scenario dialog opens again.
17. Try adding another Scenario choosing Name this Scenario 'Third Location".
your own values.
20. Select Scenario Manager from the menu. The Scenario Manager is displayed,
showing the saved Scenarios.
21. Choose the Second Location scenario and The values change in accordance to the
click the [Show] button. Scenario being shown.
Removing Scenarios
Open the Scenario Manager dialog.
Select the unwanted Scenario.
Click the [Delete] button
Click the [Close] button to close the Scenario Manager
dialog.
3. Select Scenario Manager from the menu. The Scenario Manager dialog opens.
4. Select the Third Location Scenario and The Edit Scenario dialog opens.
click the [Edit] button.
8. Select the Third Location Scenario and The Third Location Scenario values are
click the [Show] button. shown in the worksheet.
10. Select Scenario Manager from the menu. The Scenario Manager dialog opens.
11. Select the Third Location Scenario and The Third Location Scenario is removed
click the [Delete] button. from the list of available Scenarios.
12. Click the [Close] button. The Scenario Manager dialog closes.
Solver The Solver is an Excel add-in program, used for what-if analysis.
When you need to calculate to an optimal (maximum or
minimum) value for a formula in one cell use the Solver to find
the desired value. This is similar to the Goal Seek but offers
new levels of control by allowing you to set constraints to the
variables used to determine the desired value. Solver adjusts the
values in the variable cells in accordance with the limits defined
by constraints in order to meet the desired result.
The Solver must be enabled from the Excel Add-ins before you
can access it.
In the example being used here, we will be trying to find the best
options in order to reduce rental costs while working within q set
of constraints.
Solver, Click into the Set objective: field and select the cell
continued containing the final output formula.
Set the To: radio buttons to the desired objective.
Max- will return the highest value
Min- will return the lowest value
Value of- allows you to define a specific value.
The By Changing Variable Cells: field, allows you to
select which cells can be modified in order to return
the desired value.
The Subject to the Constraints: field is empty at first.
When there are limits or constraints you need to add to
the Solver click the [Add] button.
The Add Constraint dialog opens.
2. Select Options from the right side of the The Options dialog opens. You could also
Backstage view. use the ALT F T sequential keyboard short
cut.
3. On the left side of the window click the The Add-ins set of options are displayed in
Add-ins category. the main screen area.
4. In the Manage: drop-down make sure This should be the default selection, if not
that Excel Add-ins is selected and click the then use the drop-down and select it. The
[Go] button. Add-ins dialog opens.
5. In the Add-ins dialog check the Solver This is the specific Add-in you are adding
Add-in checkbox to Excel.
8. Notice the new Analysis Group on the The Analysis Group gives access to the
right side of the Data Tab. Solver tool.
2. Make the Solver Scenario worksheet Click the Solver Scenario worksheet tab.
active.
4. Select Scenario Manager from the menu. The Scenario Manager dialog opens.
5. Click the [Add] button. To create the first scenario. The Add
Scenario dialog opens.
6. Click into the Scenario name: field and This will be the name of the scenario when
type in; complete.
<Original>
7. Click into the Changing cells: field and This are the cells that can be altered in this
then select cells B7:C7 hold the [Ctrl] key and other scenarios to allow changes.
and click on cells E7 and G7.
9. Leave the values as they are and click the The Scenario Manager dialog is re-
[OK] button. displayed.
10. Click the [Close] button. The Scenario Manager dialog closes.
11. On the Data Tab, click the [Solver] The Solver Parameters dialog opens.
button drop-down in the Analysis
Group.
12. Click into the Set objective: field and This cell contains the formula used to
then select cell B1. return the monthly rental of an office
space.
13. Click the Value of: radio button and This represents the desired target value, by
enter < 7000 > in the Value field. choosing a target value the solver acts very
much like the Goal Seek.
15. Click the [Add] button in the Subject to The Add Constraint dialog opens, where
the Constraints: area of the dialog. limits to the modifications Solver can make
in the variable cells.
16. In the Cell Reference: field enter B7, This will define the top amount to be paid
Set the Operator to <=, per square foot. Clicking the [Add] button
in the Constraint: field enter B16, will add the constraint and clear the field
then click the [Add] button. so you can add the next constraint.
17. In the Cell Reference: field enter B7, This defines the lowest amount to be paid
Set the Operator to >=, per square foot.
in the Constraint: field enter B17,
then click the [Add] button.
18. In the Cell Reference: field enter C7, This defines the largest size of the space.
Set the Operator to <=,
in the Constraint: field enter B11,
then click the [Add] button.
19. In the Cell Reference: field enter C7, This defines the smallest size of the space.
Set the Operator to =>,
in the Constraint: field enter B12,
then click the [Add] button.
20. In the Cell Reference: field enter E7, This sets the maximum number of rooms
Set the Operator to <=, the space should have.
in the Constraint: field enter B13,
then click the [Add] button.
21. In the Cell Reference: field enter E7, This sets the minimum number of rooms
Set the Operator to >=, the space should have.
in the Constraint: field enter B14,
then click the [Add] button.
23. In the Cell Reference: field enter G7, This sets an exact amount for the
Set the Operator to =, maintenance fees. Since you are done
in the Constraint: field enter <500>, adding all the constraints, clicking the
then click the [OK] button. [OK] button returns you to the Solver
Parameters dialog.
24. Examine the constraints now listed in the
Subject to the Constraints: field.
25. Click the [Solve] button. The Solver Results dialog opens.
26. In the Solver Results dialog check the The Save Scenario dialog opens.
Return to Solver Parameters Dialog
checkbox and click the [Save Scenario]
button.
27. In the Save Scenario dialog, click into the The Scenario is named and saved, the
Scenario Name: field and enter Solver Results dialog is re-displayed.
"7000 target" and click the [OK] button.
28. Click the Restore Original Values radio By choosing this radio button option the
button and then click the [OK] button. original values are put back into place and
the Solver Parameters dialog is re-displayed.
29. Select the $G$7=500 constraint and click The Change Constraint dialog opens.
the [Change] button.
30. Change the value in the Constraint: The constraint has been edited and the
field from 500 to 400 and click the [OK] Solver Parameters dialog is re-displayed.
button.
31. Click the [Solve] button. The Solver Results dialog is displayed.
32. Click the [Save Scenario] button. The Save Scenario dialog opens.
33. In the Save Scenario dialog, click into the A third scenario is saved and the Solver
Scenario Name: field and enter Results dialog is re-displayed.
< 7000 target 2 > and click the [OK]
button.
Excel 2019: Level 3, Rel. 1.0, 11/11/2019
Lesson 5:: Analytical Tools, Page 145
Action 5.7 - Using the Solver, continued
Forecasting When the data you are working with has historical time-based
data, Excel can be used to create forecasts without having to
generate a chart. Creating a forecast will add a new worksheet
containing a table of the existing data and predicted values along
with a chart of the table data. Forecasts help predict future trends
based on the existing data.
The timeline
requires
The structure of the data can be either vertically or horizontally
consistent
intervals between its laid out when using the Forecast feature. As long as one column
data points. or row has time based data, you are able to create and forecast
the data as far into the future as needed. When creating the
Forecast you can choose from either a Line or Bar chart.
Forecasting, The Forecast Start: field allows you to set the date
continued when the forecast is to begin. If you set the date prior
to the end of the historical data only data prior to the
start date in the prediction is calculated.
The Confidence Interval checkbox shows or hides the
confidence interval. The forecasted values should be
within the range set in the Confidence Interval: field.
Note: The default value is 95%
If your data
is seasonal,
then starting
a forecast before the Confidence
last historical point is Intervals
recommended.
3. Activate the Vertical Data worksheet. Click the Vertical Data worksheet tab if
necessary.
4. Click any cell containing a value. Excel will automatically expand the
selection when the [Forecast Worksheet]
button is clicked.
5. On the Data Tab, in the Forecast Group, The the Create Forecast Worksheet dialog
click the [Forecast Worksheet] button. opens.
6. Click the date picker for the Forecast The preview shows the forecast going
End: field and set the date to forward to June 1, 2018. As the Forecast
December 1, 2018. End is redefined the preview adapts to
show the changes.
7. Click the [Create] button. A new worksheet is added to the file with
a table and chart.
8. Select the new sheet and examine it. The table shows the total column of
the source data was used to generate
the forecast. It also shows the existing
historical data and then forecasted data
in the Forecast column, also added are
columns showing the forecasted lower and
higher values.
9. Delete the new worksheet. Right-click the new worksheet tab and
choose Delete from the menu.
11. Activate the Horizontal Data worksheet. Click the Horizontal Data worksheet tab.
15. Click the [Create] button. The new worksheet with forecasting is
added to the workbook.
16. Examine the new worksheet and the This time the utilities row was used as
delete it. the data for the forecast and the chart is a
column chart.
17. Activate the Vertical Data worksheet. Click the Vertical Data worksheet tab if
necessary.
19. On the Data Tab, in the Forecast Group, The Create Forecast Worksheet dialog opens.
click the [Forecast Worksheet] button.
21. Set the Forecast Start: field to The forecasting will start from an
June 1, 2017. overlapped position.
22. Change the Confidence Interval to 50%. The Confidence Interval lines in the
preview are brought closer together.
23. Set the Value Range: field to; Instead of forecasting the totals column
Vertical Data'!$B$5:$B$29. of data you will now be forecasting the
utilities column of data.
24. Click the [Create] button. The new worksheet is added to the
workbook.
25. Examine the new worksheet.
Appendix A: The
Default Workbook and
Theme
Lesson Overview
The Default In addition to Themes, there are other formatting options that are
stored in their individual style galleries, which are all stored in
Workbook the default workbook. The default workbook is the template that
is used for all new workbooks.
If you want to make the styles that you create in or copy into a
workbook available in all future workbooks, you can save them
in the default workbook.
The Default If the two workbooks contain styles with the same names, you
will see a message asking whether you want to merge these
Workbook, styles.
continued
To replace the styles in the active workbook with the copied
styles, click [Yes].
8. Click [OK].
9. Move the logo so that it rests in cells There is no need to resize the logo.
A3:A6.
10. Insert a hyperlink to The Computer Right-click on the graphic and select
Workshop on the TCW logo. Hyperlink.... Then in the Address: field,
type: www.tcworkshop.com
11. On the Format Picture Tools Tab, apply Fourth from the left in the top row of the
the Drop Shadow Rectangle style from the gallery.
Picture Styles gallery.
12. Using the Developer Tab, insert a Macro Click on the [Insert] button on the
Button Form Control to print the Developer Tab. Select the Button tool
worksheet. Name the macro and the and draw a button in cells A1 and B1.
button Print Worksheet. When the Macro dialog box opens, type
PrintWorksheet in the Name: field and
click the [Record] button. Select the File
Tab, Print, and click [Print]. Click the
[Stop Recording] button on the Developer
Tab.
19. Change the Save as type: to Excel Be sure to complete this step before
Template (.xltx). changing the file type. When the file
type is changed to Excel Template (.xltx),
the Save As location will default to the
Templates folder.
20. Change the File name: to book. Making the filename Book and the Save
As type: Template should create a new
default workbook template.
23. Create a new workbook. Observe that the new workbook has the
button and logo you created.
24. Click on the File Tab and select Print. Notice the header and footer in the Print
Preview.
Excel Styles With the advent of Excel 2007, a new standard of formatting
was developed involving styles. All of the Office products now
incorporate Themes in formatting documents, workbooks and
presentations. A Theme is a combination of fonts, styles and
colors used in the active workbook.
The default Office Theme includes the colors you see in the
current font and fill drop-down galleries.
These are also the colors that appear in the series representation
when you create a chart.
Excel Styles, By using the Page Layout Tab, you can see which colors will be
continued applied, when you can view or change the current color palette,
and also view or change the Theme.
4. Select the Marquee color palette. Notice the colors changed on the Chart,
PivotTable, Slicer, and the Table.
10. Click on the [Colors] button in the We will use custom colors not found on
Themes Group of the Page Layout Tab. the palette.
20. Select TCW from the Custom section of The PivotTable and PivotChart should
the list. now be formatted with the custom TCW
colors.
Appendix B: Querying
a Website with Excel
2016
Lesson Overview
Querying Data Excel 2016 offers a set of querying tools in the new Get &
Transform Group on the Data Tab. While the new Power Query
from a Web Site and Power Pivot tools are outside the scope of this book, we will
be examining how to use the New Query to gather information
from websites.
New Group
Enter the web address into the URL field and click the
[OK] button.
3. Select cell A1, and copy it. [Ctrl+C] or right click and choose Copy
from the menu.
4. Click the Data Tab, in the Get & The list of Queries are displayed.
Transform Group, click the [New
Query] drop-down button.
5. In the [New Query] drop-down, choose The From Web dialog opens.
From Web from the Other Sources
submenu.
6. Click into the URL field and paste the [Ctrl+V] or right click and choose Paste
copied link. from the menu.
8. From the Display Options area select the To select the table from this web page to
Live Currency table. connect to. A preview of the data in that
table is displayed on the right side of the
Navigation dialog.
9. Click the Web View tab. The preview now shows what the table
looks like on the site.
10. Click the back to the Table View tab. The preview shows s simple table view.
11. Click the [Load] button. The data from the selected table is added
in cell A1 of a new worksheet.
This tab is
a contextual
tab and is only
displayed when the
table or a cell within
the table is actively
selected.
Editing the Table
Click the [Edit] button in the Edit Group on the Query
Tab.
The (Table Name) Edit Query dialog opens.
To see how the changes will affect the table click the
[Refresh Preview] button in the Query Group on the
Home Tab of the Query Editor dialog.
When all changes are completed, click the [Close &
Load] button in the Close Group on the Home Tab of
the Query Editor dialog.
2. Click any cell in the data table that was To make the data table active and display
just added to the workbook. the Query Tab in the ribbon.
4. In the Edit Group, click the [Edit Query] The Query Editor dialog opens.
button.
7. Click the first column header in the This column will be split into two separate
preview. columns.
8. In the Transform Group, click the [Split The Split Column by Delimiter dialog opens.
Columns] button drop-down and choose
the By Delimiter option.
9. Choose Custom from the Select or enter A new blank field is added below the
delimiter field drop-down. Select or enter delimiter filed.
10. Click into the new field and type in: This character is used to divide the two
< / >. currencies in the column and will now be
used as the marker for spliting the column
into two.
11. Click the Advanced options arrow. New options relating to how the columns
can be split are displayed.
12. Examine the available options.
13. Click the Advanced options arrow. The advanced options are collapsed.
14. In the Applied Step field of the Query The Split Columns action is undone and
Settings pane, select the Split Columns by the column is recombined. You may need
Delimiter step and click the [X] button. to remove the Changed Type 1 step before
the Split Columns by Delimiter.
Excel 2019: Level 3, Rel. 1.0, 11/11/2019
Appendix B: Querying a Website with Excel 2016, Page B10
Action 3.7 - Editing the Query, continued
16. Click the [Refresh] button in the Load The data in the table is updated based on
Group on the Query Tab. the information from the web site.
Appendix C:
2016-Sharing and
Linking Workbooks
Lesson Overview
You can run existing macros and you can record shared
workbook operations into a macro stored in another unshared
workbook. However, you cannot, write, record, change, view or
assign macros.
On this tab, you can specify how many days to keep track of
changes to the workbook, when to update changes, and how to
resolve conflicts.
3. On the Review Tab, in the Changes The Share Workbook dialog opens.
Group, click on [Share Workbook]
button.
4. Check the checkbox to Allow changes by If this remains un-checked the file will not
more than one user at the same time. be shared.
5. Click on the Advanced Tab If the Allow changes by more than one user
at the same time is un-checked, all options
are greyed out.
6. In the Keep change history for: field The default number of days the history is
change the number of days to 45. kept is 30.
9. Click [OK] in the Alert dialog to save the The file is saved as a shared workbook.
workbook.
10. Activate the Insert Tab. Since the file has been saved as a shared
workbook most of the options on the tab
are greyed out.
Tracking When you first set up a workbook for sharing, you will see an
option for keeping the change history for the workbook under
Changes, the Advanced Tab in the Share Workbook dialog.
continued
This option is selected by default. If you select Don’t keep changes,
you will not be able to track the changes to the shared workbook.
3. Choose Highlight Changes from the list. The Highlight Changes dialog opens.
4. Check the Track Changes while editing If the workbook has not already
checkbox. been shared, checking this checkbox
automatically shares the workbook.
5. Check the When: checkbox and leave the Any change made since you last saved the
field as Since I last saved. file will be highlighted.
6. Check the Who: checkbox and leave the Changes made by any user of the file will
field as Everyone. be highlighted.
7. Check the Highlight changes on screen As changes are made they are highlighted
checkbox. with a blue border and triangle in the
upper left corner of the cell.
8. Click the [OK] button. The Highlight Changes dialog is closed and
Tracking is turned on.
9. Select cell B3 and change the value to: The cell is highlighted.
<26562>.
10. Select cell C3 and change the value to: The cell is highlighted.
<45254>.
14. Choose Highlight Changes from the list. The Highlight Changes dialog opens.
16. Check the List changes on a new sheet This will add a new worksheet to the file,
checkbox. detailing the change history.
17. Click the [OK] button. The Track Changes dialog closes and a
History worksheet is added to the file.
19. Examine the History sheet. Information about the changes to the file
are listed. The last two columns are blank
since no review of the changes has been
done yet.
21. Reopen the MyProductionTotals.xlsx [Ctrl+O]. Notice that the changes are not
file. highlighted and the History sheet is no
longer part of the workbook.
22. On the Review Tab, in the Change You will turn Track Changes back on.
Group, click the [Track Changes] button
drop-down.
23. Choose Highlight Changes from the list. The Tack Changes dialog opens.
24. Check the When: checkbox and select All This will show all changes again.
from the field drop-down.
25. Check the List changes on a new sheet This will add the History worksheet to the
checkbox. files again.
26. Click the [OK] button. The Track Changes dialog closes. All
changes are highlighted and the History
worksheet is added to the file.
If you select the Ask me which changes win option, you will see
a Resolve Conflicts dialog when you try to save a shared file that
has a conflict. In the Resolve Conflicts dialog, you can choose what
version of the conflicting cells to keep. When a conflict of this
kind occurs, the last user to save the shared workbook will see
the Resolve Conflicts dialog and have the choice of what to keep.
If you select the Changes being saved win option button, the
changes made by the user that saves last will be implemented.
When you try to save the changes you made, the following dialog
will appear.
Resolving Here you can see the conflict in terms of the change that you
made and the change that Lisa made. You can click the [Accept
Conflicts, Mine] button, to implement the change that you made, or
continued you can click the [Accept Other] button, to implement the
change made by the other user. If you wish, you can resolve
all conflicting changes by clicking the [Accept All Mine] or the
[Accept all Others] button. [Accept All Mine] will resolve the
conflicts by implementing your cell values. [Accept All Others]
will resolve the conflicts by implementing the data entries made
by other users.
Here you can see that a user named Brian and a user named Lisa
are currently working on the shared workbook.
If you click the [Remove User] button, you will see the following
alert.
When you click [OK], the user that you selected will be removed
(disconnected) from the shared workbook. Any unsaved work
that they have done will be lost.
Not Yet Reviewed means that all changes that have not yet been
accepted or rejected will be subject for review.
Click [OK].
The Accept or Reject Change dialog opens.
4. Choose Highlight Changes... from the The Highlight Changes dialog opens.
menu.
5. Set the When: field to All from the menu. This will display all changes made to the
file since Track Changes was turned on.
8. Choose Accept/Reject Changes from the The Select Changes to Accept or Reject dialog
menu. opens.
9. Set the When: field to Not yet reviewed The Accept or Reject Changes dialog opens
and click [OK]. showing the first change information.
10. Select the middle option from the list and Since this cell has had several changes
click the [Accept] button. made to it, there is a list of changes in the
Select a value for cell B3: field. The first
change is accepted and the next change is
displayed in the Accept or Reject Changes
dialog
11. Click the [Reject] button to reject the The original values are re-entered into the
change. cell and the next change is displayed.
12. Click [Accept All] button. All the other changes to the file are
accepted at once and the Accept or Reject
Changes dialog closes.
16. Click [OK]. The Highlight Changes dialog closes and the
History sheet is added to the workbook.
17. View the History sheet. The new worksheet lists all changes and
their status.
18. Activate the Input worksheet. Notice that only accepted changes are
highlighted on the worksheet.
3. Click on the [Protect and Share The Protect Shared Workbook dialog
Workbook] button in the Changes opens.
Group.
The Password: field is active.
4. Check the Sharing with track changes
checkbox to turn on Sharing with track
changes.
16. Click the [OK] button. The Unprotect Sharing dialog closes.
Modify tables
Add or remove table rows and columns L-2
Configure table style options L-2
Insert and configure total rows L-2
TCW BOOK Filter and sort table data
CODES Filter records L-2
Sort data by multiple columns L-2
Excel Level 1 L-1
Excel Level 2 L-2
Excel Level 3 L-3 Insert references
Excel Formulas FM Insert relative, absolute, and mixed references L-1
Excel Data Analysis DA Reference named ranges and named tables in
Excel Charts CH L-2
formulas
Excel PivotTables PT
Excel Data Analysis with
PowerPivot PPT
Calculate and transform datas
Perform calculations by using the AVERAGE(),
L-1
MAX(), MIN(), and SUM() functions
Count cells by using the COUNT(), COUNTA(),
DA
and COUNTBLANK() functions
Perform conditional operations by using the
FM
IF() function
Create charts
Create charts L-2 / CH
Create chart sheets L-2 / CH
Modify charts
Add data series to charts L-2 / CH
Switch between rows and columns in source
L-2 / CH
data
Add and modify chart elements L-2 / CH
TCW BOOK
CODES
MICROSOFT OFFICE EXCEL
Excel Level 1 L-1
EXPERT EXAM MO-201
Excel Level 2 L-2
Excel Level 3 L-3 Manage workbooks
Excel Formulas FM Copy macros between workbooks L-3
Excel Data Analysis DA Reference data in other workbooks L-3
Excel Charts CH Enable macros in a workbook L-3
Excel PivotTables PT Manage workbook versions L-2
Excel Data Analysis with
PowerPivot PPT
Prepare workbooks for collaboration
Restrict editing L-2
Protect worksheets and cell ranges L-2
Protect workbook structure L-2
Configure formula calculation options FM
Manage comments L-2