EXC365.3 1.1.1 Advanced Microsoft Excel 365 Training - Sample
EXC365.3 1.1.1 Advanced Microsoft Excel 365 Training - Sample
WEBUCATOR
Copyright © 2024 by Webucator. All rights reserved.
No part of this manual may be reproduced or used in any manner without written permission of the
copyright owner.
Version: 1.1.1
The Authors
Tracy Berry
Tracy has been a senior graphic designer/programmer, instructor, and consultant since 1993 and has
developed hundreds of logos, marketing materials, websites, and multimedia solutions for customers
worldwide, including involvement in large corporate software rollouts. She has helped many organizations
optimize and streamline data solutions. She teaches both onsite and online courses and has her CTT
(Certified Technical Trainer) certification. Tracy specializes in teaching graphics, desktop publishing,
web design, reporting/productivity applications, as well as the creation of online courses with software
from leading vendors.
Dave Dunn
Dave Dunn was the CEO of Webucator for over 10 years and is now on Webucator's board. He initially
joined Webucator in 2009 after serving as a CFO and COO for numerous small and medium-sized
companies, including Summit Software Company, Insight Research Group, Avalon Consulting, and
HealthcareOne. Dave received his Bachelor of Arts from Hamilton College and his MBA from Syracuse
University. He has served as Chairman of the Board of the Montessori School of Syracuse since 2001.
Nat Dunn is the founder of Webucator (www.webucator.com), a company that has provided training
for tens of thousands of students from thousands of organizations. Nat started the company in 2003
to combine his passion for technical training with his business expertise, and to help companies benefit
from both. His previous experience was in sales, business and technical training, and management. Nat
has an MBA from Harvard Business School and a BA in International Relations from Pomona College.
Margaux Judge has worked as an e-learning editor and instructional designer for over ten years, writing
and editing a wide variety of courses, from technical topics to soft skills. She has a Bachelor's degree
in English and Textual Studies from Syracuse University and a Master's degree in Television Writing
from Boston University.
Class Files
Table of Contents | i
LESSON 4. Data Tools................................................................................................................113
Importing Data from Online Source.....................................................................................113
Converting Text to Columns.................................................................................................114
Exercise 5: Converting Text to Columns......................................................................119
Importing Files......................................................................................................................121
Exercise 6: Importing Text Files..................................................................................128
Linking to External Data........................................................................................................130
Controlling Calculation Options............................................................................................132
Data Validation.....................................................................................................................134
Exercise 7: Using Data Validation...............................................................................140
Consolidating Data...............................................................................................................148
Exercise 8: Consolidating Data...................................................................................150
What-If Analysis....................................................................................................................155
Exercise 9: Using Goal Seek.......................................................................................160
LESSON 5. Recording and Using Macros....................................................................................165
Recording Macros.................................................................................................................165
Exercise 10: Recording a Macro.................................................................................171
Running Macros....................................................................................................................180
Editing Macros......................................................................................................................181
Adding Macros to the Quick Access Toolbar........................................................................184
Exercise 11: Adding a Macro to the Quick Access Toolbar..........................................191
LESSON 6. Working with Others................................................................................................195
Comments and Notes...........................................................................................................195
Protecting Worksheets and Workbooks...............................................................................200
Exercise 12: Password Protecting a Workbook...........................................................208
Marking a Workbook as Final...............................................................................................215
Other Sharing Concerns.......................................................................................................217
ii | Table of Contents
LESSON 1
Using PivotTables
EVALUATION COPY: Not to be used in class.
Topics Covered
Editing PivotTables.
Formatting PivotTables.
Inserting PivotCharts.
Using Slicers.
Introduction
A PivotTable is an interactive table that can be used to analyze, organize, and summarize large amounts
of data. PivotTables make it easy to rearrange data, quickly displaying it in different ways.
In this lesson, we will explore how PivotTables can help us quickly answer these and similar questions.
IMPORTANT
This lesson contains a lot of follow-along demos using the PivotTables.xlsx workbook from
the excel365-pivottables/Demos folder. You should follow along with all of the demos and
save your work as you go, as it’s important that your workbook stays up to date with the demos.
1. It should have a header row. Make sure your data includes a header row because the top row
of your table will serve as the field names in your PivotTable.
2. It should not have any empty rows or columns. If your data includes empty rows or columns,
Excel will not treat all your data as one table.
3. It should not have any subtotals. Remove all subtotals before creating your PivotTable.
A. Verify that Excel has selected the correct range in the Table/Range field. You will
also see a dashed green border around the data Excel selected.
B. Select where you want the PivotTable to show up (you will almost always want to
select New Worksheet).
C. Click OK.
This will open a new worksheet with the tools to create a PivotTable from our data:
If you’re PivotTable Fields pane doesn’t show up when you need it, it’s probably been hidden.
To re-show it, click the Field List button in the Show group of the PivotTable Analyze tool
tab:
1. Town
2. Listing Price
3. House Color
4. Bathrooms
Let’s start by just checking Town and Listing Price in the PivotTable Fields pane. That creates the
following PivotTable, which shows the sum of the values in the Listing Price field:
This isn’t what we want (we want the averages), but it was pretty clever of Excel to figure out that we
wanted to do a calculation here. It has recognized from the data that Town is a category into which
the Listing Price data fits, and it determined that we want to aggregate that Listing Price data in some
way. Notice that Town was put in the Rows section and Sum of Listing Price was put in the Values
section:
1. Click the drop-down arrow to the right of Sum of Listing Price and select Value Field
Settings…:
And now we have a PivotTable that answers our first question: What is the average house price in each
town?
It also gives us a bonus: the Grand Total, which is the average house price in all the towns.
If you check the checkbox next to the House field, House will get added to the Rows area, which is
not what we want. We could always drag it from the Rows area to the Values area, but let’s save a step
and drag House directly from the fields list to the Values area:
Notice the green line that shows up when the field is droppable.
Because House values are text, Excel default to using the COUNT function, giving us exactly what we
want: the number of houses per town:
1. Switch to the Data tab and change cell B5 from “Dewitt” to “Cicero”.
2. Switch back to the Sheet1 tab. Notice that it still says that there are 22 houses in Cicero and
22 houses in Dewitt.
3. Right-click anywhere in the PivotTable and select Refresh.
4. It should now indicate that there are 23 houses in Cicero and 21 houses in Dewitt.
By default, PivotTables don’t even automatically refresh when you close and re-open a workbook;
however, you can change that by doing the following:
1. In the PivotTable group on the PivotTable Analyze tool tab, click Options:
2. Check Refresh data when opening the file on the Data tab and click OK:
All we need to do to get that answer is check the House Color checkbox in the PivotTable fields. Excel
recognizes that this is a text field and treats it (correctly) as a subcategory of Town, so it adds new rows
for the colors:
Next question: How many houses of each color are there in total? Notice that House Color is currently
a subcategory of Town. This allows us to see how many total houses and how many of each color are
for sale in each town:
To change this so that Town is a subcategory of House Color, we change the order of the Rows using
drag and drop:
3. Drag the field out of its area and into the Field List:
PivotTable Filters
PivotTables provide another way of filtering, which brings us to our final question: How many houses
are there with three or more bathrooms?
To answer this question, create a Bathrooms filter by dragging Bathrooms from the PivotTable Fields
to the Filters area:
We encourage you to play around some more. PivotTables can be incredibly helpful, but they can also
get messy. It takes some practice to figure out which features to use when.
Now that you understand the problem, let’s discuss how we deal with it. There are a couple of different
ways:
1. Change the data source of the PivotTable when the range changes.
2. Make the data source a table.
Notice that the new row you just inserted is not included in the current data source.
5. Change the data source to include the new row either by changing it to Data!$A$1:$J$134
in the Table/Range field or by selecting the whole data range with your mouse.
6. Click OK.
7. Compare the average listing price in Cicero to the value it was before. It should have updated.
Click OK.
9. Switch to the Data tab again.
10. Delete the last row of the table, which you just added.
11. Switch to the Sheet1 tab.
12. Right-click anywhere on the PivotTable and select Refresh. Notice the data updates.
The takeaway here is that PivotTables will be easier to maintain if you use a table (rather than a range)
as the source data.
3. In the Insert Timeline dialog, check the checkbox of the date fields you want in the timeline.
We only have one date field in our data: Date Listed. Check that and click OK:
4. The timeline is displayed. Click any period to see the data for that period:
1. Open the Bathrooms filter, select (All), and click OK so that we are not filtering by the
number of bathrooms:
We are about to remove this filter, but if we leave the filter on before we remove it, the data will
remain filtered.
2. Clear the Date Listed filter by clicking the Clear Filter icon in its upper right:
3. In the Filters area of the PivotTable Fields pane, remove the Bathrooms filter by clicking
the drop-down arrow next to the filter and selecting Remove Field:
Your slicers will appear on the worksheet stacked on top of each other. Before using them, let’s first
align and style them so the sheet looks nice:
1. Drag each slicer by its top to lay them out relatively nicely below the PivotTable and the
DateListed filter. Don’t worry about getting it exact. In fact, if you leave them aligned a little
poorly, you’ll appreciate what we’re about to do even more:
3. With the slicers still selected, click Align > Distribute Horizontally:
To show the number of blue houses in each town that have 2 or 3 bedrooms and 3 or 4 bathrooms:
1. On the Bedrooms slicer, click 2 and then hold down the Ctrl key and click 3. Notice that
some of the values in the other slicers get faded and moved to the bottom of the slicer. That
indicates that there are no houses that match those values with the current filters that are
applied. For example, there are no houses that have 2 or 3 bedrooms that also have 4
bathrooms:
You already selected multiple values from a slicer by holding down the Ctrl key while clicking
the values. You can also turn on multi-select by clicking the Multi-Select button at the top of
the slicer:
1. In the PivotTable, select the first three towns, right-click, and select Group…:
Notice that the ungrouped towns have been placed into their own “groups” of one. Let’s fix
that.
2. Select the other three towns, right-click, and select Group…:
Now, consider what you would do if you wanted to show the price per square foot if the data didn’t
have that field. You would use a calculated field in the PivotTable:
For our purposes, this detail doesn’t matter. We just want you to learn how to add calculated
fields, but for those of you who are math folks, you might have noticed that the two calculations
are slightly different, which is why the SFT and SQFT averages don’t exactly match:
1. The values from the data source calculate the price per square foot for each house and
then get the average for all the houses. Imagine if there were only two houses: a
$1,000,000 house that was 5,000 square feet and a $100,000 house that was 1,200
square feet. The big house’s price per square foot would be $200 and the little house’s
would be $100 for an average of $150 per square foot.
2. The values from the PivotTable add up all the available square feet and divide it by the
total of all the house prices. Using the same two houses from our previous example,
that would give us $1,100,000 / 6,200, which would be about $180 per square foot.
1.6. PivotCharts
PivotCharts are simply charts that use the data in your PivotTable. PivotCharts make it easy to visualize
your data.
Let’s insert a clustered column chart showing the number of houses by house color in each town. First,
we need to prepare the PivotTable:
3. The Insert Chart dialog will open. With the Clustered Column chart selected, click OK:
It is possible to insert a PivotChart directly from the source data. To do so, select any cell within
the source data and click PivotChart on the Charts group of the Insert tab.
1. Insert a PivotTable in a new worksheet showing total sales by company. Format the numbers
as currency and show zero decimal places. The PivotTable should look like the following image:
4. Insert Slicers to analyze sales by salesperson and product in addition to industry. Style each slicer
a little differently:
3. To insert a PivotTable showing total sales in each calendar year by industry and to format the
numbers as currency and show zero decimal places:
A. Select any cell in the list on the Data sheet.
B. On the Insert tab, in the Tables group, click the PivotTable command. In the
Create PivotTable dialog, verify that Excel has selected the correct range, select
where you want the PivotTable to show up (select New Worksheet), and click OK.
C. In the PivotTable Field List, drag and drop:
i. Industry into the Rows area.
ii. Calendar Year into the Columns area.
iii. Sale Amount into the Values area.
Conclusion
In this lesson, you learned to use PivotTables to analyze data, to edit PivotTables, to format PivotTables,
to insert PivotCharts, and to use Slicers.
Topics Covered
Array Functions.
Lookup functions.
Introduction
In this lesson, we will introduce you to some advanced functions used in Microsoft Excel. Some of
these functions are quite complex. If you don’t understand one at first, read through the explanation
again slowly while playing with the function in Excel.
This shows that the function can take five arguments, but that the last two ([fv] and [type]) are
optional as indicated by the square brackets.
When an argument is optional, it either has a default value or is simply not required. The fv and type
arguments both have default values of 0.
When writing a function, you have to include arguments in the correct order. So, what if you want to
include the default value for an optional argument that comes before an argument you want to assign
a different value to? For example, say we wanted to calculate the payment for a 24-month $3,000 loan
with 9% interest, assuming the loan is to be completely paid off and payments are made at the beginning
of each period. Let’s break that out:
1. You can include the future value argument, even though you’re using the default:
=PMT(0.09/12,24,3000,0,1)
2. You can skip the future value argument by just leaving a blank between the commas:
=PMT(0.09/12,24,3000,,1)
We prefer the first option as it makes the formula clearer, but both work equally well.
The first two arguments are required. The optional arguments that follow the first two come in pairs:
[logical_test2, value_if_true2]
If you include a second logical test, you need to include a corresponding value to output if that logical
test is true. In the syntax, the whole pair is enclosed in square brackets, indicating that it’s optional,
but if included, both parts of the pair must be included.
The Ellipsis
The ellipsis (…) at the end of the IFS function syntax indicates that you can continue to add these pairs.
There generally is a limit to the number you can add (127 in this case), but you’re unlikely to reach it.
It’s worth getting familiar with the syntax functions and with Excel’s help documentation in general,
as it will make learning about new functions (or functions new to you) a lot easier.
=ROWS(A1:D5)
=COLUMNS(A1:D5)
If you would like to follow along with the examples in this section, which we recommend doing,
open the INDEX & MATCH tab of excel365-functions-advanced/Demos/AdvancedFunc
tions.xlsx.
The INDEX function returns the value within a table or range. It takes the following arguments:
=INDEX(A3:A6,3)
This returns the third value in the range A3:A6, which is Ron.
3. Select cell G3, which contains the following formula:
=INDEX(B3:D6,3,2)
This returns the value in the third row and second column in the range B3:D6, which is -59:
2.2.3. XMATCH
The XMATCH function searches for an item in a range and returns the item’s index position. It takes
two required arguments:
=XMATCH(J2,A3:A6)
This returns the first value it finds in range A3:A6 that matches the value in J2. The value in
J2 is Hermione, which is the second value in the range A3:A6, so it returns 2.
=INDEX(B3:D6,XMATCH(M3,A3:A6),XMATCH(M2,B2:D2))
Remember that formulas work from the inside out, so the XMATCH functions get evaluated first.
1. The first XMATCH function looks through the student names in range A3:A6 for a value that
matches the value in cell M3 (Neville). Neville is found in the fourth cell in that range,
so this function return 4.
2. The second XMATCH function looks through the months in range B2:D2 for a value that
matches the value in cell M2 (Feb). Feb is found in the second cell in that range, so this
function return 2.
3. Substituting those values returned from the XMATCH functions, we can rewrite our formula
like this:
=INDEX(B3:D6,4,2)
This will return the value found in row 4 and column 2 of range B3:D6:
4. Try changing the month and/or student values to see how the results change.
The XMATCH function is new in Excel 365 and 2021. There is a similar function called MATCH,
which is also supported in older versions. It works almost the same, but instead of looking for
an exact match by default, as XMATCH does, the default behavior of MATCH is to return the largest
value that is less than or equal to the look up value. To see the difference, enter Her in both cells
J2 and J6. XMATCH will return #N/A, indicating there is no match. But MATCH will return 1,
because Harry is the largest value that is less than or equal to Her and the index position of
Harry is 1.
When dynamic array formulas return arrays, those arrays spill into the neighboring cells. Let’s take a
look at a few of these: SEQUENCE, RANDARRAY, and UNIQUE
Follow Along
If you would like to follow along with the examples in this section, which we recommend doing,
open the Arrays tab of excel365-functions-advanced/Demos/AdvancedFunctions.xlsx.
2.3.1. SEQUENCE
The SEQUENCE function creates a sequence of values that spills into a range. It takes the following
arguments, only the first of which is required:
=SEQUENCE(10)
This will generate an array of numbers 1 through 10 and spill them down a single column:
1. Select cell A1 on the Arrays sheet and look at its formula in the formula bar.
2. Now, select cell A2 and look at its formula in the formula bar. Notice that it is grayed out:
It’s grayed out because you cannot change it here. The values in A2:A10 were spilled in from
the formula in A1.
3. Type X into cell A2 and press Enter. Notice that cell A1 now has an error: #SPILL!:
=SEQUENCE(3,6,10,5)
This will create a sequence of 3 rows and 6 columns, starting with 10 and incrementing by 5
on each step:
2. To see how the spilling works, select cell J2 and enter the same formula:
=SEQUENCE(3,6,10,5)
RANDBETWEEN
The RANDBETWEEN function return an integer between two values. It takes two arguments: the bottom
value and the top value, which are both included in the possible return values. For example, the following
function will return an integer between 1 and 10:
=RANDBETWEEN(1,10)
This function can be used with SEQUENCE to generate a sequence with a random starting point and
incrementing by a random number. To see an example of this, select cell C7, which has the following
formula:
Remember that formulas work from the inside out, so the RANDBETWEEN functions get evaluated first.
If they return 70 for the starting number and 8 for the step, the result will look like this:
Again, to get practice with this and to see how the spilling works, select cell J7 and enter the same
formula:
=SEQUENCE(3,6,RANDBETWEEN(1,100),RANDBETWEEN(1,10))
2.3.2. RANDARRAY
The RANDARRAY function creates an array of random values that spills into a range. It takes the following
arguments, all of which are optional:
=RANDARRAY(3,6,1,10)
This will create a range of 3 rows and 6 columns, with random numbers between 1 and 10:
=RANDARRAY(3,6,1,10,TRUE)
This will create a range of 3 rows and 6 columns, with random whole numbers between 1 and
10:
3. Try entering the two formulas above in cells J12 and J17. Feel free to experiment with different
numbers.
2.3.3. UNIQUE
The UNIQUE function creates an array from a list of unique values found in a given range. It takes the
following arguments, only the first of which is required:
3. exactly_once – if TRUE, it will only return rows or columns that appear exactly one time
in the range.
1. Notice cells Q2:T5 contain color names. We’ve used conditional formatting to color code
the cells. Notice that the second and fourth rows are the same as are the first and last columns:
=UNIQUE(Q2:T5)
=UNIQUE(Q2:T5,TRUE)
This returns the three unique columns, because the second argument is TRUE indicating that
it should compare values by column:
This returns the two rows that show up just a single time. In other words, it excludes rows
that appear more than once. That’s because the third argument is TRUE indicating that it
should only return rows that appear exactly once:
=UNIQUE(C2:C96)
=UNIQUE(D18:D96)
Follow Along
If you would like to follow along with the examples in this section, which we recommend doing,
open the SORT & FILTER tab of excel365-functions-advanced/Demos/AdvancedFunc
tions.xlsx.
You can sort and filter data ranges and tables using the Sort and Filter commands in the Sort & Filter
group on the Data tab:
2.4.1. SORT
The SORT function is used to sort a range in new cells without affecting the original range. It takes the
following arguments (only the first is required):
=SORT(A3:A52)
The error is telling you that the SORT function cannot spill into the required range of cells
because the range is not empty.
5. Delete the X and notice that the cells repopulate.
6. Select cell E3. It contains the following formula:
=SORT(A3:A52,1,-1)
This simply sorts the states in descending order. The second argument (1) indicates that we
want to sort by the first column in the data range. We include this even though there’s only
one column, because, we want to add a third argument: -1, which tells the function to sort
in descending order. Because there is only one column, we could leave a blank for the second
argument, like this:
=SORT(A3:A52,,-1)
=SORT(A3:B52,2,-1)
This sorts the State and Household Income data (A3:B52) by the second column (2, which
is Household Income) in descending order (-1).
2.4.2. FILTER
The FILTER function is used to filter a range in new cells without affecting the original range. It takes
the following arguments:
This checks each cell in the range one at a time against the condition, like so:
A. If B3 > 700000, include that row’s data in the output.
B. If B4 > 700000, include that row’s data in the output.
C. If B5 > 700000, include that row’s data in the output.
D. And so on…
3. An optional if_empty argument with a value to output if the filter returns no matches.
1. Notice that cell K1 contains the value $70,000. We will use FILTER to create a data range
of states where the average household income is greater than that number.
2. Select cell J3. It contains the following formula:
=FILTER(A3:B52,B3:B52>K1)
This filters the State and Household Income data (A3:B52) by including only those states
where the household income (B3:B52) is greater than the value in K1 ($70,000).
3. Select cell M3 to see how to use SORT and FILTER together to sort the filtered results. It
contains the following formula:
=SORT(FILTER(A3:B52,B3:B52>K1),2,-1)
Remember that formulas work from the inside out, so FILTER(A3:B52,B3:B52>K1) gets
evaluated first. It returns a range of filtered data, which then gets passed to SORT.
2.4.3. SORTBY
The SORTBY function is similar to SORT, but it can also be used to:
The last two arguments can be repeated to sort on multiple sets of values.
=SORTBY(A2:D11,B2:B11,1,C2:C11,-1)
=SORTBY(
A2:D11,
B2:B11,1,
C2:C11,-1
)
This sorts:
A. range A2:D11…
B. by the values in range B2:B11 (the subject) in ascending order,…
C. and then by the values in range C2:C11 (the number of students) in descending
order.
3. Select cells A2:D11 (or type A2:D11). This is the data you are sorting. Add a comma.
2.5.1. XLOOKUP
The XLOOKUP function searches a range of cells for a value and then returns an item in another range
corresponding to the first match it finds. It takes the following required arguments:
1. A value to return if no match is found. If this is left blank, it will return #N/A if no match is
found.
2. A match mode:
0 – Exact match. This is the default.
-1 – Exact match or nearest smaller item.
1 – Exact match or nearest larger item.
3. A search mode:
1 – Search from first to last. This is the default.
-1 – Search from last to first.
2 – A binary search2 that relies on data being in ascending order.
-2 – A binary search3 that relies on data being in descending order.
The easiest way to understand how the XLOOKUP function works is through examples:
=XLOOKUP(F2,A2:A37,B2:B37,"No match")
Cell F2 contains the value Su Li. The function searches range A2:A37 for that value and
then returns the corresponding value in range B2:B37. If it does not find a match, it returns
"No match":
3. Cell F8 is similar, but it looks left instead of right for the value to return:
1. https://support.microsoft.com/en-us/office/using-wildcard-characters-in-searches-ef94362e-9999-4350-ad74-4d2371110adb
2. https://en.wikipedia.org/wiki/Binary_search_algorithm
3. https://en.wikipedia.org/wiki/Binary_search_algorithm
=XLOOKUP(F7,B2:B37,A2:A37,"No match")
Note that XLOOKUP returns the first match it finds. So, although there are many students in
the list from Gryffindor, it just returns the first one it finds: Lavender Brown.
4. Compare the previous example to the formula in F12, which uses the FILTER function:
=FILTER(A2:A37,B2:B37=F7)
This filters range A2:A37 using the condition that the corresponding rows in column B match
the value in F7. It finds all the Gryffindor students and spills them into the cells below:
5. XLOOKUP can return a one-dimensional range. Select cell I3, which contains the following
function:
=XLOOKUP(H3,A2:A37,B2:C37,"No match")
Notice that the third argument, B2:C37, is a range spanning two columns (B and C). XLOOKUP
will return a row from this range that corresponds to the match found in A2:A37. The second
value (Defence Against the Dark Arts) will spill over int J3:
You do this by nesting one XLOOKUP within another. Here’s the formula in cell I15, which
finds a value with the given column heading (House) and a given row label (Trevor Boot):
=XLOOKUP(I13,A2:A37,XLOOKUP(I12,A1:C1,A2:C37))
Remember that formulas work from the inside out, so the inside XLOOKUP function gets
evaluated first. It returns all the values from A2:C37 in the column in which the value in
A1:C1 is the same as the value in I13 (House).
To see how that inner XLOOKUP function works enter it cell J14:
=XLOOKUP(I12,A1:C1,A2:C37)
You should see the house names spill down below the cell:
This is the range that the outer XLOOKUP will return from.
1. VLOOKUP – Identifies a row in a range based on the row’s first value and returns the value in
a specified column (by index number) of that row. Microsoft documentation4.
2. HLOOKUP – Identifies a column in a range based on the column’s first value and returns the
value in a specified row (by index number) of that column. Microsoft documentation5.
3. LOOKUP – If this is used at all, it should be used to search a row or column for a value and
return the value of the corresponding cell in the next row or column. Microsoft
documentation6.
Interested in a Challenge?
If you’d like a fun exercise to practice working with some of the functions you’ve learned so far,
check out our Use Excel 365 to create a Sorting Hat and House Point Scoreboard7 challenge.
4. https://support.microsoft.com/en-us/office/vlookup-function-0bbc8083-26fe-4963-8ab8-93a18ad188a1
5. https://support.microsoft.com/en-us/office/hlookup-function-a3034eec-b719-4ba3-bb65-e1ad662ed95f
6. https://support.microsoft.com/en-us/office/lookup-function-446d94af-663b-451d-8251-369d5e3864cb
7. https://www.webucator.com/article/using-excel-to-create-a-sorting-hat/
=XLOOKUP(A7,Table!$A$2:$A$9,Table!$B$2:$B$9,"")
12. Grab the Fill Handle on the bottom right of cell B7 and drag it down to cell B15.
To query the Price from the table located in the Table sheet:
=XLOOKUP(A7,Table!$A$2:$A$9,Table!$C$2:$C$9,"")
12. Grab the Fill Handle on the bottom right of cell B7 and drag it down to cell B15.
=LET(x,3,y,5,x*y)
The best way to understand the LET function is to start with the last argument, which is the formula
that uses the variables. In this case, that’s x*y. This multiplies two variables, x and y, together. Those
variables are defined by the preceding arguments of the LET function: x,3,y,5. Those are variable-value
pairs.
Here is the formula broken across lines and keeping the variable-value pairs together:
=LET(
x,3,
y,5,
x*y
)
=3*5
Again, the LET function is useful when parts of the function are repeated. Consider Heron’s Formula
for calculating the area of a triangle from the lengths of three sides:
That is a pretty scary looking formula. But notice that the portions in red are repeated. If we could
assign that to a simple variable, it would make the formula look a lot simpler:
Now, let’s take it one step further and assign values to the sides:
=LET(
a,3,
b,4,
c,5,
p,(a+b+c)/2,
SQRT(p*(p-a)*(p-b)*(p-c))
)
=LET(a,3,b,4,c,5,p,(a+b+c)/2, SQRT(p*(p-a)*(p-b)*(p-c)))
One final piece: in Excel, you would typically hold the values of those sides in cells. If the lengths of
the sides are stored in cells B2, C2, and D2, then we will reference those cells for the a, b, and c
variables:
=LET(a,B2,b,C2,c,D2,p,(a+b+c)/2, SQRT(p*(p-a)*(p-b)*(p-c)))
To see this in Excel, open the LET worksheet of the AdvancedFunctions.xlsx workbook in the
excel365-functions-advanced/Demos folder.
However, this creates a copy of the data that does not refer back to the original data. If you want to
keep both views of the data up to date, you will need to make changes in both places.
The TRANSPOSE function is a dynamic array function that can be used to create a new “view” on the
same data. It does the same thing as the Transpose paste option, but it keeps a reference to the original
data, so that changes there are reflected in the transposed data. The TRANSPOSE function takes a single
argument: the data range you want to transpose:
=TRANSPOSE(A2:D6)
To see the data update dynamically when you change the original data, open the TRANSPOSE sheet
of excel365-functions-advanced/Demos/AdvancedFunctions.xlsx and make any change to
the cells in A2:D6.
If you are working on Excel 2019 or earlier, then the TRANSPOSE function will work a little
differently. See the Microsoft documentation8 for details.
Conclusion
In this lesson, you have learned to use some of Excel’s more advanced functions.
8. https://support.microsoft.com/en-au/office/transpose-function-ed039415-ed8a-4a81-93e9-4b6dfac76027
Topics Covered
Inspecting workbooks.
Watching formulas.
Evaluating formulas.
Error checking.
Introduction
In this lesson, you will learn to inspect workbooks before finalizing or sharing them to make sure that
they don’t contain personal information that you don’t want shared, that they are accessible to people
with disabilities, and that they are compatible with older versions of Excel.
You will also learn to identify potential issues with formulas by tracing precedent and dependent cells
to find out which cells rely on each other. In addition, you will learn to use the Watch Window to
keep an eye on formulas as you work.
Finally, you will learn to evaluate formulas using the Evaluate Formula dialog, which allows you to
walk through a formula seeing how each step is evaluated, and to use error checking to find and fix
potentially problematic formulas.
The best way to see how these tools work is to try them out. Open excel365-auditing/Demos/Tri
angles.xlsx. This workbook has two sheets:
Area Formula
=LET(a,Sides!B2,b,Sides!C2,c,Sides!D2,p,(a+b+c)/2, SQRT(p*(p-a)*(p-b)*(p-c)))
Perimeter Formula
=Sides!B2+Sides!C2+Sides!D2
The formula to calculate the area of the triangle uses the LET function, which was introduced
in Excel 2021 and 365. That makes this workbook incompatible with older versions of Excel.
Let’s see how the inspection tools can help us identify potential issues with this workbook.
Generally, you can accept all the defaults and click Inspect.
4. The inspector found two potential issues:
For more information on hidden information and personal data, see the Microsoft documentation9.
9. https://support.microsoft.com/en-us/office/help-protect-your-privacy-252a47ec-1b31-4fd0-8450-e66d6c2de950
4. Charts (like all shapes and images) should have alternative text providing a description of what
they show or they should be marked decorative if they are there just for aesthetic purposes.
In this case, we should add a description, which you can do by clicking the drop-down arrow
to the right of Chart 1 (Sides) and selecting Add a description:
5. That will bring you back to the Accessibility pane, which still has a warning about hard-to-read
text contrast on both slides. Click the drop-down arrow next to the identified cells and either
click the recommended actions to accept them or click the > to the right of the action for
more options:
It is worth noting that you may not wish to fix compatibility issues in cases where doing so would make
the workbook less useful.
Cells that have formulas that reference other cells are called dependents:
=AND(B3=C3,C3=D3)
3. On the Formulas tab, in the Formula Auditing group, click Trace Precedents:
The blue arrow heads indicate the dependent cells in the same sheet and the black arrow head
on the dashed line that points to a worksheet icon indicates that there is a dependent cell on
another sheet:
3. Double-click the dashed arrow (you may find zooming in makes that easier). This will bring
up the Go To dialog:
Now, let’s see how we can use tracing in a practical way. Go to the Formulas sheet and select cell D9.
Notice it has a value of 0.0 for the height of the triangle. The height of a triangle cannot be 0.0. Let’s
dig into that.
1. On the Formulas tab, in the Formula Auditing group, click Trace Precedents. Notice that
B9 is a precedent and its value is also 0.0:
Notice the values of B9, C9, and D9 are 13, 2, and 11. It turns out a triangle cannot be made
from sides with those values:
Note that when you trace precedents of an aggregate function, the referenced cell range will get a solid
blue outline:
Formulas can reference cells in other workbooks. You can trace precedents and dependents to
those workbooks, but to do so, you must first open those workbooks.
2. The second-level precedents for cell B5 are cells B12 and B13 in the Revenue sheet. To figure
this out:
A. Click Trace Precedents again.
B. Double-click one of the dashed lines leading to the sheet icons to open the Go To
dialog showing the sheet and cell:
4. The second-level precedents for cell B11 are cells B3:B4 and cells B7:B9. To figure this out:
A. Click Trace Precedents again.
B. The precedent cells are indicated by the blue outlines surrounding the cell ranges:
Remove the arrows showing the precedents for cell B11 by clicking Remove Arrows in the
Formula Auditing group on the Formulas tab.
6. The second-level dependents for cell B4 are cells B8, B9, B11, C8, D8, and E8. To figure
this out:
A. Click Trace Dependents again.
B. The dependent cells are indicated by the blue arrow heads:
We fixed that one, but what’s to prevent another such “triangle” from sneaking into our workbook.
After all, we enter the side lengths in one worksheet, but the formulas calculating the height and area
are in another. If a change we make results in a triangle with a height and area of 0.0, we could easily
miss it. The Watch Window can help us keep an eye on those formulas and their results.
3. Click Watch Window on the Formula Auditing group on the Formulas tab:
5. Verify that Excel chose the right cells to watch and then click Add:
Notice the Watch Window shows the Book, Sheet, Name (if there is one), Cell, Value, and
Formula for each watch.
7. Now, go to the Sides sheet. Notice the Watch Window remains open, so you can continue
to watch those formulas.
9. Depending on how big your window is and how many formulas you’re watching, you may
need to scroll to look for issues. Or, in our case, since we’re specifically looking for 0.0 values,
we can just re-sort the Watch Window by Value to make any 0.0 values rise to the top.
If you want to watch more cells, just click the Add Watch… button in the Watch Window.
When you have watches in an open workbook, all other open workbooks will show those watches too.
This can be useful when the workbooks are linked in some way, but it can be distracting if you’re
working on two unrelated workbooks. If you don’t want to see watches from a different workbook,
you can either close the Watch Window or close the workbook with the watches.
Notice that 3*5 is underlined. That indicates that that is the next part of the formula that
will be evaluated.
7. Click the Evaluate button to evaluate the underlined part of the formula. The formula will
change to 7+15:
Notice that the 15 is italicized. That indicates that that is the part of the formula that was just
evaluated.
8. Click Evaluate again and the formula will change to 22, which is the final value. To run
through the evaluation again, click the Restart button.
Notice that 7+3 is underlined. That indicates that that is the next part of the formula that
will be evaluated.
13. Click the Evaluate button to evaluate the underlined part of the formula. The formula will
change to (10)*5:
Notice that the 10 is italicized and (10) is underlined. That indicates that 10 is the part of
the formula that was just evaluated and (10) is the next part of the formula that will be
evaluated.
14. Click Evaluate again and the formula will change to 10*5.
15. Click Evaluate again and the formula will change to 50, which is the final value.
Now that you have seen the basic functionality, let’s look at a more complex formula, one that references
other cells.
Notice that B2 is underlined. That indicates that that is the next part of the formula that will
be evaluated. But don’t evaluate it yet…
AND(4=C2,C2=D2)
AND(4=3,C2=D2)
AND(FALSE,C2=D2)
AND(FALSE,3=D2)
AND(FALSE,3=5)
AND(FALSE,FALSE)
FALSE
The Evaluate Formula dialog can be incredibly helpful when trying to figure out how a formula works
or why it doesn’t work as you think it should.
Another trick, which we have shown you before, that makes a formula easier to read is to copy and
paste a complex formula into a text editor and then break it across lines, like this:
=AND(B2=C2,C2=D2)
Here’s another example with the more complex formula we use to calculate if a triangle is a right
triangle:
=IFS(MAX(B2:D2)=B2,B2=SQRT(C2^2+D2^2),MAX(B2:D2)=C2,C2=SQRT(B2^2+D2^2),MAX(B2:D2)=D2,D2=SQRT(C2^2+B2^2))
=IFS(
MAX(B2:D2)=B2,
B2=SQRT(C2^2+D2^2),
MAX(B2:D2)=C2,
C2=SQRT(B2^2+D2^2),
MAX(B2:D2)=D2,
D2=SQRT(C2^2+B2^2)
)
And here is the formula used to calculate the area of the triangles:
=LET(a,Sides!B2,b,Sides!C2,c,Sides!D2,p,(a+b+c)/2,SQRT(p*(p-a)*(p-b)*(p-c)))
=LET(
a,Sides!B2,
b,Sides!C2,
c,Sides!D2,
p,(a+b+c)/2,
SQRT(p*(p-a)*(p-b)*(p-c))
)
Note that we didn’t say this trick makes those formulas easy to read; we just said it makes them easier
to read.
3.5.1. Typos
1. Open a new workbook.
2. In cell A1, enter 1.
3. In cell B1, enter 2.
4. In cell C1, enter =1A+1B. Note that the formula should be =A1+B1, but we want you to
intentionally enter it wrong.
5. When you press Tab or Enter, Excel will pop up a dialog letting you know it found a typo
and suggesting a correction:
3.5.2. Inconsistencies
1. Continue in the same workbook.
2. In cell A2, enter 2.
3. In cell B2, enter 3.
8. Click Help on this Error. This will open the Help pane with troubleshooting steps:
Often you can catch errors as they arise, but you may find yourself with the need to audit a large
workbook. Rather than going sheet by sheet looking for the green arrows on the cells, you can run
through all the errors using Excel’s Error Checking dialog. To open that, click Error Checking in the
Formula Auditing group of the Formulas tab:
Conclusion
In this lesson, you learned to inspect workbooks for compatibility and accessibility issues, to audit
formulas, to trace precedents and dependents to determine how cells depend on each other, to use the
Watch Window to keep and eye on formulas, to evaluate formulas, and to check a workbook for errors.
Topics Covered
Data validation.
Goal Seek.
Introduction
Data Tools in Microsoft Excel are simply tools that make it easy to manipulate data. Some of them
are intended to save you time by extracting or joining data and others perform complex calculations.
This lesson covers the most commonly used Data Tools.
If you would like to follow along with the examples in this section, which we recommend doing,
open the TextToColumns tab of excel365-data-tools/Demos/Data.xlsx.
That’s because the Home Runs tab is using external data. You can safely click Enable Content
or just ignore the warning.
1. Select the column that holds the text you want to convert into multiple columns.
2. On the Data tab, in the Data Tools group, click the Text to Columns command:
3. In the Convert Text to Columns Wizard - Step 1 of 3 dialog, select either Delimited (if
your data is separated by commas, tabs, spaces, or some common character) or Fixed Width
(if your data contains a certain number of characters in each field). You will almost always
select Delimited in this step. Click Next:
Wilson,Phillips,Hold On
Roxette,,It Must Have Been Love
Sinéad,O'Connor,Nothing Compares 2 U
Madonna,,Vogue
Mariah,Carey,Vision of Love
Roxette and Madonna don’t have last names. If the consecutive commas were treated
as one, then their songs would go in the last name column. So, we don’t want to
treat them as one. In other cases, you’ll have data that has one or more spaces between
each column, but the multiple spaces don’t indicate a separation of content. In those
cases, you will want to treat the consecutive delimiters as one.
5. In the Convert Text to Columns Wizard - Step 3 of 3 dialog, you can select the data format
for each column or you can elect not to import a column. Simply select the column under
Presidents Sheet
1. In step 2 of the Convert Text to Columns Wizard dialog, check Space for the delimiter,
click Next.
2. In step 3, click Finish.
Capitols Sheet
1. In step 2 of the Convert Text to Columns Wizard dialog, check Comma for the delimiter,
click Next.
2. In step 3, set the Destination to cell C1 and click Finish.
Note that this will create an extra blank cell between the city and the state abbreviation. When we split
the text on commas, the final cell had a leading space before the state abbreviation. Excel treats that
leading space as a delimiter, so it adds an empty cell before it. You can just delete the empty column.
1. In step 2 of the Convert Text to Columns Wizard dialog, check Other, enter a dash (-).
2. In step 3, click Finish.
The process of importing text files is similar to the process of converting text to columns. To import
a text file into Microsoft Excel:
Click OK.
4. In the Navigator dialog, select Table 0. Notice the table preview in the area on the right:
Click Load
5. A table will be created from the data. You can refresh this table in the Queries & Connections
pane by right-clicking the table name and selecting Refresh:
Again, this just gives a you a feel for what is possible. See Microsoft’s documentation on Power
Query in Excel (https://support.microsoft.com/en-us/office/about-power-query-
in-excel-7104fbee-9e62-4cb9-a02e-5bfb1a6c536a) to learn more.
To change your settings so that all calculations must always be manually run:
Updating Calculations
After doing this, you will need to manually update calculations using the options in the Calculation
group of the Formulas tab:
To update calculations for the entire workbook, click Calculate Now or press F9.
To update calculations for just the current worksheet, click Calculate Sheet or press Shift+F9.
Again, we don’t recommend you change this setting unless you find your workbook is not responding
quickly. In that case, we recommend you try changing the setting on just that workbook.
To turn off automatic calculations for the current workbook, select Calculation Options > Manual
from the Calculation group on the Formulas tab:
B. Note that when you select a type of value to allow, the Data options change
accordingly. Set the criteria (e.g., between, greater or less than, equal to, Source,
etc.) for those values:
C. If you want to, you can enter a message telling the person entering the data what the
restrictions are. They will see this message when selecting any of the cells for which
the restriction has been set. To enter this message, select the Input Message tab,
make sure that Show input message when cell is selected is checked, and enter the
Title and Input message:
D. You also have the option of entering an error alert that pops up when invalid data
is entered. To enter an error alert, select the Error Alert tab, make sure that Show
error alert after invalid data is entered is checked, and enter the Style (choose to
stop the person from entering the data, warn them that this data does not meet the
criteria, or simply let them know), Title, and Error message:
To restrict the data that can be entered into cells C2:C17 to the list of salespeople on the Salespeople
sheet:
1. In the Data Validation dialog, on the Settings tab, under Allow, select List:
1. In the Data Validation dialog, on the Settings tab, under Allow, select Date. Under Data,
select between. Under Start date, enter 1/1/2023 and under End date, enter 12/31/2023.
Click OK:
2. Only dates in 2023 are allowed in cells D2:D17 now. Entering another date will result in an
error message:
1. In the Data Validation dialog, on the Settings tab, under Allow, select List:
3. Select the Input Message tab and enter a Title and an Input message:
4. Select the Error Alert tab, enter a Title and an Error message, and then click OK:
1. On the Data tab, in the Data Tools group, click the Consolidate command:
Note that, if your Excel window is smaller, you may only see the icon:
1. In the Consolidate dialog, set the Function to Min. Note that the series of data from the
prior exercise already appears in the All references box. Were we using different data, you
could delete these references and add others. As we are using the same data in this exercise,
simply click OK:
1. In the Consolidate dialog, set the Function to Max. Once again, as we are using the same
data as in the prior exercises and it already appears in the All references box, simply click OK:
1. On the Data tab, in the Forecast group, click the What-If-Analysis command and select
Goal Seek.
2. In the Goal Seek dialog:
A. In the Set cell box, enter the cell for which you know the result (if you selected this
cell before clicking Goal Seek, then it is already filled in).
B. In the To value box, enter the value for the cell above.
C. In the By changing cell box, enter the cell to adjust in order to obtain the value.
(Remember, this cell must be related via a formula to the cell above or else changing
one won’t impact the other.)
3. In the Goal Seek Status dialog, after the calculation has completed, click OK to accept the
change or Cancel to reject it:
1. On the Data tab, in the Forecast group, click the What-If-Analysis command and select
Scenario Manager.
2. In the Scenario Manager dialog, click Add. Type a name for the scenario in the Scenario
name text box, and in the Changing cells text box, type the names of the cells you want to
change and click OK:
After adding multiple scenarios, you can open the Scenario Manager and try different ones by
double-clicking them:
A. How many months (periods) it will take to pay off your boat if you can only pay
$100 per month.
B. How many months (periods) it will take to pay off your first car if you can only pay
$250 per month.
C. How many months (periods) it will take to pay off your second car if you can pay
$200 per month.
D. How many months (periods) it will take to pay off your house if you can pay $1,000
per month.
3. The Grades worksheet contains scores for a number of students on four exams, an empty
column where the score for the fifth exam will go, and a column showing the average score
on all exams. Use Goal Seek to figure out:
A. What grade Babe Ruth needs to get on the last exam to raise his final grade to 90.
B. What grade Barry Bonds needs to get on the last exam to achieve a passing grade
(65).
C. What the lowest grade Cal Ripken can get on the last exam to finish with a final
grade of 90.
To determine how many months it will take to pay off your boat if you can only pay $100 per month:
2. In the Goal Seek Status dialog, after the calculation has completed, click OK to accept the
change:
3. The correct result is 63 months.
To determine how many months it will take to pay off your first car if you can only pay $250 per
month:
2. In the Goal Seek Status dialog, after the calculation has completed, click OK to accept the
change:
3. The correct result is 148 months.
2. In the Goal Seek Status dialog, after the calculation has completed, click OK to accept the
change:
3. The correct result is 42 months.
To determine how many months it will take to pay off your house if you can pay $1,000 per month:
2. In the Goal Seek Status dialog, after the calculation has completed, click OK to accept the
change:
3. The correct result is 252 months.
To figure out what grade Babe Ruth needs to get to raise his final grade to 90, go to the Grades sheet
and then:
2. In the Goal Seek Status dialog, after the calculation has completed, click OK to accept the
change:
3. Babe Ruth needs a 100 on the final exam to raise his average to 90.
To figure out what grade Barry Bonds needs to get on the last exam to achieve a passing grade (65):
3. In the Goal Seek Status dialog, after the calculation has completed, click OK to accept the
change:
4. Barry Bonds needs a 133 on the final exam to achieve a passing grade. Poor Barry Bonds.
To figure out the lowest grade Cal Ripken can get on the last exam to finish with a final grade of 90:
1. On the Data tab, in the Forecast group, click the What-If-Analysis command and then click
Goal Seek:
2. In the Goal Seek dialog:
A. In the Set cell box, enter cell G9.
B. In the To value box, enter 90.
C. In the By changing cell box, enter F9:
D. Click OK.
3. In the Goal Seek Status dialog, after the calculation has completed, click OK to accept the
change:
4. Cal Ripken needs at least a 79 on the final exam to finish with a final grade of 90.
Conclusion
In this lesson, you learned the possibility to import data from an online source, to convert text to
columns, to use Data Validation to restrict the type of data that can be entered into a cell, to consolidate
data from a number of different ranges into one new range, and to use Goal Seek to figure out the
value to input to obtain a specific result.
Topics Covered
Recording macros.
Running macros.
Introduction
A macro is a set of recorded actions. As you work with Excel, you may find that you repeat certain
operations frequently. Instead of performing each step of the operation every time, you can create a
macro that stores these steps. You can then run the macro to auto-run the steps for you, saving you
both time and effort.
1. On the View tab, in the Macros group, click the Macros command:
1. Select the Developer tab, and select Macro Security from the Code group:
1. On the View tab, in the Macros group, click the Macros command:
3. In the Macro dialog, choose the macro you want to run and click Run:
Try this out in the Macros.xlsx spreadsheet in which you just created a macro. The Employees sheet
does not currently have a header or footer. Follow the instructions above to add a header and footer
using the macro you created in the last exercise.
Depending on your security settings, you may need to enable Macros. File > Options > Trust Center
> Macro Settings Note these settings are often configured by your organization as security policies are
often strict for good reason. See below.
Using the VBA editor you may copy code from one macro script to another. This is helpful if you wish
to share your logic or need to add functionality form one macro to another.
To edit a macro:
1. On the View tab, in the Macros group, click the Macros command:
3. In the Macro dialog, choose the macro you want to change and click Edit to open the macro
in the Microsoft Visual Basic for Applications window:
5. You can now see and run the macro on the Quick Access Toolbar:
5. Use the options in the Trust Center dialog to set security options:
3. In the Excel Options dialog on the Quick Access Toolbar tab, from the Choose commands
from drop-down list, select Macros:
5. You can now see and run the macro on the Quick Access Toolbar:
Topics Covered
Password protection.
Introduction
In this lesson, you will learn to add comments and notes, to password protect a workbook, a worksheet,
and specific ranges in a worksheet, and to mark a workbook final.
If you would like to follow along with the examples in this lesson, which we recommend doing,
open excel365-working-with-others/Demos/Collaborating.xlsx.
Comments are used to have threaded discussions with other people working on your workbook. Notes
are used to add a simple note to a cell. Other people collaborating with you on the workbook can
respond to your comments, but not to your notes.
In the upper right of the comment box, you have the cell reference (E1), a pencil icon for
editing the comment (if its your comment), and an ellipsis button (three dots) that opens up
two other options: one for deleting the thread and another for resolving it. A resolved thread
can no longer be replied to, but can be reopened:
But it’s generally easier to use the Comments pane, which you open and close with the Show Comments
command:
6.1.2. Notes
Notes are for providing information only. They cannot be replied to. Excel alerts you to the fact that
there is a note with a red triangle icon. When you select the cell, the note will pop up:
You can review and manage notes from the Notes command on the Review tab:
While you cannot include a note and a comment on the same cell, you can convert all notes to comments
using the Notes > Convert to Comments command shown in the preceding screenshot.
Notes are new in Office 365. In older versions of Excel, comments behaved like notes. They
were not threaded as they are in 365.
1. Password protect a workbook. You can protect your workbook with a password, thereby
preventing people who do not know the password from opening or modifying (your choice)
the workbook.
2. Password protect a worksheet. You can protect individual worksheets with a password.
Others can view the sheet, but you determine what, if any, changes they can make without a
password.
3. Password protect ranges in a worksheet. If you want to allow people to edit some cells in a
worksheet, but not others, you can protect the worksheet but leave those cells you want people
to edit “unlocked” and, therefore, editable.
3. By default, it will save over the existing file (after giving you a warning). If you want to save
the file with a different name or in a new location, select where you want to save the file. Once
you have the name and location set, click Tools > General Options:
5. Read the Confirm Password dialog (the messages for opening and confirming are different),
reenter the password, and click OK:
1. Click Protect Sheet in the Protect group on the Review tab, add a password, and click OK:
Users who try to edit protected worksheets will get the following prompt:
1. If the worksheet is protected, you must first unprotect it by clicking the Unprotect Sheet
command in the Protect group of the Review tab, and then entering the password.
2. Select the range you want to protect and click the Allow Edit Ranges command in the Protect
group on the Review tab:
5. In the Confirm Password dialog, reenter the password and click OK:
1. With the Passwords sheet open, select column C, and click the Allow Edit Ranges command
in the Protect group on the Review tab:
1. We want to protect the rest of the worksheet with a different password, so with the Allow
Users to Edit Ranges dialog still open, click Protect Sheet…:
1. Select the File menu tab, and from the Info section, click Protect Workbook > Mark as
Final: