Professional Documents
Culture Documents
Microsoft Excel (Day2, Tue)
Microsoft Excel (Day2, Tue)
Compiled By
Addis Ababa City Administration
Innovation and Technology
Development Bureau
March, 2023
Addis Ababa
CONTENTS
Get started on how to create formulas and use built-in functions to perform calculations and
solve problems.
1. Select a cell.
2. Type the equal sign =.
6. Press Enter. The result of the calculation appears in the cell with the formula.
SEE A FORMULA
When a formula is entered into a cell, it also appears in the Formula bar.
FORMULAS IN-DEPTH
You can browse through the individual sections below to learn more about specific formula
elements.
A formula can also contain any or all of the following: functions, references, operators,
and constants.
Parts of a formula
4. Operators: The ^ (caret) operator raises a number to a power, and the * (asterisk) operator
multiplies numbers.
A constant is a value that is not calculated; it always stays the same. For example, the date
10/9/2008, the number 210, and the text "Quarterly Earnings" are all constants. An expression
A reference identifies a cell or a range of cells on a worksheet, and tells Excel where to look
for the values or data you want to use in a formula. You can use references to use data contained
in different parts of a worksheet in one formula or use the value from one cell in several
formulas. You can also refer to cells on other sheets in the same workbook, and to other
workbooks. References to cells in other workbooks are called links or external references.
By default, Excel uses the A1 reference style, which refers to columns with letters
(A through XFD, for a total of 16,384 columns) and refers to rows with numbers
(1 through 1,048,576). These letters and numbers are called row and column
headings. To refer to a cell, enter the column letter followed by the row number.
For example, B2 refers to the cell at the intersection of column B and row 2.
To refer to Use
In the following example, the AVERAGE function calculates the average value for the range
B1:B10 on the worksheet named Marketing in the same workbook.
3. The exclamation point (!) separates the worksheet reference from the cell range reference
Note: If the referenced worksheet has spaces or numbers in it, you need to add apostrophes
(') before and after the worksheet name, like ='123'!A1 or ='January Revenue'!A1.
You can use 3-D references to refer to cells on other sheets, to define
names, and to create formulas by using the following functions: SUM,
AVERAGE, AVERAGEA, COUNT, COUNTA, MAX, MAXA, MIN,
MINA, PRODUCT, STDEV.P, STDEV.S, STDEVA, STDEVPA, VAR.P,
VAR.S, VARA, and VARPA.
What occurs when you move, copy, insert, or delete worksheets The
following examples explain what happens when you move, copy, insert, or delete
worksheets that are included in a 3-D reference. The examples use the formula
=SUM(Sheet2:Sheet6!A2:A5) to add cells A2 through A5 on worksheets 2
through 6.
Insert or copy If you insert or copy sheets between Sheet2 and Sheet6
(the endpoints in this example), Excel includes all values in cells A2
through A5 from the added sheets in the calculations.
Delete If you delete sheets between Sheet2 and Sheet6, Excel removes
their values from the calculation.
Move If you move sheets from between Sheet2 and Sheet6 to a location
outside the referenced sheet range, Excel removes their values from the
calculation.
You can also use a reference style where both the rows and the columns on the
worksheet are numbered. The R1C1 reference style is useful for computing row
and column positions in macros. In the R1C1 style, Excel indicates the location of
a cell with an "R" followed by a row number and a "C" followed by a column
number.
Reference Meaning
R[-2]C A relative reference to the cell two rows up and in the same column
R[2]C[2] A relative reference to the cell two rows down and two columns to the right
R2C2 An absolute reference to the cell in the second row and in the second column
R[-1] A relative reference to the entire row above the active cell
When you record a macro, Excel records some commands by using the R1C1
reference style. For example, if you record a command, such as selecting
the AutoSum button to insert a formula that adds a range of cells, Excel records
the formula by using R1C1 style, not A1 style, references.
You can turn the R1C1 reference style on or off by setting or clearing the R1C1
reference style check box under the Working with formulas section in
the Formulas category of the Options dialog box. To display this dialog box,
select the File tab.
Tip: Try using the new XLOOKUP and XMATCH functions, improved versions of the
functions described in this article. These new functions work in any direction and return exact
matches by default, making them easier and more convenient to use than their predecessors.
Suppose that you have a list of office location numbers, and you need to know which employees
are in each office. The spreadsheet is huge, so you might think it is challenging task. It's actually
quite easy to do with a lookup function.
The VLOOKUP and HLOOKUP functions, together with INDEX and MATCH, are some of
the most useful functions in Excel.
=VLOOKUP(B2,C2:E7,3,TRUE)
In this example, B2 is the first argument—an element of data that the function needs to work.
For VLOOKUP, this first argument is the value that you want to find. This argument can be a
cell reference, or a fixed value such as "smith" or 21,000. The second argument is the range of
cells, C2-:E7, in which to search for the value you want to find. The third argument is the
column in that range of cells that contains the value that you seek.
The fourth argument is optional. Enter either TRUE or FALSE. If you enter TRUE, or leave
the argument blank, the function returns an approximate match of the value you specify in the
first argument. If you enter FALSE, the function will match the value provide by the first
argument. In other words, leaving the fourth argument blank—or entering TRUE—gives you
more flexibility.
This example shows you how the function works. When you enter a value in cell B2 (the first
argument), VLOOKUP searches the cells in the range C2:E7 (2nd argument) and returns the
closest approximate match from the third column in the range, column E (3rd argument).
When you're comfortable with VLOOKUP, the HLOOKUP function is equally easy to use.
You enter the same arguments, but it searches in rows instead of columns.
There are certain limitations with using VLOOKUP—the VLOOKUP function can only look
up a value from left to right. This means that the column containing the value you look up
should always be located to the left of the column containing the return value. Now if your
spreadsheet isn't built this way, then do not use VLOOKUP. Use the combination of INDEX
and MATCH functions instead.
This example shows a small list where the value we want to search on, Chicago, isn't in the
leftmost column. So, we can't use VLOOKUP. Instead, we'll use the MATCH function to find
Chicago in the range B1:B11. It's found in row 4. Then, INDEX uses that value as the lookup
argument, and finds the population for Chicago in the 4th column (column D). The formula
used is shown in cell A14.
If you want to experiment with lookup functions before you try them out with your own data,
here's some sample data.
1.09 1.95 50
1.29 1.71 0
=VLOOKUP(0.7,A2:C10,3,FALSE) Using an exact match, searches for the value 0.7 in #N/A
column A. Because there is no exact match in
column A, an error is returned.
HLOOKUP EXAMPLE
Copy all the cells in this table and paste it into cell A1 on a blank worksheet in Excel.
Tip: Before you paste the data into Excel, set the column widths for columns A through C to 250 pixels,
and click Wrap Text (Home tab, Alignment group).
4 4 9
5 7 10
6 8 11
=HLOOKUP("Axles", A1:C4, 2, Looks up "Axles" in row 1, and returns the value from row 2 4
TRUE) that's in the same column (column A).
=HLOOKUP("Bearings", A1:C4, Looks up "Bearings" in row 1, and returns the value from 7
3, FALSE) row 3 that's in the same column (column B).
=HLOOKUP("B", A1:C4, 3, Looks up "B" in row 1, and returns the value from row 3 5
TRUE) that's in the same column. Because an exact match for "B" is
not found, the largest value in row 1 that is less than "B" is
used: "Axles," in column A.
=HLOOKUP("Bolts", A1:C4, 4) Looks up "Bolts" in row 1, and returns the value from row 4 11
that's in the same column (column C).
This last example employs the INDEX and MATCH functions together to return the earliest
invoice number and its corresponding date for each of five cities. Because the date is returned
as a number, we use the TEXT function to format it as a date. The INDEX function actually
uses the result of the MATCH function as its argument. The combination of the INDEX and
MATCH functions are used twice in each formula – first, to return the invoice number, and
then to return the date.
Copy all the cells in this table and paste it into cell A1 on a blank worksheet in Excel.
Tip: Before you paste the data into Excel, set the column widths for columns A through D to 250 pixels,
and click Wrap Text (Home tab, Alignment group).
TEXT(INDEX($A$2:$C$33,MATCH("New
Orleans",$B$2:$B$33,0),3),"m/d/yy")
If you want to quickly get the Sum of a range of cells, all you need to do is select the range
and look in the lower right-hand side of the Excel window.
This is the Status Bar, and it displays information regarding whatever you have selected,
whether it's a single cell or multiple cells. If you right-click on the Status Bar a feature dialog
The easiest way to add a SUM formula to your worksheet is to use the AutoSum Wizard. Select
an empty cell directly above or below the range that you want to sum, and on the Home or
Formula tabs on the Ribbon, press AutoSum > Sum. The AutoSum Wizard will automatically
sense the range to be summed and build the formula for you. It can also work horizontally if
you select a cell to the left or right of the range to be summed. Note it’s not going to work on
non-contiguous ranges, but we'll go over that in the next section.
The AutoSum dialog also lets you select other common functions like:
Average
Count numbers
Max
Min
More functions
AutoSum vertically
AutoSum horizontally
You can quickly select multiple, non-contiguous ranges with Ctrl+Left Click. First, enter
“=SUM(“, then select your different ranges and Excel will automatically add the comma
separator between ranges for you. Press enter when you’re done.
TIP: you can use ALT+ = to quickly add the SUM function to a cell. Then all you need to do
is select your range(s).
Note: you may notice how Excel has highlighted the different function ranges by color, and
they match within the formula itself, so C2:C3 is one color, and C5:C6 is another. Excel will
do this for all functions, unless the referenced range is on a different worksheet or in a different
workbook. For enhanced accessibility with assistive technology, you can use Named Ranges,
like “Week1”, “Week2”, etc. and then reference them in your formula:
=SUM(Week1,Week2)
1. You can absolutely use SUM with other functions. Here’s an example that creates
a monthly average calculation:
2. Which takes the SUM of A2:L2 divided by the count of non-blank cells in A2:L2
(May through December are blank).
=Sheet1!A1+Sheet2!A1+Sheet3!A1
=SUM(Sheet1:Sheet3!A1)
Which will sum the cell A1 in all sheets from Sheet 1 to Sheet 3.
This is particularly helpful in situations where you have a single sheet for each
month (January-December) and you need to total them on a summary sheet.
Which will sum cell A2 in each sheet from January through December.
Notes: If your worksheets have spaces in their names, like “January Sales”, then
you need to use an apostrophe when referencing the sheet names in a formula.
Notice the apostrophe BEFORE the first worksheet name, and again AFTER the
last.
The 3D method will also work with other functions like AVERAGE, MIN, MAX,
etc:
=AVERAGE(Sheet1:Sheet3!A1)
=MIN(Sheet1:Sheet3!A1)
=MAX(Sheet1:Sheet3!A1)
You can easily perform mathematical operations with Excel on their own, and in conjunction
with Excel functions like SUM. The following table lists the operators that you can use, along
with some related functions. You can input the operators from either the number row on your
keyboard, or the 10-key pad if you have one. For instance, Shift+8 will enter the asterisk (*)
for multiplication.
=A1+B1
=SUM(A1:A10)+10
=SUM(A1:A10)+B1
- Subtraction =1-1
=A1-B1
=SUM(A1:A10)-10
=SUM(A1:A10)-B1
* Multiplication =1*1
=A1*B1
=SUM(A1:A10)*10
=SUM(A1:A10)*B1
/ Division =1/1
=A1/B1
=SUM(A1:A10)/10
=SUM(A1:A10)/B1
=A1^B1
=SUM(A1:A10)^10
=SUM(A1:A10)^B1
OTHER EXAMPLES
1. Let’s say you want to apply a Percentage Discount to a range of cells that you’ve
summed.
=SUM(A2:A14)*-25%
Would give you 25% of the summed range, however that hard-codes the 25% in
the formula, and it might be hard to find later if you need to change it. You’re much
=SUM(A2:A14)*E2
i. You can easily Add or Subtract from a Sum using + or - like this:
=SUM(A1:A10)+E2
=SUM(A1:A10)-E2
SUMIF FUNCTION
You use the SUMIF function to sum the values in a range that meet criteria that you specify.
For example, suppose that in a column that contains numbers, you want to sum only the values
that are larger than 5. You can use the following formula: =SUMIF(B2:B25,">5")
Tips:
If you want, you can apply the criteria to one range and sum the corresponding
values in a different range. For example, the formula =SUMIF(B2:B5, "John",
C2:C5) sums only the values in the range C2:C5, where the corresponding cells in
the range B2:B5 equal "John."
To sum cells based on multiple criteria, see SUMIFS function.
Important: The SUMIF function returns incorrect results when you use it to match strings
longer than 255 characters or to the string #VALUE!.
Syntax
range Required. The range of cells that you want evaluated by criteria. Cells in
each range must be numbers or names, arrays, or references that contain numbers.
For example, criteria can be expressed as 32, ">32", B5, "3?", "apple*", "*~?", or
TODAY().
Important: Any text criteria or any criteria that includes logical or mathematical
symbols must be enclosed in double quotation marks ("). If the criteria is numeric,
double quotation marks are not required.
sum_range Optional. The actual cells to add, if you want to add cells other than
those specified in the range argument. If the sum_range argument is omitted,
Excel adds the cells that are specified in the range argument (the same cells to
which the criteria is applied).
Sum_range should be the same size and shape as range. If it isn't, performance
may suffer, and the formula will sum a range of cells that starts with the first cell
in sum_range but has the same dimensions as range. For example:
EXAMPLES
EXAMPLE 1
Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet.
For formulas to show results, select them, press F2, and then press Enter. If you need to, you
can adjust the column widths to see all the data.
$300,000 $21,000
$400,000 $28,000
EXAMPLE 2
Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet.
For formulas to show results, select them, press F2, and then press Enter. If you need to, you
can adjust the column widths to see all the data.
=SUMIF(A2:A7,"",C2:C7) Sum of the sales of all foods that do not have $400
a category specified.
COUNTIF FUNCTION
Use COUNTIF, one of the statistical functions, to count the number of cells that meet a
criterion; for example, to count the number of times a particular city appears in a customer list.
For example:
=COUNTIF(A2:A5,"London")
=COUNTIF(A2:A5,A4)
SYNTAX
COUNTIF(range, criteria)
range (required) The group of cells you want to count. Range can
contain numbers, arrays, a named range, or
references that contain numbers. Blank and text
values are ignored.
EXAMPLES
To use these examples in Excel, copy the data in the table below, and paste it in cell A1 of a
new worksheet.
Data Data
apples 32
oranges 54
peaches 75
apples 86
Formula Description
COMMON PROBLEMS
Wrong value returned for The COUNTIF function returns incorrect results when you
long strings. use it to match strings longer than 255 characters.
A COUNTIF formula This error occurs when the formula that contains the function
receives a #VALUE! error refers to cells or a range in a closed workbook and the cells
when referring to another are calculated. For this feature to work, the other workbook
worksheet. must be open.
BEST PRACTICES
Do this Why
Be aware that Criteria aren't case sensitive. In other words, the string "apples"
COUNTIF ignores and the string "APPLES" will match the same cells.
upper and lower
case in text strings.
Note: Your data should be organized in columns with a single header row. See
the Data format tips and tricks section for more details.
Note: Selecting Add this data to the Data Model adds the table or range being
used for this PivotTable into the workbook’s Data Model. Learn more.
5. Select OK.
By clicking the down arrow on the button, you can select from other possible sources for your
PivotTable. In addition to using an existing table or range, there are three other sources you
can select from to populate your PivotTable.
Note: Depending on your organization's IT settings you might see your organization's name i
ncluded in the list. For example, "From Power BI (Microsoft)."
Use this option if your workbook contains a Data Model, and you want to create a PivotTable
from multiple tables, enhance the PivotTable with custom measures, or are working with very
large datasets.
Use this option if your organization uses Power BI and you want to discover and connect to
endorsed cloud datasets you have access to.
Note: Selected fields are added to their default areas: non-numeric fields are added
to Rows, date and time hierarchies are added to Columns, and numeric fields are
added to Values.
2. To move a field from one area to another, drag the field to the target area.
REFRESHING PIVOTTABLES
If you add new data to your PivotTable data source, any PivotTables that were built on that
data source need to be refreshed. To refresh just one PivotTable, you can right-click anywhere
in the PivotTable range, and then select Refresh. If you have multiple PivotTables, first select
Summarize Values By
By default, PivotTable fields placed in the Values area are displayed as a SUM. If Excel
interprets your data as text, the data is displayed as a COUNT. This is why it's so important to
make sure you don't mix data types for value fields. You can change the default calculation by
first selecting the arrow to the right of the field name, and then select the Value Field
Settings option.
Next, change the calculation in the Summarize Values By section. Note that when you change
the calculation method, Excel automatically appends it in the Custom Name section, like "Sum
of FieldName", but you can change it. If you select Number Format, you can change the
number format for the entire field.
Show Values As
Instead of using a calculation to summarize the data, you can also display it as a percentage of
a field. In the following example, we changed our household expense amounts to display as
a % of Grand Total instead of the sum of the values.
Simply drag the item into the Values section twice, and then set the Summarize Values
By and Show Values As options for each one.
After you create a PivotTable, you'll see the Field List. You can change the design of the
PivotTable by adding and arranging its fields. If you want to sort or filter the columns of data
shown in the PivotTable, see Sort data in a PivotTable and Filter data in a PivotTable.
The Field List should appear when you click anywhere in the PivotTable. If you click inside
the PivotTable but don't see the Field List, open it by clicking anywhere in the PivotTable.
Then, show the PivotTable Tools on the ribbon and click Analyze> Field List.
Tip: If you want to change how sections are shown in the Field List, click
the Tools button and then pick the layout you want.
Use the field section of the Field List to add fields to your PivotTable, by checking the box
next to field names to place those fields in the default area of the Field List.
Note: Typically, nonnumeric fields are added to the Rows area, numeric fields are added to
the Values area, and Online Analytical Processing (OLAP) date and time hierarchies are added
to the Columns area.
Use the areas section (at the bottom) of the Field List to rearrange fields the way you want by
dragging them between the four areas.
Fields that you place in different areas are shown in the PivotTable as follows:
Filters area fields are shown as top-level report filters above the PivotTable, like
this:
Rows area fields are shown as Row Labels on the left side of the PivotTable,
like this:
Depending on the hierarchy of the fields, rows may be nested inside rows that are higher in
position.
Values area fields are shown as summarized numeric values in the PivotTable, like
this:
To delete a field from the PivotTable, drag the field out of its areas section. You can also
remove fields by clicking the down arrow next to the field and then selecting Remove Field.
Sorting data is helpful when you have large amounts of data in a PivotTable or PivotChart.
You can sort in alphabetical order, from highest to lowest values, or from lowest to highest
values. Sorting is one way of organizing your data so it’s easier to find specific items that need
more scrutiny.
Data that has leading spaces will affect the sort results. For optimal results, remove any leading
spaces before you sort the data.
You can’t sort data by a specific format, such as cell color or font color. Nor can you sort by
conditional formatting indicators, such as icon sets.
1. In a PivotTable, click the small arrow next to Row Labels and Column
Labels cells.
3. Click the arrow on Row Labels or Column Labels, and then click the sort
option you want.
Text entries will sort in alphabetical order, numbers will sort from smallest to largest (or vice
versa), and dates or times will sort from oldest to newest (or vice versa).
You can sort on individual values or on subtotals by right-clicking a cell, choosing Sort, and
then choosing a sort method. The sort order applies to all the cells at the same level in the
column that contains the cell.
In the example shown below, the data under the category level (Helmet, Travel bag) has an
alphabetical sort from A to Z.
Tip: To quickly find what you need, you can group, filter, or apply conditional formatting to the
PivotTable or PivotChart.
To sort specific items manually or change the sort order, you can set your own sort options:
2. Click the arrow on Row Labels or Column Labels, and then click More Sort
Options.
Click Manual to rearrange items by dragging them. Hover the cursor over the
item's border until you see the four-pointed arrow, then drag.
You can't drag items that are shown in the Values area of the PivotTable Field List.
In AutoSort, check or uncheck the box for Sort automatically every time the
report is update— either to permit or stop automatic sorting whenever the
PivotTable data updates.
Under First key sort order, choose the custom order you want to use. This option
is available only when there is no check in the box for Sort automatically every
time the report is updated.
Note: A custom list sort order is not retained when you update (refresh) data in
your PivotTable.
In Sort By, click Grand Total or Values in selected columns to sort by these
values. This option is not available when you set sorting to Manual.
Grouping data in a PivotTable can help you show a subset of data to analyze. For example, you
may want to group an unwieldy list date and time fields in the PivotTable into quarters and
months
GROUP DATA
2. In the Grouping box, select Starting at and Ending at checkboxes, and edit the
values if needed.
3. Under By, select a time period. For numerical fields, enter a number that
specifies the interval for each group.
4. Select OK.
With time grouping, relationships across time-related fields are automatically detected and
grouped together when you add rows of time fields to your PivotTables. Once grouped
together, you can drag the group to your Pivot Table and start your analysis.
2. Select Analyze > Field Settings. In the PivotTable Analyze tab under Active
Field click Field Settings.
3. Change the Custom Name to something you want and then select OK.
2. Select Ungroup.
PivotTables are great for taking large datasets and creating in-depth detail summaries.
1. Select any cell within the PivotTable, then go to Pivot Table Analyze > Insert
Slicer .
2. Select the fields you want to create slicers for. Then select OK.
3. Excel will place one slicer on the worksheet for each selection you made, but it's
up to you to arrange and size them however is best for you.
4. Click the slicer buttons to select the items you want to show in the PivotTable.
Manual filters use AutoFilter. They work in conjunction with slicers, so you can use a slicer to
create a high-level filter, then use AutoFilter to dive deeper.
1. To display AutoFilter, select the Filter drop-down arrow , which varies depending on the
report layout.
Compact Layout
2. Outline/Tabular Layout
3. To filter by creating a conditional expression, select Label Filters, and then create
a label filter.
4. To filter by values, select Values Filters and then create a values filter.
6. Select OK.
You can also apply filters to show the top or bottom 10 values or data that meets the certain
conditions.
Compact Layout
The Value field is in the Rows area The Value field is in the Columns area
2. Outline/Tabular Layout
By using a report filter, you can quickly display a different set of values in the PivotTable.
Items you select in the filter are displayed in the PivotTable, and items that are not selected
will be hidden. If you want to display filter pages (the set of values that match the selected
report filter items) on separate worksheets, you can specify that option.
2. In the PivotTable Field List, click on the field in an area and select Move to
Report Filter.
You can repeat this step to create more than one report filter. Report filters are displayed
above the PivotTable for easy access.
To change the order of the fields, in the Filters area, you can either drag the fields to the
position that you want, or double-click on a field and select Move Up or Move Down. The
order of the report filters will be reflected accordingly in the PivotTable.
a. In Report Filter area, in the Arrange fields list box, do one of the
following:
1. In the PivotTable, click the dropdown arrow next to the report filter.
2. Select the checkboxes next to the items that you want to display in the report. To
select all items, click the checkbox next to (Select All).
2. Click PivotTable Analyze (on the ribbon) > Options > Show Report Filter
Pages.
3. In the Show Report Filter Pages dialog box, select a report filter field, and then
click OK.
1. In the PivotTable, select one or more items in the field that you want to filter by
selection.
Tip: You can display hidden items again by removing the filter. Right-click another item in the
same field, click Filter, and then click Clear Filter.
1. Click anywhere in the PivotTable to show the PivotTable tabs on the ribbon.
a. In the PivotTable Options dialog box, click the Totals & Filters tab.
b. In the Filters area, check or uncheck the Allow multiple filters per
field box depending on what you need.
c. Click the Display tab, and then check or uncheck the Display Field
captions and filters check box, to show or hide field captions and filter
drop downs.
CREATE A PIVOTCHART
Sometimes it's hard to see the big picture when your raw data hasn’t been summarized. Your
first instinct may be to create a PivotTable, but not everyone can look at numbers in a table and
quickly see what's going on. PivotCharts are a great way to add data visualizations to your data.
CREATE A PIVOTCHART
Charts help you visualize your data in a way that creates maximum impact on your audience.
Learn to create a chart and add a trendline. You can start your document from a recommended
chart or choose one from our collection of pre-built chart templates.
CREATE A CHART
Note: You can select the data you want in the chart and press ALT + F1 to create a chart
immediately, but it might not be the best chart for the data. If you don’t see a chart you like,
select the All Charts tab to see all chart types.
ADD A TRENDLINE
1. Select a chart.
2. Select Chart Design > Add Chart Element.
3. Select Trendline and then select the type of trendline you want, such
as Linear, Exponential, Linear Forecast, or Moving Average.
To make a chart easier to understand, you can add chart title and axis titles, to any type of chart.
Axis titles are typically available for all axes that can be displayed in a chart, including depth
(series) axes in 3-D charts. Some chart types (such as radar charts) have axes, but they cannot
display axis titles. You can’t add axis titles to charts that don’t have axes (like pie or doughnut
charts).
1. In the chart, select the "Chart Title" box and type in a title.
2. Select the + sign to the top-right of the chart.
3. Select the arrow next to Chart Title.
4. Select Centered Overlay to lay the title over the chart, or More Options for
additional choices.
5. Right-click the chart title to format it with options like Fill or Outline.
You can show or hide the legend of a chart. Showing a legend can give readers more
information about the chart, while hiding a legend can give your chart a cleaner look.
1. Select a chart and then select the plus sign to the top right.
2. Point to Legend and select the arrow next to it.
3. Choose where you want the legend to appear in your chart.
1. Select a chart and then select the plus sign to the top right.
2. To show a data table, point to Data Table and select the arrow next to it, and
then select a display option.
3. To hide the data table, uncheck the Data Table option.
When the values in a 2-D chart vary widely from data series to data series, or when you have
mixed types of data (for example, price and volume), you can plot one or more data series on
a secondary vertical (value) axis. The scale of the secondary vertical axis reflects the values for
the associated data series.
After you add a secondary vertical axis to a 2-D chart, you can also add a secondary horizontal
(category) axis, which may be useful in an xy (scatter) chart or bubble chart.
ADD A TRENDLINE
1. Select a chart.
2. Select the + to the top right of the chart.
3. Select Trendline.
4. In the Add Trendline dialog box, select any data series options you want, and
click OK.
FORMAT A TRENDLINE
5. Set a value in
the Forward and Backward fields to project
your data into the future.
Quick Analysis takes a range of data and helps you pick the perfect chart with just a few
commands.
3. Select Charts.
Excel gives you the ability to protect your work, whether it’s to prevent someone from opening
a workbook without a password, granting Read-Only access to a workbook, or even just
protecting a worksheet so you don’t inadvertently delete any formulas. In this topic we’ll
discuss the various ways you can utilize the primary options to protect and distribute your Excel
files.
Warning:
If you forget or lose your password, Microsoft can’t retrieve it for you.
You should not assume that just because you protect a workbook or worksheet
with a password that it is secure - you should always think twice before distributing
Excel workbooks that could contain sensitive personal information like credit card
numbers, Social Security Number, employee identification, to name a few.
Worksheet level protection is not intended as a security feature. It simply prevents
users from modifying locked cells within the worksheet.
Following are the different options available for protecting your Excel data:
File-level: This refers to the ability to lock down your Excel file by specifying a
password so that users can’t open or modify it. You have two choices here:
File encryption: When you choose this option, you specify a password and
lock the Excel file. This prevents other users from opening the file. For
more information, see Protect an Excel file.
Setting a password to open or modify a file: You specify a password to
open or modify a file. Use this option when you need to give Read-only or
edit access to different users. For more information, see Protect an Excel
file.
Mark as Final: Use this option if you want to mark your Excel file as the
final version and want to prevent any further changes by other users. For
more information, see Add or remove protection in your document,
workbook, or presentation.
Restrict Access: If your organization has permissions set up using
Information Rights Management (IRM), you can apply any of the available
To control the level of access users should have to an Excel file, use file-level
protection. Let’s say you have a weekly status report of your team members in an
Excel file. You don’t want anyone outside your team to be even able to open the
file. There are two options available:
If you don’t want others to open your file: You can encrypt the Excel
file, which is the most common technique used. This basically means you
lock it with a password and nobody except you can open it.
If you want to enable Read-only or editing access to different
users: Maybe, you want the managers in your team to be able to edit the
weekly status report, but team members should only have Read-only
access. You can protect the Excel file by specifying two passwords: one to
open, and the other to modify. You can later share the appropriate
passwords with the team depending on the access they should be given.
You can use one or more levels of protection for your Excel data depending on your/your
organization’s needs. You can choose to use all of the available options or a combination of
options—it’s completely up to the level of security you want for your Excel data. For example,
you may choose to encrypt a shared Excel file, as well as enable workbook and worksheet
protection, while only using worksheet protection on a personal workbook just so you don’t
accidentally delete any formulas.
PROTECT A WORKSHEET
To prevent other users from accidentally or deliberately changing, moving, or deleting data in
a worksheet, you can lock the cells on your Excel worksheet and then protect the sheet with a
password. Say you own the team status report worksheet, where you want team members to
add data in specific cells only and not be able to modify anything else. With worksheet
protection, you can make only certain parts of the sheet editable and users will not be able to
modify data in any other region in the sheet.
Important: Worksheet level protection isn't intended as a security feature. It simply prevents
users from modifying locked cells within the worksheet. Protecting a worksheet is not the
same as protecting an Excel file or a workbook with a password. See below for more
information:
The following sections describe how to protect and unprotect a worksheet in Excel for
Windows.
Formulas: If you don’t want other users to see your formulas, you can hide them
from being seen in cells or the Formula bar. For more information, see Display or
hide formulas.
Ranges: You can enable users to work in specific ranges within a protected sheet.
For more information, see Lock or unlock specific areas of a protected worksheet.
Worksheet protection is a two-step process: the first step is to unlock cells that others can
edit, and then you can protect the worksheet with or without a password.
Next, select the actions that users should be allowed to take on the sheet, such as insert or delete
columns or rows, edit objects, sort, or use AutoFilter, to name a few. Additionally, you can
also specify a password to lock your worksheet. A password prevents other people from
removing the worksheet protection—it needs to be entered to unprotect the sheet.
2. In the Allow all users of this worksheet to list, select the elements you want
people to be able to change.
Select Move the pointer to cells for which the Locked box is checked on
locked cells the Protection tab of the Format Cells dialog box. By default, users are
allowed to select locked cells.
Select Move the pointer to cells for which the Locked box is unchecked on
unlocked the Protection tab of the Format Cells dialog box. By default, users can
cells select unlocked cells, and they can press the TAB key to move between the
unlocked cells on a protected worksheet.
Format cells Change any of the options in the Format Cells or Conditional
Formatting dialog boxes. If you applied conditional formatting before you
protected the worksheet, the formatting continues to change when a user
enters a value that satisfies a different condition.
Note: Paste now correctly honors the Format cells option. In older versions
of Excel, paste always pasted with formatting regardless of the Protection
options.
Format Use any of the column formatting commands, including changing column
columns width or hiding columns (Home tab, Cells group, Format button).
Format Use any of the row formatting commands, including changing row height or
rows hiding rows (Home tab, Cells group, Format button).
Note: If Delete rows is protected and Insert rows is not protected, a user
can insert rows but cannot delete them.
Sort Use any commands to sort data (Data tab, Sort & Filter group).
Note: Users can't sort ranges that contain locked cells on a protected
worksheet, regardless of this setting.
Use Use the drop-down arrows to change the filter on ranges when AutoFilters
AutoFilter are applied.
Use Format, change the layout, refresh, or otherwise modify PivotTable reports,
PivotTable or create new reports.
reports
Edit View scenarios that you have hidden, making changes to scenarios that you
scenarios have prevented changes to, and deleting these scenarios. Users can change
the values in the changing cells, if the cells are not protected, and add new
scenarios.
Important:
The Protect Sheet option on the ribbon changes to Unprotect Sheet when a sheet is protected.
To view this option, click the Review tab on the ribbon, and in Changes, see Unprotect Sheet.
2. Go to File > Info > Protect > Unprotect Sheet, or from the Review tab
> Changes > Unprotect Sheet.
3. If the sheet is protected with a password, then enter the password in the Unprotect
Sheet dialog box and click OK.
To prevent others from accessing data in your Excel files, protect your Excel file with a
password.