Excel Notes
Excel Notes
The program operates on data represented as cells of an array, organized in rows and
columns. Spreadsheets allow you to organize, edit, and analyze different types of information
using spreadsheets.
Today, Microsoft Excel is the most popular and widely used spreadsheet program, but there
are also many alternatives. Below is a list of spreadsheet programs that can be used to
create a spreadsheet.
Uses of spreadsheet:
The three most common general uses for spreadsheet software are to create budgets,
produce graphs and charts, and for storing and sorting data. Within business spreadsheet
software is used to forecast future performance, calculate tax, completing basic payroll,
producing charts and calculating revenues.
Advantages of spreadsheets
Quick Access Toolbar – Collection of buttons that provide one click access to
commonly used commands such as Save, Undo or Redo.
Title Bar – A bar the display the name of active workbook
Ribbon – The main set of commands and controls organized task in Tabs and
groups, you can also customize the ribbon according to your preference,
Column Headings – The letters that appear along the top of the worksheet to identify
the different columns in the worksheet.
Worksheet Window – A window that displays an Excel worksheet, basically this is
where you work all the tasks.
Vertical Scroll Bar – Scroll bar to use when you want to scroll vertically through the
worksheet window.
Horizontal Scroll Bar – Scroll bar to use when you want to scroll horizontally through
the worksheet window.
Add Header and Footer- MS Excel allows us to keep header and footer in our
spreadsheet document.
Find and Replace Command- MS Excel allows us to find the needed data (text and
numbers) in the workbook and also replace the existing data with a new one.
Data Filtering- Filtering is a quick and easy way to find and work with a subset of data
in a range. A filtered range displays only the rows that meet the criteria you specify
Data Sorting- Data sorting is the process of arranging data in some logical order. MS
Built in formulae- MS Excel has got many built- in formulae for sum, average,
Create different charts (Pivot Table Report)- MS Excel allows us to create different
charts such as bar graph, pie- charts, line graphs, etc. This helps us to analyze and
Formula Auditing- Using formula auditing we can graphically display or trace the
relationships between cells and formulas with blue arrows. We can trace the
precedents (the cells that provide data to a specific cell) or the dependents (the cells
Worksheet- A worksheet is a collection of cells where you keep and manipulate the
data. Each Excel workbook can contain multiple worksheets.
A worksheet is made of lines (numbered with numbers) and of columns (numbered
with letters). The intersection of a line and a column is called a cell. A cell is therefore
represented by a number and a letter.
A worksheet can contain up to 65,536 lines and 256 columns, more that 17 million
cells.
Workbook - A workbook is a collection of one or more spreadsheets, also called
worksheets, in a single file.
Spreadsheets are made up of rows and columns, which form a table or grid.
2. On the Home tab, in the Cells group, click the arrow next to Insert, and then click Insert
Sheet Rows.
Tip You can also right-click the selected rows and then click Insert.
Note When you insert rows on your worksheet, all references that are affected by the
insertion adjust accordingly, whether they are relative or absolute cell references. The same
behavior applies to deleting rows, except when a deleted cell is directly referenced by a
formula. If you want references to adjust automatically, it's a good idea to use range
references whenever appropriate in your formulas, rather than specifying individual cells.
Tips
To quickly repeat the action of inserting a row, click the location where you want to
insert the row, and then press CTRL+Y.
2. On the Home tab, in the Cells group, click the arrow next to Insert, and then click Insert
Sheet Columns.
Tip You can also right-click the selected cells and then click Insert.
Note When you insert columns on your worksheet, all references that are affected by the
insertion adjust accordingly, whether they are relative or absolute cell references. The same
behavior applies to deleting columns, except when a deleted cell is directly referenced by a
formula. If you want references to adjust automatically, it's a good idea to use range
references whenever appropriate in your formulas, rather than specifying individual cells.
Tips
To delete selected cells, click the arrow next to Delete, and then click Delete Cells.
To delete selected rows, click the arrow next to Delete, and then click Delete Sheet
Rows.
To delete selected columns, click the arrow next to Delete, and then click Delete Sheet
Columns.
Tip You can right-click a selection of cells, click Delete, and then click the option that you
want. You can also right-click a selection of rows or columns and then click Delete.
3. If you are deleting a cell or a range of cells, in the Delete dialog box, click Shift cells
left, Shift cells up, Entire row, or Entire column.
If you are deleting rows or columns, other rows or columns automatically shift up or to the left.
Tips
Notes
Pressing DELETE deletes the contents of the selected cells only, not the cells
themselves.
Excel keeps formulas up to date by adjusting references to the shifted cells to reflect
their new locations. However, a formula that refers to a deleted cell displays the #REF!
error value.
Worksheet formatting
Fonts
Alignments
Column width and row height
Borders
Enhancing data appearance
Page formatting
Types of references
Relative references
Relative and absolute references behave differently when copied and filled to other
cells. Relative references change when a formula is copied to another cell.
By default, all cell references are relative references. When copied across multiple
cells, they change based on the relative position of rows and columns. For example,
if you copy the formula =A1+B1 from row 1 to row 2, the formula will
become =A2+B2.
Absolute references
There may be a time when you don't want a cell reference to change when copied to other
cells. Unlike relative references, absolute references do not change when copied or filled.
You can use an absolute reference to keep a row and/or column constant.
An absolute reference is designated in a formula by the addition of a dollar sign ($). It can
precede the column reference, the row reference, or both.
You will generally use the $A$2 format when creating formulas that contain absolute
references. The other two formats are used much less frequently.
We can link worksheets and update data automatically. A link is a dynamic formula that pulls
data from a cell of one worksheet and automatically updates that data to another worksheet.
These linking worksheets can be in the same workbook or in another workbook.
One worksheet is called the source worksheet, from where this link pulls the data
automatically, and the other worksheet is called the destination worksheet that contains that
link formula and where data is updated automatically.
In the destination worksheet, click on the cell that will contain link formula and enter
an equal sign (=)
Go to the source sheet and click on the cell that contains data and press Enter on the
keyboard. Save your work.
Using these two methods, we can link a worksheet and update data automatically depending
upon your requirements.
Suppose we have a value of 200 in cell A1 on Sheet1 and want to update cell A1 on Sheet2
using the linking formula. We can do that by using the same two methods we’ve covered.
Or right-click in the cell on the destination worksheet, Sheet2, and choose Paste
Link from Paste Options: It will generate linking formula automatically.
We can enter the linking formula manually in cell A1 on the destination worksheet Sheet2 to
update data by pulling it from cell A1 of Sheet1.
In cell A1 on Sheet2, manually enter an equal sign (=) and go to Sheet1 and click on cell A1
and press ENTER key on your keyboard. The following linking formula will be updated in
destination sheet that will link cell A1 of both sheets.
=Sheet1!A1
In spreadsheet programs, a label is any descriptive text placed in a cell. A label most often
refers to a text entry such as a heading used to identify a column of data. The term is also
used to refer to the headings and titles in charts - such as the horizontal and vertical axes
titles. Labels are used to identify other data in a spreadsheet. A label is not associated with a
particular value. Instead, it defines the column, spreadsheet or chart to which it is relevant.
Before providing the basic Excel formulas list, let's define the key terms just to make sure
we are on the same page. So, what do we call an Excel formula and Excel function?
For example, =A2+A2+A3+A4 is a formula that adds up the values in cells A2 to A4.
For example, instead of specifying each value to be summed like in the above formula, you
can use the SUM function to add up a range of cells: =SUM(A2:A4)
You can find all available Excel functions in the Function Library on the Formulas tab:
There exist 400+ functions in Excel, and the number is growing by version to version. Of
course, it's next to impossible to memorize all of them, and you actually don't need to.
The Function Wizard will help you find the function best suited for a particular task, while
Clicking the function's name will turn it into a blue hyperlink, which will open the Help topic
for that function.
Tip. You don't necessarily have to type a function name in all caps, Microsoft Excel will
automatically capitalize it once you finish typing the formula and press the Enter key to
complete it.
What follows below is a list of 10 simple yet really helpful functions that are a necessary skill
for everyone who wishes to turn from an Excel novice to an Excel professional.
SUM
The first Excel function you should be familiar with is the one that performs the basic
arithmetic operation of addition:
SUM(number1, [number2], …)
In the syntax of all Excel functions, an argument enclosed in [square brackets] is optional,
other arguments are required. Meaning, your Sum formula should include at least 1 number,
reference to a cell or a range of cells. For example:
=SUM(A2:A6) - adds up values in cells A2 through A6.
=SUM(A2, A6) - adds up values in cells A2 and A6.
=SUM(A2:A6)/5 - adds up values in cells A2 through A6, and then divides the sum by 5.
Tip. The fastest way to sum a column or row of numbers is to select a cell next to the
numbers you want to sum (the cell immediately below the last value in the column or to the
right of the last number in the row), and click the AutoSum button on the Home tab, in
the Editing group. Excel will insert a SUM formula for you automatically.
Useful resources:
Excel Sum formula examples - formulas to total a column, rows, only filtered (visible) cells,
or sum across sheets.
Excel AutoSum - the fastest way to sum a column or row of numbers.
SUMIF in Excel - formula examples to conditionally sum cells.
SUMIFS in Excel - formula examples to sum cells based on multiple criteria.
AVERAGE
The Excel AVERAGE function does exactly what its name suggests, i.e. finds an average,
or arithmetic mean, of numbers. Its syntax is similar to SUM's:
AVERAGE(number1, [number2], …)
Having a closer look at the last formula from the previous section (=SUM(A2:A6)/5), what
does it actually do? Sums values in cells A2 through A6, and then divides the result by 5.
And what do you call adding up a group of numbers and then dividing the sum by the count
of those numbers? Yep, an average!
Useful resources:
The MAX and MIN formulas in Excel get the largest and smallest value in a set of numbers,
respectively. For our sample data set, the formulas will be as simple as:
=MAX(A2:A6)
=MIN(A2:A6)
If you are curious to know how many cells in a given range contain numeric
values (numbers or dates), don't waste your time counting them by hand. The Excel COUNT
function will bring you the count in a heartbeat:
COUNT(value1, [value2], …)
While the COUNT function deals only with those cells that contain numbers, the Excel
COUNTA function counts all cells that are not blank, whether they contain numbers, dates,
times, text, logical values of TRUE and FALSE, errors or empty text strings (""):
For example, to find out how many cells in column A contain numbers, use this formula:
=COUNT(A:A)
To count all non-empty cells in column A, go with this one:
=COUNTA(A:A)
In both formulas, you use the so-called "whole column reference" (A:A) that refers to all of
the cells within column A.
The following screenshot shows the difference:
Useful resources:
IF
Judging by the number of IF-related comments on our blog, it's the most popular function in
Excel. In simple terms, you use an IF formula to ask Excel to test a certain condition and
return one value or perform one calculation if the condition is met, and another value or
calculation if the condition is not met:
For example, the following IF statement instructs Excel to check the value in A2 and return
"OK" if it's greater than or equal to 3, "Not OK" if it's less than 3:
=IF(A2>=3, "OK", "Not OK")
If you need to test for more than one condition, then take one of several actions, depending
on the result of the tests, you can nest multiple IF statements together in one formula. You'll
often hear this referred to as "nested IFs".
The idea of nesting comes from embedding or "nesting" one IF function inside another
In the example shown, we are using nested IF functions to assign grades based on a score.
The logic for assigning a grade goes like this:
0-63 F
64-72 D
73-84 C
85-94 B
95-100 A
To build up a nested IF formula that reflects this logic, we can start by testing to see if the
score is below 64. If TRUE, we return "F". If FALSE, we move into the next IF function. This
time, we test to see if the score is less than 73. If TRUE, we return "D". If FALSE, we move
into yet another IF function. And so on.
Eventually, the formula we have in cell D5 looks like this:
=IF(C5<64,"F",IF(C5<73,"D",IF(C5<85,"C",IF(C5<95,"B","A"))))
You can see that it's important in this case to move in one direction, either low to high, or
high to low. This allows us to return a result whenever a test returns TRUE, because
we know that the previous tests have returned FALSE.
Excel COUNTIF function is used for counting cells within a specified range that meet a
certain criterion, or condition.
For example, you can write a COUNTIF formula to find out how many cells in your
worksheet contain a number greater than or less than the number you specify. Another
typical use of COUNTIF in Excel is for counting cells with a specific word or starting with a
particular letter(s).
The syntax of the COUNTIF function is very simple:
COUNTIF(range, criteria)
range - defines one or several cells to count. You put the range in a formula like you usually
do in Excel, e.g. A1:A20.
criteria - defines the condition that tells the function which cells to count. It can be
a number, text string, cell reference or expression. For instance, you can use the criteria like
these: "10", A2, ">=10", "some text".
And here is the simplest example of Excel COUNTIF function. What you see in the image
below is the list of the best tennis players for the last 14 years. The
formula =COUNTIF(C2:C15,"Roger Federer") counts how many times Roger Federer's
name is on the list:
Note. A criterion is case insensitive, meaning that if you type "roger federer" as the criteria in
As you have just seen, the syntax of the COUNTIF function is very simple. However, it
allows for many possible variations of the criteria, including wildcard characters, the
values of other cells, and even other Excel functions.
This diversity makes the COUNTIF function really powerful and fit for many tasks, as
you will see in the examples that follow.
In fact, we discussed the COUNTIF function that counts text values matching a specified
criterion exactly a moment ago. Let me remind you that formula for cells containing an exact
string of text: =COUNTIF(C2:C15,"Roger Federer"). So, you enter:
Instead of typing text, you can use a reference to any cell containing that word or words and
get absolutely the same results, e.g. =COUNTIF(C1:C9,C7).
Similarly, COUNTIF formulas work for numbers. As shown in the screenshot below, the
formula =COUNTIF(D2:D9,5) perfectly counts cells with quantity 5 in Column D.
Whenever you want to know the number of characters in a certain cell, LEN is the function
to use:
LEN(text)
Need to find out how many characters are in cell A2? Just type =LEN(A2) into another cell.
Please keep in mind that the Excel LEN function counts absolutely all characters including
spaces:
AND & OR
These are the two most popular logical functions to check multiple criteria. The difference is
how they do this:
AND returns TRUE if all of the conditions are met, FALSE otherwise.
OR returns TRUE if any of the conditions is met, FALSE otherwise.
While rarely used on their own, these functions come in very handy as part of bigger
formulas.
For example, to check the quantity in 2 columns and return "Good" if both values are greater
than zero, you use the following IF formula with an embedded AND statement:
To see the current date and time whenever you open your worksheet without having to
manually update it on a daily basis, use either:
=TODAY() to insert the today's date in a cell.
=NOW() to insert the current date and time in a cell.
The beauty of these functions is that they don't require any arguments at all, you type the
formulas exactly as written above.
When working in Excel and creating formulas, Excel can return the result as an ERROR.
Errors in Excel described in this tutorial shows the following:
If the cell you see an error message in the form of the string scale (sharp/hash) then you
notice that Excel can not display the data or the result of a formula, and also perhaps the
result of a negative date. This Error Message in Excel sometimes referred to as the 'Railroad
tracks'.
To eliminate this error, increase the width of a column or a cell or if it is a result of a formula
then make arguments formula.
Error message #DIV/0! Occurs when the set of formulas in which a number is divided
by zero (0).
To avoid this error, check the formula in the cell where the error occurs and possibly
change the divisor.
Error #NAME? occurs when the set of formulas that Excel can not calculate because no
defined name or the name of the particular information. In this case the image below notice
that I did not set separator colons (:) in the formula.
To resolve this error, check the formula's spelling, or use the Formula Builder to have
Excel build the function for you.
Error #NULL! appears when you specify an intersection of two areas that do not intersect.
The intersection operator is a space between the reference. In this case the image below
notice that the operator used an incorrect range (for reference consisting of a continuous
group of cells using the colon (:) as an operator (for example A1:B2) and to reference ranges
that are continuously used semicolon (;) operator (e.g. A1, A3). So semicolon (;) is a separator
or divider for two ranges of cells in this formula.
Check to make sure that you are using the correct syntax in your formula. You should
be using a colon to separate the first cell from the last cell when you refer to a
continuous range of cells in a formula.
On the other hand, you should be using a comma should when you refer to two cells
that don't intersect.
Error #NUM! Appears when you are not listed numbers or values that are important to the
formula. Also this error occurs when Excel can not calculate an operation with the values or
numbers. In the picture below you notice that Excel returns a #NUM! because the result is too
big and excel in it can not be displayed.
Check to see if you have entered any formatted currency, dates, or special symbols. Then,
make sure to remove those characters from the formula, only keeping the numbers
themselves.
Error #REF! Occurs when a missing cell in which the formula references. The frequent
occurrence of this error is when we delete a cell from a formula that pulls data or if we delete
the worksheet that contains the data that uses formulas or functions.
Before you paste over a set of cells, make sure there are no formulas that refer
Also, when deleting cells, it’s important to double check what formulas are being
Error #VALUE! Occurs when using a defective argument type of function or formula.
Excel displays the #VALUE! error when it finds spaces, characters, or text in a formula
where it is expecting a number.
An easy solution to this error is to double check your formula to make sure that you
only used numbers.
If you're still seeing an error, check for blank cells, missing formulas linking to cells or
any special characters you may be using.
Notice in the picture below that the first formula pulls data from cell A6 which lists the text in
the second formula the second argument is not properly written.
When you see #N/A, this typically means that the numbers you are referring to in
your formula cannot be found.
You may have accidentally deleted a number or row that's being used in your
formula, or are referring to a sheet that was deleted or not saved.
Triple check all your formulas and be sure to look closely at which sheets or rows may
have been deleted or incorrectly referenced.
If you have a few formulas linked together, check to see that everything in every formula
has a value.
Introduction
It can often be difficult to interpret Excel workbooks that contain a lot of data. Charts allow you
to illustrate your workbook data graphically, which makes it easy to
visualize comparisons and trends.
Charts are used to display series of numeric data in a graphical format to make it easier to
understand large quantities of data and the relationship between different series of data.
Types of charts
Line Chart: The line chart is one of the most frequently used chart types, typically
used to show trends over a period of time.
Column Chart: Column charts are typically used to compare several items in a specific
range of values. Column charts are ideal if you need to compare a single category of
data between individual sub-items.
Stacked Column Chart: A stacked column chart allows you to compare items in a
specific range of values as well as show the relationship of the individual sub-items
with the whole.
Bar Chart: Bar charts are typically used to compare several categories of data. Bar
charts are ideal for visualizing the distribution or proportion of data items when there
are more than three categories.
Bubble Chart: A bubble chart is a variation of an XY scatter plot. Just like the XY
scatter plot, bubble charts show the correlation between two sets of data. The
difference is the addition of a third dimension that is represented by the size of each
bubble in the chart. This third dimension is typically used to show the relative impact
of a quantitative data item. For instance, in addition to showing employee
To insert a chart:
1. Select the cells you want to chart, including the column titles and row labels. These
cells will be the source data for the chart. In our example, we'll select cells A1:F6.
2. From the Insert tab, click the desired Chart command. In our example, we'll
select Column.
To edit a chart element, like a chart title, simply double-click the placeholder and begin
typing.
Excel also includes several different chart styles, which allow you to quickly modify the
look and feel of your chart. To change the chart style, select the desired style from
the Chart styles group.
3. The rows and columns will be switched. In our example, the data is now grouped by
genre, with columns for each year.
2. The Change Chart Type dialog box will appear. Select a new chart type and layout,
then click OK. In our example, we'll choose a Line chart.
3. The selected chart type will appear. In our example, the line chart makes it easier to
see trends in the sales data over time.
3. The Move Chart dialog box will appear. Select the desired location for the chart. In our
example, we'll choose to move it to a New sheet, which will create a new worksheet.
4. Click OK.
You can use a PivotTable to summarize, analyze, explore, and present summary data.
Pivot-Charts complement PivotTables by adding visualizations to the summary data in
a PivotTable, and allow you to easily see comparisons, patterns, and trends.
You can also connect to external data sources such as SQL Server tables, SQL Server
Analysis Services cubes, Azure Marketplace, Office Data Connection (.odc) files, XML
files, Access databases, and text files to create PivotTables, or use existing
PivotTables to create new tables.
About PivotTables
can use a PivotTable to analyze numerical data in detail, and answer unanticipated
Expanding and collapsing levels of data to focus your results, and drilling down to
Filtering, sorting, grouping, and conditionally formatting the most useful and
interesting subset of data enabling you to focus on just the information you want.
We want a pivot table showing us how many phone numbers are on file for each
employee.
To do this, select the table, then go to the Insert tab and click the arrow associated
with the Pivot Chart button.
button.
The Table/Range is selected for you. Select New Worksheet, then click OK.
A new worksheet will open and you will see a pivot table (seen on the left in the
example below), a pivot chart (center) and the PivotTable Fields list as a sidebar on
the right side of the screen in. The latter is a list of all fields in your table.
Data fields are fields that contain data that you can add, subtract, multiply, or divide.
Arbitrary fields are fields that are neither data nor category. The name field in our
table would be arbitrary.
If you look at your Pivot Table Field list on the right, you can drag and drop from the
"Choose Fields to Add to Report" section down to the "Drag Fields between Areas
Below" section. Just drag and drop from the top part of the field list to the bottom part
and place it in a category: Filters, Columns, Rows, and Values.
Your pivot table will appear in your spreadsheet as you do this
Here's what we've done in the Field list on the right:
Excel includes several tools that make it easier to view content from different parts of your
workbook at the same time, such as the ability to freeze panes and split your worksheet
To freeze rows:
You may want to see certain rows or columns all the time in your worksheet, especially header
cells. By freezing rows or columns in place, you'll be able to scroll through your content while
continuing to view the frozen cells.
1. Select the row below the row(s) you want to freeze. In our example, we want
to freeze rows 1 and 2, so we'll select row 3.
3. Select the Freeze Panes command, then choose Freeze Panes from the drop-
down menu.
4. The rows will be frozen in place, as indicated by the gray line. You can scroll
down the worksheet while continuing to view the frozen rows at the top. In our
example, we've scrolled down to row 18.
1. Select the column to the right of the column(s) you want to freeze. In our
example, we want to freeze column A, so we'll select column B.
3. Select the Freeze Panes command, then choose Freeze Panes from the drop-
down menu.
To unfreeze rows or columns, click the Freeze Panes command, then select Unfreeze
Panes from the drop-down menu.
If you only need to freeze the top row (row 1) or first column (column A) in the worksheet,
you can simply select Freeze Top Row or Freeze First Column from the drop-down menu.
If your workbook contains a lot of content, it can sometimes be difficult to compare different
sections. Excel includes additional options to make your workbooks easier to view and
compare. For example, you can choose to open a new window for your workbook or split a
worksheet into separate panes.
Excel allows you to open multiple windows for a single workbook at the same time. In our
example, we'll use this feature to compare two different worksheets from the same
workbook.
1. Click the View tab on the Ribbon, then select the New Window command.
3. You can now compare different worksheets from the same workbook across
windows. In our example, we'll select the 2013 Sales Detailed View worksheet
to compare the 2012 and 2013 sales.
To split a worksheet:
Sometimes you may want to compare different sections of the same workbook without
creating a new window. The Split command allows you to divide the worksheet into multiple
panes that scroll separately.
1. Select the cell where you want to split the worksheet. In our example, we'll
select cell C7.
3. The workbook will be split into different panes. You can scroll through each
pane separately using the scroll bars, allowing you to compare different
sections of the workbook.