Microsoft Excel 2016 Step-By-Step Guide
Microsoft Excel 2016 Step-By-Step Guide
GUIDE
Table of Contents
INTRODUCTION .................................................................. 4 SORTING DATA .................................................................... 33
Custom Sort ................................................................ 34
EXPLORING THE EXCEL 2016 ENVIRONMENT ...................... 5
Add a Sort Level .......................................................... 35
TITLE BAR............................................................................. 5 USING A FORMULA TO CALCULATE OUR SAVINGS ........................ 36
QUICK ACCESS TOOLBAR ......................................................... 5 PRECEDENCE OF OPERATIONS ................................................. 36
RIBBON ................................................................................ 6 CONDITIONAL FORMATTING ................................................... 38
Active Tab ..................................................................... 6 COMMENTS......................................................................... 40
Contextual Tabs............................................................ 6 MANAGING WORKSHEETS...................................................... 43
Groups and Buttons...................................................... 6 Copying a worksheet................................................... 43
Buttons with Arrows ..................................................... 7 Renaming a worksheet ............................................... 43
Dialogue Box Launcher ................................................. 7 Moving worksheets ..................................................... 44
Ribbon Display Options button..................................... 8 Tab Color ..................................................................... 45
Dynamic Resizing ......................................................... 9 Inserting worksheets ................................................... 45
File Tab ....................................................................... 10 REFERENCING DATA ON ANOTHER WORKSHEET .......................... 45
WORKSPACE ....................................................................... 11 DATA ENTRY TIPS ................................................................. 46
Status Bar ................................................................... 12 Auto fill and resize multiple columns to same width .. 46
Current Information ................................................... 12 Copy and Paste between worksheets ......................... 46
Views .......................................................................... 12 Entering a worksheet reference .................................. 46
Zoom Slider................................................................. 12 AutoSum and fill formula ............................................ 47
Customization ............................................................ 12 Line Break within a cell ............................................... 48
EXCEL CURSORS ................................................................... 13 Wrapping text ............................................................. 48
ENTERING A FUNCTION – AVERAGE.......................................... 48
CREATING AN EXCEL DOCUMENT AND SAVING IT ............. 14
FREEZE PANES ..................................................................... 49
CREATING AN EXCEL FILE ....................................................... 14
SAVING A WORKBOOK IN DIFFERENT FORMATS ............... 50
PREPARING A SAVE TO LOCATION – A USB DEVICE..................... 14
SAVING THE FILE .................................................................. 15 OLDER EXCEL FILE FORMAT (.XLS) ........................................... 50
SAFE REMOVAL OF A USB DEVICE ........................................... 17 PDF .................................................................................. 51
CREATING A SIMPLE BUDGET SPREADSHEET..................... 19 CREATING A CHART ........................................................... 53
MERGE AND CENTER CELLS.................................................... 19 INSERT A CHART ................................................................... 53
ENTER DATA AND NAVIGATE BETWEEN CELLS ........................... 20 SELECT DATA FOR CHART ........................................................ 53
FORMAT CELLS .................................................................... 20 FORMAT THE CHART .............................................................. 54
RESIZE COLUMN .................................................................. 20
PRINTING A WORKSHEET .................................................. 56
Using the ribbon ......................................................... 21
Double-click Method .................................................. 21 VIEWING THE PREVIEW.......................................................... 56
ENTER MORE DATA AND RESIZE COLUMNS ............................... 22 SCALING A PRINTOUT............................................................. 57
APPLY CURRENCY STYLE FORMATTING ..................................... 23 CHANGING ORIENTATION OF A PRINTOUT.................................. 57
ENTER A SIMPLE FORMULA .................................................... 23 CREATING A HEADER AND FOOTER FOR A PRINTOUT .................... 59
USE A FUNCTION ................................................................. 24 PRINTING COMMENTS ........................................................... 60
USE THE MOUSE TO EXPRESS A RANGE OF CELLS ....................... 25
LINKING WORKBOOKS ...................................................... 61
AUTOSUM.......................................................................... 25
ADD DATA TO A FORMATTED COLUMN .................................... 26 REFERENCING DATA FROM AN EXTERNAL WORKBOOK ................. 61
SPELL CHECK ....................................................................... 26 MANAGING LINKED WORKBOOKS............................................ 62
ENHANCING THE BUDGET SPREADSHEET .......................... 27 NUMBER FORMATS (SUPPLEMENTAL) .............................. 63
CELL REFERENCING............................................................... 27 FORMATTING AS TEXT ........................................................... 63
ADDING COLUMNS............................................................... 28 FORMATTING AS PERCENTAGE ................................................ 64
COPY A FORMULA FROM ONE CELL TO ANOTHER ....................... 28 FORMATTING DATES ............................................................. 64
WHAT THE ##?? ................................................................. 29
FILTERING (SUPPLEMENTAL CONTENT) ............................. 66
ENTER A NEW FORMULA AND COPY TO OTHER CELLS ................. 29
FORMULAS VIEW ................................................................. 30 INTRODUCTION .................................................................... 66
ADDING ROWS .................................................................... 31 FILTERING DATA ................................................................... 66
MOVING ROWS AND COLUMNS .............................................. 31 To Filter Data .............................................................. 66
TRACE ERRORS .................................................................... 32 To Add Another Filter .................................................. 68
Andrea Philo
Mike Angstadt
4. Click the Customize Quick Access Toolbar button again and select Show Below the Ribbon. This
repositions the toolbar to be below the ribbon.
5. Note that when the toolbar is below the ribbon, its customize button is very difficult to see, due to
its white color.
6. Move the Quick Access Toolbar back above the ribbon by clicking the customize button and
selecting Show Above the Ribbon.
Ribbon
The ribbon contains all of the tools that you use to interact with your Mention Handout 1
Microsoft Excel file. It is located at the top of the window. All of the
programs in the Microsoft Office suite have one.
The ribbon has a number of tabs, each of which contains buttons, which are organized into groups.
Try clicking on other tabs to view their buttons (do not click the File tab yet), and then return to Home
tab.
Active Tab
By default, Excel will open with the Home tab active on the Ribbon. Note how the Active tab has a
white background, and the Inactive tabs have the opposite.
Contextual Tabs
Contextual tabs are displayed when certain objects, such as an images and charts, are selected. They
contain additional options for modifying the object. Contextual tabs stand out because they are darker
in color and are located to the right of all the other tabs. As soon as we start being productive in the
program, we will see contextual tabs appear.
Show Slide 6
Switch to Excel
Groups and Buttons
On each tab, the buttons (a.k.a. commands or tools) are organized into Groups. The groups have
names, but the names are not clickable.
Hover over some active buttons on the Home tab to observe ScreenTips. The ScreenTips display the
name of the button, along with a short description of what the button does.
3. Click Auto-hide Ribbon. This option essentially makes Excel go into “full screen” mode. It hides
not only the ribbon, but also the Quick Access Toolbar, title bar, and Window Controls.
4. To get the ribbon to show after Auto-hiding it:
a. Point to the top-center of the screen and click. (Clicking the three dots does the same
thing.) The full ribbon can be seen and used. However, as as soon as the body of the
spreadsheet is clicked it will hide again.
b. Click in the middle of the document. Notice how the ribbon hides again.
5. To get a partial display of the ribbon to stay in view:
a. Click the “mini” Ribbon Display Options button on the top right.
b. Click Show Tabs. Note this option has brought back our Quick Access Toolbar, title bar,
Window Controls, and part of the ribbon; only the Tabs are visible. The buttons are not.
c. Click the Home tab. Notice how the buttons come into view.
d. Click in the middle of the spreadsheet. Notice how the buttons disappear again.
Note: A shortcut for changing to the “Show Tabs” view is to double-click the Active Tab. If
the buttons in the ribbon suddenly disappear, then you may have done this by accident.
3. Notice how the buttons look different now. Rest assured, they are still the same buttons.
4. Click the Maximize button to bring the window back to full screen.
File Tab
The File tab provides a Backstage view of your document. Backstage view gives you various options for
saving, opening a file, printing, or sharing your document. Instead of just a menu, it is a full-page view
which makes it easier to work with.
1. Click the File tab.
2. Notice that the Ribbon and the spreadsheet are no longer in view. Note the commands on the left
side of the screen that you use to perform actions TO a document rather than IN a document.
3. Other things you can do in the Backstage view:
a. Click the Info menu option. The Info section of the File tab offers an easy to use interface for
inspecting documents for hidden properties or personal information.
b. Click the New menu option. In this view you can create a new Blank document, or choose from
a large selection of Templates.
c. Click the Open menu option. The Open pane is used to open existing files on your computer.
i. It immediately presents you with a list of documents that you have recently opened, so
you can quickly find and open them again. The computers in the Computer lab have this
feature turned off for privacy reasons.
ii. Clicking OneDrive allows you to open a file that is stored in OneDrive, which is
Microsoft’s internet cloud service.
iii. Clicking Browse opens a File Explorer dialog, which allows you to find the file on your
computer. We will be using this option in class.
d. Notice the two “save” menu options: Save and Save As. There is a difference between these
settings, which we will explain shortly.
4. To return to the spreadsheet from the Backstage view, click the large, left pointing
arrow in the top-left corner of the screen.
Workspace
Open Excel and locate the parts of the Excel window. Show Slide 7
Status Bar
The status bar is located below the document window area.
Current Information
The left end gives current information about the spreadsheet. Excel doesn’t have much information
here.
Views
At the right end are shortcuts to the different views that are available. Each view displays the
spreadsheet in a different way, allowing you to carry out various tasks more efficiently.
Page Layout Shows what your spreadsheet will look like when printed on paper.
Page Break Preview Allows you to add page breaks to your spreadsheet so you can better
control what parts of the spreadsheet are printed on each page.
Zoom Slider
Also at the right end of the Status Bar is the Zoom Slider. This allows you to adjust how large the
spreadsheet is displayed on the screen. It does not adjust the actual size of the text—just how big or
small they are rendered on the screen (like moving a newspaper away from or closer to your eyes).
Why does the Status Bar look empty when there are
so many tools active? (most of the options have
checkmarks next to them)
Many of these tools only appear under certain
conditions. For example, the “Average” and “Count”
tools only appear in the Status Bar when you select
multiple cells that have numbers in them.
2. Notice how Num Lock does not have a check mark next to it. That means this piece of information
is not currently being displayed on the status bar.
3. Click Num Lock to enable it.
a. Notice how the Customize Status Bar menu remains on the screen.
b. Notice how the status bar now contains the words Num Lock. This means that our
keyboard’s Num Lock is currently turned on.
c. Look at the top-right corner of your keyboard and confirm that the Num Lock light is
indeed on.
4. Click Num Lock a second time in the Customize Status Bar menu to turn it off.
5. Click in a clear space to dismiss the Customize Status Bar menu.
Excel Cursors
Show Slide 8
You will encounter many different cursor shapes while using Excel.
Gray = Not unique to Excel Green = Unique to Excel Mention Handout 2
Standard Default cursor shape. Appears when you are pointing at buttons on the
Ribbon.
I-Beam Appears when you are pointing to editable text or to a text box that you can
type into.
Clicking and dragging will move whatever object you are pointing to.
Move
Appears when you point to a cell on your spreadsheet. Clicking and dragging
Box Cross
will select cells.
Fill Handle Appears when you point to the black square in the bottom-right corner of a
selected cell. Clicking and dragging will auto-fill adjacent cells (we will talk
more about auto-fill later).
Appears when you point to a column header. Clicking will select an entire
column.
Select Column
Appears when you point to a row header. Clicking will select an entire row.
Select Row
Appears when you point to the divider line between two column headers.
Resize Column Allows you to resize columns.
Appears when you point to the divider line between two row headers. Allows
you to resize rows.
Resize Row
When we save an Excel document, all the data in that document is collected and saved as a file.
Normally, files are saved on a computer’s hard drive, but due to security restrictions on computer lab
machines, files must be saved on removable storage devices.
For this class, we will be using a USB flash drive to save our work. This flash drive will remain in the lab
between classes.
1. Orient the flash drive as pictured below
2. Notice that there is a slide mechanism on the side to retract the USB connector into the body of
the drive. Slide this all the way to the right to expose the connector.
3. Locate the USB ports on the monitor. The connector will slide into the port only one way with your
name label facing toward you and right-side up.
6. A notification may appear in the bottom-right corner of the screen, asking what you want to do
with the flash drive. Close it by pointing to it and clicking its Close button.
Content Pane
Navigation
Pane
5. When it comes to saving, there are two important things to identify for the computer:
1. The location where the file is going to be saved to.
MC-NPL Computer Lab • 1001 Powell St • Norristown, PA 19401 Page 15 of 83
(610) 278-5100 x141 • [email protected] • www.mc-npl.org
MICROSOFT EXCEL 2016: STEP-BY-STEP GUIDE Revised: 2/20/2020
Note: If you are taking this class from home and do not have a
flash drive, use “Documents” as the location to save your files.
9. Your address field should now read Computer > Kingston E:).
10. Now we need to name our file. Notice that the file name field is located towards the bottom of the
dialogue box.
11. Click in the File Name box and the words will be highlighted. Then enter the word first to name
your file ‘first’.
12. Once we have given the computer a file name and a save location, we are ready to save. At this
point, your Save As dialog box should look like the image below. To save, you will click the Save
button.
13. Your Excel window will still be open but notice the title bar will now show the file name first.xlsx.
6. On most computers, you will then see a confirmation message that the drive is safe to physically
remove from the computer. However, the computers in the lab do not display this message.
7. Occasionally you might forget to close your windows before clicking on the Safely Remove
Hardware icon. In that case a dialog box will appear, saying that the drive cannot be safely ejected
because it is in use. It prompts you to close all your windows and then try ejecting again.
8. Be aware that performing the safely remove step removes the USB device virtually from the
computer. In order to use the drive again however, it must also be physically removed from the
port and re-inserted. Remove your drive from the computer.
Teacher’s note:
The file we create will be saved to the flash drive and named
My Budget. It is always saved no matter when it gets closed.
We are going to explore the functionality of Excel by creating a budget for household expenses.
1. Open Excel.
2. Insert your flash drive. We will save this file at the end of class.
Merge and Center Cells
We are going to put a title for our worksheet in row 1 and we want it to be centered over three
columns.
1. Click cell A1 and take note of the appearance of the buttons on the Formula Bar. Two of them
dimmed, indicating they are unavailable.
3. Note the dark green border around cell A1. This means the cell is selected and ready to accept
data.
6. After typing, commit your content by clicking the check mark on the formula bar.
7. Select cells A1 to C1 by clicking inside the first cell, making sure your mouse
pointer is a white box cross (the selection tool) and holding the left mouse
button down and dragging across to the last cell of the selection area.
8. On the Home tab, in the Alignment group, click the Merge & Center button. (See Figure 1 on
Handout 3)
9. Click in a clear cell to deselect the cells.
Enter Data and Navigate Between Cells
We will be typing content into cells and using two methods to move to adjacent cells.
1. Click in cell A2. Type Item, and tap the Tab key to move to cell B2.
2. In cell B2, type Amount and tap the Tab key to move to cell C2.
3. In cell C2, type Comments.
4. Move to a different cell to commit the content in C2 or, better yet, commit with the check mark.
Format Cells
Formatting can be applied to several cells at one time and can make the cells stand out from the rest of
the cells in the worksheet.
1. Select the A2 through C2 cell range by clicking cell A2, making sure the cursor is the selection tool,
and dragging across to cell C2. The selected cells should be highlighted - although the first cell will
not be so. Note the dark black border around the selected cells.
2. On the Home tab in the Font group, click the Bold button.
3. Change the font size to 12.
4. Find the Fill Color button in the Font group and click the list arrow. Select a light color from
the color choices.
5. Click in a clear cell to view the changes to this range of cells.
Resize Column
Note how the word Comments doesn’t seem to “fit” in the cell. To fix that, we need to widen the
column.
Double-click Method
Another way to resize a column is by double-clicking on the divider line on the column label.
1. Click the Undo button on the Quick Access Toolbar (see Handout 1, Fig 1) to undo our last
operation. Notice how clicking the Undo button changes the column width back to the way it was
before.
2. Point the cursor to the dividing line between the column C label and the column D label.
3. Notice how the pointer turns into an arrow pointing left and right.
Teacher’s note:
For the spellcheck section:
2. Attempt to resize Column A using the point and double-click method. NOTE: This method will not
work if you are still in edit mode in A16 cell.
3. Type the numbers into the cells in Column B using the Enter key to commit your changes and
move to the next cell.
Teacher’s note:
Encourage students to use the number pad on
their keyboard for number entry.
3. Next, type a + (plus) sign and then click in cell B4. Continue to type the + signs and click into the
cells, which will add the value that is in that cell, until you click into the last cell, B10. Do not type
the + sign after clicking in B10.
4. Check your formula for accuracy using Figure 4 on Handout 1. The formula should be:
=B3+B4+B5+B6+B7+B8+B9+B10
5. Click the check mark on the formula bar to see the result, which should be $1340.00.
Use a Function
We are going to use a different method this time to add up the values in B3 through B10. We are going
to use a function, which in Excel is basically a pre-defined formula. The function name tells Excel what
to execute. In this case, we’re going to use a function called SUM.
1. Click the Undo button on the Quick Access Toolbar. Watch what happens to cell B11. The formula
has disappeared, so we can start again.
2. Type an = sign into cell B11. This lets Excel know that you are going to use a function, just as when
you are typing a formula.
3. Next, type SUM. As you type, note that a dropdown list appears with suggestions for which
function you might like to use.
1. Click in B11 and tap the Delete key. Pressing this key clears the contents of the selected cell.
2. On the Home tab in the Editing group, click the AutoSum button (not the list arrow).
3. Note the selection of cells denoted by the “marching ants” and the formula that has been entered
into B11.
4. If the formula is correct, click the check mark on the formula bar.
Tip: You can tell Excel to spellcheck words that are in uppercase by
going to the File tab and clicking Options. Then, navigate to the
“Proofing” section and deselect the appropriate checkbox.
5. Using a cell reference in cell B14 instead of typing in a value will force the value of this cell to be
recalculated whenever any of the referenced cells are changed.
a. Click in the cell B14 (no need to delete its contents)
b. Type a “=”.
c. Click on cell B11.
d. Click the check mark on the formula bar.
Adding Columns
As we think about our spreadsheet design, it is easy to see how we could make the spreadsheet work a
little harder for us. In the first place, the Amount column could represent what we anticipate will be
our expenses during any given month. Some expenses will not change but others such as utilities and
food could vary from month to month. Second, if we add a column where we record our actual
expenses as the bills come in during the month, we could see how those amounts compare to what we
budgeted for them.
1. Change the label in cell B2 from “Amount” to “Budget”.
2. Add a column between column B (Budget) and column C (Comments):
a. Select the column to the right of where you want the new column to insert by pointing to the
column label (A, B, C, e.g.) and clicking on it. In this case, click on C.
b. On the Home tab in the Cells group, click on the Insert button (not on the list arrow).
3. Type Actual into cell C2.
4. Add another column called Difference between column C (Actual) and column D (Comments).
Adjust the column width so the word “Difference” fits inside of the column.
5. Using Figure 3 on Handout 3, type in the numbers in cells C3 to
C10 (do not enter the dollar signs). See Handout 3, Fig. 3
How did Excel know to format the numbers in the new column as currency?
When a new column is inserted, it applies the formatting style of the column to
the left to the new column. In our case, it applied the formatting style of column
B (currency) to the new column.
This tool is not the same as “copy and paste”. It copies the formula, but adjusts the cell references
inside of the formula so that they are relative to the original formula. For example, the formula
=A1+B1 would change to =B1+C1 when filled to the right.
1. Click in cell B11. Take note that the formula bar reads =SUM(B3:B10).
2. Note the lower right corner of cell B11. There is a small black square. That is the fill handle.
3. Point your mouse at the fill handle until the cursor changes to a black cross.
See Handout 2
4. To copy the formula in B11 to C11, maintain the black cross cursor shape as you left click the
mouse and, keeping the mouse button held down, drag to C11. Then let go of the mouse.
5. Click into C11 and note that in the formula bar the cell range has been changed to C3:C10.
2. Keeping the cursor in that location, left-click and hold, then drag to the left to make column C
about half as wide as it was. Release the mouse button to resize the column.
3. Notice that the cell values in column C have changed from numbers to hash marks.
4. Now click into one of the cells in column C that now display as ###. Look in the Formula Bar and
notice that the value is still what you entered previously.
5. Resize column C again using any method, such as double-click, Autofit, or click-and-drag. Once the
column is wide enough, you’ll see the values display properly again.
Enter a New Formula and Copy to Other Cells
Using cell referencing, we are going to enter a formula in D3 to show the difference between what was
budgeted for Rent and what our actual expense was. Try to imagine what the formula should be. If
you’re not sure, consult Figure 4 on Handout 1. After that, we will “fill” the formula down to Row 10.
1. In cell D3 enter =B3-C3. Remember to use cell referencing (clicking into a cell) instead of typing
the cell names. The minus (-) operator will need to be typed.
2. Find the Fill Handle (little black square) in D3, and using the Fill pointer (black cross) fill the
formula from D3 down to D10.
3. Using the same method, fill the formula in C11 to D11.
Teacher’s note:
There is a reason we are filling horizontally from C11 instead of vertically from
D10. It is for the Trace Error section. When populated in this way, D11 does not
get a Trace Error like B11 and C11 do, at which point we tell students to always
double check their formulas by hand.
Formulas View
When designing a spreadsheet it is important to double-check yourself to make sure all your formulas
make sense. In the view of the spreadsheet we have been using (normal view), it is impossible to tell
which cells have formulas in them, unless each cell is clicked. The solution to that is the handy formulas
view.
1. To get to the formulas view, hold down the Ctrl key, and tap the ~ (tilde) key. The tilde key is
directly below the Esc key.
2. Note that cells containing formulas and cell references can be clearly seen. Like opening the hood
of your car, it’s showing us what’s actually inside of each cell.
3. Everything seems to make sense except that our Expenses amount in B14 no longer represents
what our items actually cost. The B14 cell references the amount we budgeted for our items.
Change the cell reference in B14 so it will update when cell C11 updates.
4. To get back to the normal view, repeat the key combination.
Adding Rows
We are going to add a couple of more categories of expenses, so we need more rows. To insert a row,
you must first select the row which is positioned beneath where you want the new row to go.
1. Let’s insert a row above row 11 (TOTAL row).
a. Point to the row label (the 11) and click on it. The entire row will be selected. Notice the
dark black borders running all the way across the display.
b. Right click on the row label (the 11).
c. Click on Insert on the menu. Notice what happened. All the rows dropped down to insert
another blank row. The TOTAL row is now row 12.
d. Now, let’s populate the row with data.
i. In cell A11, type Insurance.
ii. Tab to B11 and type 50.
iii. Tab to C11. Notice how the displayed amount in cell B12 changes because the
formula in that cell updated to accommodate the addition of the new cell.
iv. In C11 type 50 and commit the content with the check mark. Notice the additional
updating that occurs in D11 and C12.
2. Insert another row above row 12.
a. In A12, type Loans.
b. Tab to B12 and type 75.
c. Tab to C12 and enter 75.
d. Commit the content with the check mark.
3. Note that the formulas in row 13 automatically updated the range to include the 2 extra rows that
were inserted.
Moving Rows and Columns
Inserting the two new rows resulted in the Miscellaneous row ending up towards the middle of the list
of expenses. Typically a miscellaneous category appears at the end of a list. We are going to move the
Miscellaneous row so it is above the TOTAL row.
Why not use the “Paste” option to insert the cut cells?
Pasting our cut row would not insert a new row. It
would replace the contents of the row we pasted into.
Trace Errors
We have encountered Trace Errors after moving our Miscellaneous row above the Total row. Trace
errors are called out by green triangles in the cells containing errors. It is important to investigate any
trace errors that appear.
1. Click in a clear cell.
2. Notice the green triangles in cells B13 and C13. These triangles alert us to an error in the formula.
3. Click in one of these cells. Notice how a Trace Error button appears.
4. Click in B13 and look in the formula bar. Note how the formula does not include all 12 rows it
previously included. Apparently, Excel does not automatically assume we want the row we moved
to be included in the formula any longer, so we have to tell Excel to do so.
5. To correct an error in a cell, click in the cell and, to get options, click the Trace Error button.
6. The options list is telling us the Formula Omits Adjacent Cells. To make the formula include the
moved row, we have to select Update Formula to Include Cells.
7. Correct the error in C13.
8. Finally, note how cell D13 does not have a green triangle. Click in the cell and check if the formula
is correct. It is not. Absent the Trace Error button, how would you update the formula to include
the additional rows? Ans: Fill the formula again from C13 to D13.
End of Session 1
Sorting Data
We’d like to organize our spreadsheet so that our Items appear in alphabetical order, with the
exception of Miscellaneous, which should appear last. To do this we can employ the Sort functionality.
1. Select cells A3 through A11.
2. On the Home tab look in the Editing group and click Sort & Filter. Choose the A to Z sort option.
3. A Sort Warning dialogue box appears.
a. Microsoft Excel is smart enough to realize that data exists in adjacent cells and is asking if
you want it included in your sort.
b. In this instance, neither option in the sort warning box will give us the results we seek. Let’s
try each of them.
4. Choose Continue with the current selection and click the Sort button. Note this results in only the
item names being sorted leaving the rest of the data in place. The results show our clothing budget
to be $800 and our rent only $200. This won’t do. Click Undo.
5. Click Sort & Filter again and select Sort A-Z. Choose Expand the selection. Note that Excel correctly
identified that columns B (Budget) through E (Comments) should be included (the amounts are
correctly aligned with the items). However, it also extended the sort vertically, including row 12
(Miscellaneous) and row 13 (Total) in the sort. This is not what we wanted either. Click Undo.
6. The lesson learned from this is that when you perform a sort, it is best to select the specific cells
you want included in the sort.
7. Select cells A3 through E11.
Teacher’s note:
Make sure students are selecting the CELLS. They should NOT be selecting ROWS 3-11
using the row labels. Selecting rows can cause problems under certain circumstances.
Specifically: The Custom Sort dialog box will not detect the column headings when we
have them sort by Actual.
8. Click Sort and Filter and then Sort A to Z (no dialog box appears because we are being more
specific about what we want to sort).
Custom Sort
Although we like the result of our categories of expense organized into alphabetical order, we are
going to perform another sort that will order our results by the actual money spent on each item,
remembering that the Miscellaneous category should remain last.
1. Reselect cells A3:E11 if they are no longer selected.
2. On the Home tab go to the Editing group and click Sort & Filter. Choose Custom Sort.
3. In the Sort dialogue box, in the Column Sort by field, use the list arrow to select our column labeled
Actual. The Sort On field should be Values and the Order field should be Smallest to Largest. Click
OK.
Teacher’s note:
If the “Sort By” field is not listing
the column headings, the student
may have selected ROWS 3-11
instead of CELLS A3:E11.
4. Note that our items are no longer in alphabetical order and that our actual expenses column has
figures from $25 through $800. We are able to note that we spent the same amount ($50) on three
separate items.
4. Note that the second sort did not order all the budgeted item amounts from lowest to highest but
rather a subset of the budgeted item amounts, the ones that we spent $50 on.
5. Although informative, we’d like to see our report display a consistent order from month to month.
Since the amount spent will vary from month to month, let’s undo the custom sorts. Click the list
arrow next to the Undo button and undo the last two sorts.
Teacher’s note:
Make sure each student’s list is sorted
alphabetically after clicking Undo twice!
The Precedence of Operations would force the multiplication to be evaluated first and then the
addition after that, 2 * 3 (6), and then add 5 to that (5 + 6 = 11) making the correct answer 11.
What is an exponent?
It’s when you multiply a number by itself
multiple times. For example, 5^4 (“five to the
fourth power”) means “multiply 5 by itself 4
times”.
5^4=5*5*5*5
Putting parenthesis around part of a formula forces Excel to evaluate that part first, no matter what
operators it uses. In the example, we put the 5 + 2 in parentheses, forcing Excel to evaluate that part
first.
If two operators are on the same level in the Precedence of Operations table, then they are evaluated
left to right.
You can use the phrase “Please Excuse My Dear Aunt Sally” to help you remember the order
(Parenthesis, Exponents, Multiplication, Division, Addition, Subtraction).
Other examples:
(5 + 2) * 3 = 7 * 3 = 21
11 - 5 + 3 = 6 + 3 = 9
11 – (5 + 3) = 11 – 8 = 3
11 – 5 – 3 = 6 – 3 = 3
3 + 15/3 = 3 + 5 = 8
2 * 15/3 = 30/3 = 10
1 + 4 ^ 2 = 1 + 4 * 4 = 1 + 16 = 17
Conditional Formatting
Formatting can be applied to specific cells you would like to draw attention to. Through the use of
conditional formatting, the formatting can be configured to change when the values in the cells
change.
In our spreadsheet we’d like to draw attention, through the use of color formatting, to any item in the
Difference column that represents overspending and also to items where we have underspent. We will
use conditional formatting to highlight cells in red when our spending exceeds our budget and
highlight cells in green when our spending is less than our budget. To do this we will be applying two
conditional formatting rules to cell D3, which we will then be able to copy to the other cells.
1. The first rule will apply to the value in D3 when it represents spending which is less than our
budget.
a. Click on cell D3.
b. On the Home tab, in the Styles group, click Conditional Formatting. From the sub menus
that appear, point to Highlight Cells Rules and then click Greater Than.
c. In the Greater Than dialogue box, enter a 0 into the text box on the left.
d. Select “Green Fill with Dark Green Text” in the dropdown list on the right.
e. Click OK in the Greater Than dialogue box.
f. Note that cell D3 now has a green fill color because we spent less on Clothing than we
budgeted for.
2. The second rule will apply to the value in D3 when it represents spending that exceeds our budget.
a. Make sure cell D3 is still selected.
b. On the Home tab, in the Styles group, click Conditional Formatting again. Then, click on
Highlight Cell Rules and then Less Than.
c. In the Less Than dialogue box enter a 0 in the text box on the left.
d. Select “Light Red Fill with Dark Red Text” in the dropdown list on the right (it should
already be selected).
e. Click OK in the Less Than dialogue box.
3. To apply these two rules to the rest of the cells in the Difference column use the Fill Handle to copy
this formula through cell D13.
4. Should you get unexpected results, you can view errors and manage the conditional formatting
rules.
a. Deselect the cells by clicking in an empty space.
b. Click on Conditional Formatting button, the Manage Rules.
c. Notice how the dialog is empty. Where are our rules? The dropdown list at the top of the
dialog defaults to Current Selection, which means that only the rules defined in the
selected cells are displayed.
d. Select “This Worksheet” from the dropdown list to view all the rules defined in the
worksheet.
Comments
When we created this worksheet we added a column with reminder information about certain of our
budgeted items. Excel offers a better way to comment on particular sections of a worksheet that will
eliminate the need for our clunky Column E.
1. Comments get inserted into cells, so the first step is to decide which cell you want your comment
to refer to. The “May 1st this goes to $825” comment refers to our budgeted amount for Rent,
which will increase during the year. The comment should therefore be connected with cell B9.
2. Click in cell B9.
3. Click the Review tab and, in the Comments group, click on New Comment.
4. Notice how a small, yellow text box has appeared. This is where our comment will go.
5. Also notice how the text box is populated with the word “all” (home students will see something
different).
6. Excel automatically populates all new comments with your Microsoft Office user name (defined in
the settings). By default, this user name is set to the name of your Windows profile. So, we are
seeing “all” because this is the name of the Windows profile here in the lab.
Why does Excel add your user name to each new comment?
By adding your user name to each comment, it’s easier to keep
track of who made what comment when you are collaborating
with multiple people on the same spreadsheet.
Teacher’s note:
Their insertion point is already in the comment box. They DO NOT NEED TO CLICK.
If they do, then the blank line underneath “all” may not be deleted, which will
cause problems when they try to resize the comment box.
8. Type the “May 1st this goes to $825” comment into the comment box.
9. Click into a clear cell. Note the comment box is no longer visible.
10. Note the small red triangle in the upper-right corner of cell B9. This indicates that the cell contains
a comment.
15. Move the comment so that it’s not covering up any other data.
a. Point to an empty part of the border so you get the move cursor. Do not point to a white
circle!
Managing Worksheets
Thus far we have been doing all of our work in one worksheet of the workbook, namely, Sheet 1. See
the lower left portion of the Excel window; the “active” tab is Sheet 1.
At this point, our monthly budget spreadsheet is working very well for us; so well in fact that it can be
used as a model for future months. Excel makes it easy to duplicate data, formulas and formatting
through the manipulation of worksheets. We are going to set this workbook up so that we can keep
track of our monthly budgets going forward.
First we’ll create a template worksheet which has all the data and formulas that our current worksheet
does, except for data that will change from month to month, namely the Actual expenses data. The
template worksheet will be copied several times and each worksheet will have the name of a different
month of the year. As our bills come in, these amounts can be entered into the worksheet for each
given month.
Copying a worksheet
Follow the steps to make a copy of Sheet 1.
1. In your My Budget.xlsx workbook, right click the Sheet 1 tab to bring up a menu.
2. Select “Move or Copy” from the menu.
3. Click in the checkbox next to “Create a Copy” and click OK.
4. Note there is now a new worksheet that is exactly the same as Sheet 1. The new worksheet’s name
is Sheet 1 (2).
Renaming a worksheet
The new worksheet is going to become the template on which we base future month’s budget
worksheets. We’re going to give it a name and edit the data. The template will not contain any data in
the Actual column, but it will still retain formula(s) in that column. We will use copying and renaming
to set up worksheets for future months.
2. Switch to the Formulas view of the Template worksheet (key combination: Ctrl + ~ ).
3. Delete the “Actual” data (not the formula, just the data). Select cells C3:C12 and tap Delete on
keyboard (do not use the Delete key on the Number Pad).
4. Return to the Normal view of the worksheet (key combination: Ctrl + ~ ).
5. Rename “Sheet 1” to “January”.
6. Make 2 copies of the Template sheet (refer back to the “Copying a worksheet” section for
instructions on how to make a copy).
7. Rename “Template (2)” to “February”.
8. Rename “Template (3)” to “March”.
Moving worksheets
The order of the worksheet tabs can be manipulated by dragging them into position. In our case we
want to organize our worksheets from left to right starting with Template at the far left, then January,
February, and March.
1. Click the Template worksheet tab and hold the mouse button down as you move your mouse
slightly upwards. You will notice an image attaches itself to the cursor and a small black triangle
appears. This triangle is the drop point.
2. As you move your mouse with the mouse button still held down (dragging), the drop point will
move. When the drop point is where you want it to be, let go of the mouse and the tab will be in
the new location.
3. Click and drag the sheet tabs to put them in order left to right, Template through March.
Tab Color
Excel allows you to assign colors to the worksheet tabs. Tab colors are useful when you have many
worksheets and need certain ones to stand out. Let’s give our Template worksheet a color.
1. Right click the Template tab.
2. Select Tab Color from the context menu.
3. Select a color of your choice.
4. Click on a different tab to deselect the Template tab and view your color.
3. Notice how it inserts the new worksheet to the right of the worksheet you were previously
viewing.
4. Move the new worksheet to the end of the list.
See Handout 5
End of Session 2
3. Click the tab for the Analysis worksheet. Click into cell A2. Click the Paste button itself (not the list
arrow) which is on the Home tab in the Clipboard group (or press Ctrl + V for Paste).
3. Click into cell C3 (actual cost of Clothing). Notice how the cell reference updated in the formula
bar.
4. Click the check mark on the formula bar.
5. Note the formula bar in the Analysis worksheet which displays characters indicating a referenced
worksheet and cell. Its syntax consists of the name of the worksheet (“January”), followed by an
exclamation point, followed by the cell location (“C3”).
6. Use the fill handle to copy the reference from cell B2 to cell B11.
7. Using the same method, reference the actual cost of Clothing for Feb and fill it down:
a. Click in cell C2.
b. Type an =.
c. Click on the tab for the February worksheet.
d. Click into cell C3.
e. Click on the check mark.
f. Use the fill handle to copy the reference from cell C2 to cell C11.
8. Repeat the steps to reference actual figures for March.
2. Instead of making column N wider in order to fit the heading, we can make the word “Average” go
on a separate line by inserting a line break.
3. With cell N1 selected click in the formula bar just after the letter y, so that the cursor is at the end
of the word Monthly.
4. Press Alt + Enter on the keyboard and commit with the check mark. Notice how “Average” is
now on a second line.
Wrapping text
There is an even easier way to accomplish this.
1. Click the Undo button on the Quick Access Toolbar to remove the line break we just inserted.
2. With cell N1 selected click Wrap Text in the Alignment group on the Home tab.
3. Notice how the text now fits inside the cell.
6. Notice how cell N12 has a strange value in it. This is because it is trying to calculate the average of
an empty row.
8. Note that Excel has determined the average for the values in the 3 months. Let’s enter a value for
April. Enter 250 in cell E2 and click the check mark. Notice how the average is recalculated based
on the addition of a fourth value.
Freeze Panes
Note how, when we scroll horizontally to the right, we are no longer able to see our expense category
names. There is a way to make the first column visible no matter how far to the right you scroll. It is
called freezing a column.
1. Scroll all the way to the left so that the Column A is visible.
2. Click the View tab on the ribbon and in the Window group, click on Freeze Panes.
3. Select Freeze First Column.
You can also freeze multiple rows and/or columns. Let’s freeze the top row, as well as the first
column.
1. First, we need to tell Excel what columns and rows we want to freeze. To do this, select the cell
that is one column to the right of the column(s) you want to freeze, and one row below the row(s)
you want to freeze.
2. Because we want to freeze the row and the first column, we will select B2.
3. Click the View tab on the ribbon and in the Window group, click on Freeze Panes.
4. Select Freeze Panes.
6. A Microsoft Excel Compatibility Checker window pops up. This alerts us to the fact that some
formatting may be lost when we save in an older file format. Click Continue. Note the change in
file extension in the title bar.
7. Note the change in file extension in the title bar. The extension is “.xls” (before, it was “.xlsx”)
8. Next, in order to observe the loss in functionality, we need to close the file and re-open it.
9. Note that our Sparkline is missing.
10. Click the Insert tab and note that the buttons in the Sparklines group are greyed out.
11. Close My Budget.xls.
PDF
Another saving option is to save an Excel spreadsheet as a PDF (Portable Document
Format). One benefit to using this format is that it is widely supported across all
computer and mobile devices. Nearly all computers come pre-installed with software
that can open PDF files. If your computer does not have this software, you can
download software called “Adobe Acrobat Reader DC” for free. This makes PDF an
ideal choice for sharing files with people who do not have Microsoft Excel.
Another benefit to using PDFs is that they retain ALL of the formatting in your document. PDFs are
designed to represent printed pieces of paper, so they act like an electronic “print-out”.
But the main downside is that PDF files cannot be edited unless you purchase special software called
Adobe Acrobat. If you want to make a change to a PDF, you must open the original Excel spreadsheet,
make the change there, then re-save it as a PDF.
1. Open My Budget.xlsx.
2. Use the Save As function again but choose PDF as the file format.
3. Notice the checkbox that says Open file after publishing. If checked, then the PDF file will be
opened in Adobe Reader as soon as the Save operation is complete. This gives you the chance to
inspect the PDF file to make sure it looks OK. Leave it checked.
4. Click Save.
5. Notice how Adobe Reader opens after a few moments.
6. Notice that only the Analysis worksheet is included in the PDF file. We are missing the other
worksheets. Saving to PDF will default to saving only the active worksheet unless you tell it
otherwise. Close Adobe Reader.
7. Use the Save As function again, but this time, after you have selected the PDF file format, click the
Options button.
8. In the Options dialogue, select Entire Workbook and click OK.
9. Click the Save button and click Yes to overwrite the PDF file we created previously.
10. After Adobe reader opens, notice that the PDF now shows all the worksheets.
11. Be aware that, the PDF file you’ve created does NOT automatically update whenever your Excel
document updates! This means that, if you change your Excel document, you will need to re-save
it as a PDF.
12. Close the PDF window.
What is that dotted line that now appears on the January worksheet?
The dotted line marks the end of page. It appeared because we saved
our spreadsheet as a PDF. We’ll be looking into this feature soon when
we discuss printing spreadsheets.
Creating a Chart
Often a visual element can display data in a more meaningful and understandable way. We are going
to insert a chart to illustrate the Expenses and Savings section of our January worksheet. We will be
selecting data for the chart and formatting sections of the chart to make it more understandable.
Insert a chart
1. Click on the tab for the January worksheet.
2. Click in an empty cell in column G. G4 works well.
3. On the Insert tab, in the Charts group, click the Insert Pie or Doughnut Chart button.
5. Notice the Chart Tools ribbon that opens up. It contains two contextual tabs: Design and Format.
6. Click in a clear cell and note the Chart Tools contextual ribbon disappears.
7. Click the chart to select it and the Chart Tools contextual ribbon comes back.
Select data for chart
1. Our chart looks blank because the data it refers to is in cell G4, and that cell had no data.
On the Design tab on the Chart Tools ribbon, locate the Data group, and click Select
Data.
2. When the Select Data Source dialogue box prompts for a data range, on the worksheet,
select cells A15:B18 (unlike most dialogue boxes, this dialogue box lets us interact with our
spreadsheet while the dialogue box is open). Click OK.
Teacher’s note:
If their chart doesn’t look right,
trying clicking the “Switch
Row/Column” button.
3. On the Chart Tools Design tab, in the Chart Layouts group, click the Add Chart Element button.
Point to Data Labels from the list, and then select More Data Label Options.
4. A Format Data Labels pane opens on the right. This allows us to customize the labels that appear
on our chart. Note that the chart will immediately update as we make our customizations.
a. Check Value. This causes the actual dollar amount to be displayed on the label
b. For Separator, select (New Line). This puts the percentage underneath the dollar value.
c. Check Outside End. This moves the labels so they are not covering up the chart.
d. Close the Format Data Labels pane by clicking the small X in the upper-right corner.
5. Move and resize the chart to straddle columns H through M. (Note: move tool engages when you
click inside the chart, then drag to move.)
6. Click in a clear area to deselect your chart.
Printing a worksheet
We are now ready to print our January budget. Printing an Excel worksheet can have its challenges, a
few of which will be noted and addressed below.
Viewing the Preview
1. Make sure the January worksheet is the active sheet.
2. Click the File tab. Click on Print and look at the Preview on the right.
Teacher’s note:
If all they see is the chart, then they forgot to
deselect their chart before doing a File > Print.
Teacher’s note:
Ask the students: What is missing from the print preview?
Chart
Name of worksheet
Comments
The other worksheets
Scaling a printout
We can use a method called scaling to make our data and our chart fit all on one page. Scaling refers to
shrinking a printout so that it will print on only one page.
1. To the left of the preview is the Print Settings section. At the bottom of the section is a setting that
says No Scaling. This means the worksheet is set to print at 100% of its actual size. Click the list
arrow and select Fit Sheet on One Page.
2. Note the data and chart sections of the worksheet are all on one page. However, the print is
smaller.
Teacher’s note:
Sometimes, the line won’t be there for some reason.
If the line is not there, go to back to File > Print and
then click on the Back button again.
6. Move the chart to the left so that it fits inside the print area.
7. Click File Print again. What do you see in the preview? Ans: The chart, because it is still
selected.
8. Click the Back button to return to the spreadsheet and deselect the chart.
9. Go back to File Print and note that everything fits on one printed page now, without any scaling.
Printing Comments
By default, comments will not print. We will configure the Page Setup to print the comments as they
are displayed on the worksheet.
1. Click the Page Setup link at the bottom of the Print Settings section.
2. Click the Sheet tab.
3. Find the section for Comments, noting the drop-down box where (None) is visible.
4. Use the list arrow to see the two other choices and click As Displayed on Sheet.
5. Click the OK button.
6. Note the comments are now visible in the print preview.
7. Close and save My Budget.xlsx.
Linking Workbooks
Excel spreadsheets can contain links to data or formulas in other workbooks. The links between
workbooks are maintained as long as the file name for each workbook does not change, as well as the
location where the workbook files are stored.
A workbook has been created, for the purpose of this class, which contains data regarding income. We
will be referencing this workbook in our My Budget workbook. If you recall, in My Budget.xlsx, on the
January worksheet, we hard-coded an income figure of $2500.00. In this lesson, we will be exchanging
that raw data for a workbook reference.
Referencing Data from an External Workbook
1. Open the Monthly Income.xlsx workbook that’s on your flash drive.
2. Note that the Monthly Income workbook has a January worksheet that keeps track of various
sources of income per month.
3. Note the total income for the month, which is $2750.
4. Open the My Budget.xlsx workbook.
5. Note that each open workbook is represented by a button on the task bar. The buttons will
“stack”, but when you point to them you can see a preview window of each workbook.
6. In the My Budget workbook, on the January worksheet click in cell B14, and type an equal sign.
7. Reference the Monthly Income workbook by clicking on its preview window.
8. In the Monthly Income workbook, click in cell D9.
9. Click the check mark on the formula bar. As soon as the check mark is clicked you will be back in
the My Budget workbook.
10. Notice the formula bar. Its syntax consists of:
3. Notice how it says General. That means Excel will make a guess as to how you want to format the
data.
4. Type “0123” into cell A1 and commit with the check mark.
5. Notice how the zero disappears and how the number is right-aligned. This is because Excel
assumes you are typing a number, and numbers don’t start with zeroes. But what if you wanted it
to start with a zero? (for example, a barcode number)
6. To force Excel to display the starting zero, we have to change its Number Format.
a. Select cell A1 if it’s not already selected.
b. Select “Text” from the Number Format dropdown list (note: you may need to scroll down
to the bottom of the list).
c. Notice how the cell alignment changed from right to left. That’s because Excel right-aligns
numbers and left-aligns text (by default).
7. Type “0123” into cell A1 again and commit with the check mark.
8. Notice how the zero stayed this time.
9. Also notice how the cell now contains a Trace Error. Excel noticed that what you typed looks a lot
like a number, and is suggesting that you might want to format the value as a number instead.
10. We will ignore this suggestion because formatting it as a number will remove the zero, which is not
what we want to do. Click on the Trace Error and select Ignore Error.
Formatting as Percentage
1. Click into an empty cell and enter a number, following it with the % symbol (no space).
2. Commit with the check mark. Look at the Number Format dropdown and notice how it was
automatically assigned the Percentage number format.
Formatting Dates
Excel allows you to customize the way dates are formatted.
1. Select cell A1.
2. In the Home tab, under the Editing group, click the Clear button and select Clear All.
This not only clears the cell value, but its formatting as well.
3. Notice how the Number Format dropdown list now says “General” instead of “Text”. This is
because of the “Clear All” we did in the previous step.
4. Type today’s date with a two-digit year (for example, “11/23/15”) and commit with the check
mark.
5. Notice how the Number Format dropdown changed to “Date”. Because what we typed looks like a
date, Excel is assuming that we want to treat our cell value as a date.
6. Notice how Excel changed the year to four digits. This is because the default date format uses a
four digit year.
7. Select “Long Date” from the Number Format dropdown.
8. Notice how the cell now displays “Monday, November 23, 2015”, but the formula bar still displays
“11/23/2015”. This is because we’ve told Excel to format the date a certain way. The actual cell
value stays the same.
Tip: A French person who can speak English might think in French, but speak in English.
The same is true for Excel—Excel “thinks” in a specific date format (what you see in the
formula bar), but “speaks” in a format of your choosing (the Number Format
dropdown).
9. With cell A1 still selected, select “More Number Formats” at the bottom of the Number Format
dropdown.
10. A dialog box appears.
a. Notice how “Date” is selected in the “Category” list box on the left side of the dialog. That’s
because our cell value is currently being treated as a date.
b. Notice how an assortment of date formats is displayed on the right.
c. Let’s say we really want our date to be displayed with a two digit year. Choose “3/14/12”
from the list.
d. Click OK.
11. Notice how the cell now displays “11/23/15”, and the formula bar still displays “11/23/2015” (it
still has a four-digit year). The value of the cell hasn’t changed, just the way Excel displays the
value.
6. Click the drop-down arrow for the column you would like to filter. In
this example, we will filter the Type column to view only certain types
of equipment. The Filter menu appears.
7. Notice the list of checkboxes. This lists all the unique values in this
column, and lets us choose which ones we want to display.
8. Uncheck the boxes next to the data values you don't want to view. In
this example, we only want to view “Laptop” and “Projector”, so
uncheck everything else.
9. Click OK. All other data will be filtered, or temporarily hidden. Only
laptops and projectors will be visible.
The “Type” column’s list arrow looks different. It has a “filter” icon inside of it.
To Clear a Filter
1. Click the drop-down arrow in the column from which you want to clear the filter. In this case, we
want to clear the filter in the Checked Out column.
2. Choose Clear Filter From “Checked Out”. The filter will be cleared from the column. The data that
was previously hidden will be on display once again.’
3. Click the Filter button on the Data tab. This will instantly clear all filters from your worksheet.
Advanced Filtering
Excel gives you very fine-grained control over how you can filter your data. You’re not limited to
clicking checkboxes like we’ve been doing so far.
Filtering Using Search
Searching for data is a convenient alternative to checking or unchecking data from the list. You can
search for data that contains an exact phrase, number, or date, or a simple fragment. For example,
searching for the exact phrase "Saris X-10 Laptop" will display only Saris X-10 Laptops. Searching for
the word "Saris," however, will display Saris X-10 Laptops, and any other Saris equipment, including
projectors, digital cameras, and more.
Teacher’s note:
Click into cell C9 to demonstrate the dark line that
appears when a selected cell gets filtered out.
Note
When you filter a table, you
may see a dark green,
horizontal line in your table
(see screenshot).
5. The Custom AutoFilter dialog box appears. Enter your text to the right of your filter. In this
example, we will enter "cam" to view data that does not contain those letters. That will exclude
any equipment related to cameras, such as digital cameras, camcorders, camera bags, and the
digicam printer.
6. Click OK. The data will be filtered according to the filter you chose and the text you specified.
5. Enter 9/20/14 in the first text box and click OK (you can use the “Date Picker” button on the right
or just type the date into the text box).
4. Choose Number Filters to open the advanced filtering menu. Then choose Between. This will
allow us to view only the rows whose IDs are between a range we specify.
5. Enter a number to the right of each filter. In this example, we will view ID #s greater than or equal
to 3000, but less than or equal to 4000. That will display ID #s in the 3000-4000 range.
6. Click OK. The data will be filtered according to the filter you chose and the numbers you specified.
The “text to columns” feature allows you to break up the contents of a single cell into
multiple cells.
1. Open Conference Registrants.xslx.
2. Notice how the Name column contains the first and last name of each registrant.
We’re going to use Text to Columns to automatically separate the first and last names out into two
separate columns.
3. The first thing we need to do is make room for our new columns. Since we are just splitting these
cells into two columns, we only need to insert one new one. Insert a column after column A.
4. Type Last Name into cell A2.
5. Type First Name into cell B2.
6. Select cells A3 through A7.
7. In the Data tab on the ribbon, in the Data Tools group, click the Text to Columns button.
8. A wizard dialog appears which allows us to customize the operation. The first screen of the wizard
asks us how our data is formatted.
a. Delimited: Each field within the cell value is separate with one or more special characters, like
spaces or commas.
b. Fixed width: Will split the cell value based on character count (for example, at the 10th
character).
c. Our data generally takes the form of “last name”, “comma”, “first name”, so delimited is what
we want. Select Delimited (it should already be selected).
d. Click Next.
10. The third screen allows you to choose what data type to assign to each column and where in the
worksheet to position each column.
a. Leave General selected. Our data is just text, so we don’t have to worry about this screen.
b. Click Finish.
The Data Validation tool allows you to assign rules to a collection of cells. If the user
tries to enter a value into a cell that doesn’t fit the rules, the value will be rejected.
1. Open Questionnaire Statistics.xslx. This spreadsheet is used to keep track of the
answers that people give to our new student questionnaire.
2. Notice how the Home Computer? column consists of mostly yes/no values. We will
add data validation to this column to enforce this.
3. First, we need to specify the list of valid values.
a. Create a new worksheet and name it Validation Data.
b. Type Home Computer? in cell A1.
c. Type yes in cell A2.
d. Type no in cell A3. Commit the content.
Note: You can put this values list anywhere as long as you can create a cell
reference to it! We are choosing to store it in a separate worksheet to keep
it apart from our statistics data.
9. The cells in that column that don’t have a yes or no value will be circled in red.
In this lesson, we will be using several different formulas to perform a tax calculation. The form we will
use is very loosely based on the Federal tax form 1040EZ and is only an example for class.
1. Open the Finance.xlsx file that is on your flash drive.
2. Note that the workbook has two worksheets, Tax Form and IF Statement.
3. Switch to the Tax Form worksheet. This worksheet is meant to resemble a Federal 1040EZ tax
form.
4. Note the Tax Form has three sections:
a. The first section, Tax Rate, shows the tax rate in this imaginary land – everyone is supposed to
pay 15% of their income.
b. The second section, W2s, has the income for our married couple and some empty cells where
we will calculate the tax withheld.
c. The third section is the Tax Calculation.
5. Let’s start by calculating what the Tax withheld amount is going to be for Joe and Sally.
a. Click cell C7 and note the number format is Percentage. This means it can be used in a
formula to find the percentage of a value in a cell.
b. Click cell D10 and use cell referencing to create a formula that will find 15% of Joe’s income.
c. Do the same for Sally’s tax withheld.
English: Joe’s income times 15%
Formula: =C10*C7
6. Now, let’s start the Tax Calculation section at Line 1. In cell C14, use cell referencing to create a
formula that will add up Joe’s and Sally’s wages.
English: Joe’s and Sally’s taxable income combined.
Formula: =C10+C11
7. For Line 4, let’s use the Insert Function button on the formula bar to insert the Sum function to add
the amounts on lines 1, 2 and 3.
a. Click cell C17 and click the Insert Function button on the formula bar.
b. Note that it automatically enters the equal sign.
c. Click SUM from the list of functions and click OK.
d. Note the suggested range in the function arguments dialogue is the range we want
(C14:C16). Click OK.
English: Add lines 1, 2, and 3.
Formula: =SUM(C14,C15,C16) or =SUM(C14:C16)
b. Type =IF(
c. Click on B3, representing the first number.
d. Type =10
e. Type a comma.
f. Type 10
g. Type a comma.
h. Type 0
i. Commit the formula with the check mark.
j. Let’s test out the formula further.
i. Type a 9 into cell B3 and commit with the check mark.
ii. Note the formula displayed a 0 since the amount in cell B3 does not equal 10.
iii. Change cell B3 back to 10.
4. With Formula #2, we’re going to display text instead of a number. When displaying text, always
enclose the text in double quotes.
Formula: =IF(B3>5, "greater", "less")
a. Click in cell C14.
b. Type =IF(
c. Click on B3, representing the first number.
d. Type a > sign
e. Type 5
f. Type a comma.
g. Type “greater” (including the quotation marks)
h. Type a comma.
i. Type “less” (including the quotation marks)
j. Commit formula with check mark
k. Let’s test out the formula further
i. Change the number in B3 to a 3
ii. Note the word less is displayed rather than the word greater
iii. Change cell B3 back to 10
5. With formula #3, we are going to put a calculation inside the IF statement’s condition. Also, instead
of typing in the formula ourselves, we’re going to use the “Insert Function” button.
Formula: =IF(B3-B4>5,"greater","less")
a. Click in cell C18.
b. Click on the Insert Function button.
c. Select IF from the function list and click OK.
d. A Function Arguments dialogue will open.
i. Click in the Logical_test text box.
1. Click on cell B3.
2. Type a minus sign.
3. Click on cell B4.
4. Type a greater than sign, then a 5.
ii. In the Value_if_true text box, type “greater” (including the quotation marks).
Note that Excel will automatically enclose the text in double quotes when you click
out of the text box.
MC-NPL Computer Lab • 1001 Powell St • Norristown, PA 19401 Page 80 of 83
(610) 278-5100 x141 • [email protected] • www.mc-npl.org
MICROSOFT EXCEL 2016: STEP-BY-STEP GUIDE Revised: 2/20/2020
e. Because the difference is not greater than 5, the word less is displayed rather than the
word greater
f. Let’s test out the formula further
i. Change the number in cell B3 to 11
ii. Because the difference is greater than 5, the word greater displays this time
iii. Change cell B3 back to 10
6. With formula #4, we are going to closely approximate the formula for the Taxable Income line (line
6) of the Tax Form.
Formula: =IF(B4>B3,0,B3-B4)
a. Click cell C22.
b. Click the Insert Function button in the formula bar.
c. Select IF from the function list and click OK.
d. A Function Arguments dialogue will open.
i. Click in the Logical_test text box.
1. Click on cell B4.
2. Type a greater than sign.
3. Click on cell B3.
ii. In the Value_if_true text box, type 0
iii. In the Value_if_false, type B3-B4.
iv. Click OK.
e. Because the second number is not greater than the first number, the middle parameter was
not used. Instead the third parameter was used
f. Let’s test out the formula further
i. Change the number in cell B4 to 20
ii. Because the second number is greater than the first number, the second parameter
was used and a 0 displayed
iii. Change cell B4 back to 5
9. Great! Joe and Sally don’t owe any more tax and are getting a nice refund!
Conditional Formatting
On the Tax Form worksheet, let’s make the refund amount stand out. Let’s say that if we get a refund,
we want to make it display in bold and green. This is called Conditional Formatting. Let’s change the
Refund formatting now.
1. Click on C24.
2. On the Home ribbon, find the Styles group and click on Conditional Formatting. Then, under
Highlight Cell Rules, select Greater Than.
3. Type 0 into the text box and select Green Fill with Dark Green Text from the dropdown list.
Let’s do something similar for Line 12 (the amount you owe). Let’s make the text red if anything is
owed.
1. Click on C25.
2. On the Home ribbon, find the Styles group and click Conditional Formatting. Then, under
Highlight Cell Rules, click Greater Than.
3. Type 0 into the text box and select Light Red Fill with Dark Red Text from the dropdown list.