MS Excel Basics
MS Excel Basics
Microsoft Excel is a software product that falls into the general category of spreadsheets. Excel
is one of several spreadsheet products that you can run on your PC.
You might have heard the terms "spreadsheet" and "worksheet". People generally use them
interchangeably. To remain consistent with Microsoft and other publishers the term worksheet
refers to the row-and-column matrix sheet on which you work upon and the term spreadsheet
refers to this type of computer application. In addition, the term workbook will refer to the book
of pages that is the standard Excel document. The workbook can contain worksheets, chart
sheets, or macro modules.
This guide teaches Microsoft Excel basics. Although knowledge of how to navigate in a
Windows environment is helpful, this course was created for the computer novice. To begin,
open Microsoft Excel. The screen shown here will appear.
We will identify the most important parts in the Microsoft Excel screen: Title bar, Menu bar,
Toolbars, Worksheet, Formula bar, and Status bar.
The Title Bar -- is located at the very top of the screen. On the Title bar, Microsoft Excel
displays the name of the workbook you are currently using. At the top of your screen, you should
see "Microsoft Excel - Book1" or a similar name.
The Formula Bar -- If the Formula bar is turned on, the cell address displays on the left side of
the Formula bar. Cell entries display on the right side of the Formula bar. Before proceeding,
make sure the Formula bar is turned on.
The Status Bar -- If the Status bar is turned on, it appears at the very bottom of the screen as
shown below. Before proceeding, make sure the Status bar is turned on. The following steps will
activate the Status bar:
Status Bar
Notice the word "Ready" on the Status bar at the lower left side of the screen. The word "Ready"
tells you that Excel is in the Ready mode and awaiting your next command. Other indicators
(e.g. toggle keys) appear on the Status bar in the lower right corner of the screen. Here are some
examples:
• The Num Lock key is a toggle key. Pressing it turns the numeric keypad on and off. You
can use the numeric keypad to enter numbers as if you were using a calculator. The
letters "NUM" on the Status bar in the lower right corner of the screen indicate that the
numeric keypad is on. Press the Num Lock key several times and note how the indicator
on the Status bar changes.
• The Caps Lock key is also a toggle key. Pressing it turns the caps function on and off.
When the caps function is on, your entry will appear in capital letters. Press the Cap Lock
key several times and note how the indicator on the Status bar changes.
• Scroll Lock is another toggle key that appears on the Status bar. Pressing this key
toggles the function between on and off. Scroll Lock causes the pointer movement key to
move the window but not the cell pointer.
• End key allows you to jump around the screen. Pressing the End key toggles the function
between on and off.
Complete the following exercise on navigating Excel. In performing this exercise make sure the
Scroll Lock and End indicators are off.
1. The Down Arrow Key -- You can use the down arrow key to move downward on the screen
one cell at a time.
2. The Up Arrow Key -- You can use the Up Arrow key to move upward on the screen one
cell at a time.
3. The Right and Left Arrow Keys -- You can use the right and left arrow keys to move right
or left one cell at a time.
4. Page Up and Page Down -- The Page Up and Page Down keys move the cursor up and
down one page at a time.
5. The End Key -- The End key, used in conjunction with the arrow keys, causes the cursor to
move to the far end of the spreadsheet in the direction of the arrow.
Note: If you have entered data into the worksheet, the End key moves you to the end of the data
area.
6. The Home Key -- The Home key, used in conjunction with the End key, moves you to cell
A1 -- or to the beginning of the data area if you have entered data.
A cell is a single element in a worksheet that can hold a value, text, or a formula. A cell is
identified by its address, which consists of its column letter and row number. For example, cell
D12 is the cell in the fourth column and the twelfth row. A group of cells is called a range. You
designate a range address by specifying its upper-left cell address and its lower-right cell
address, separated by a colon. Here are some examples of range addresses:
A1:B1 Two cells that occupy one row and two columns
C24 A range that consists of a single cell
A1:A100 100 cells in column A
A1:D416 Cells (four rows by four columns)
C1:C65536 An entire column of cells; this range also can be expressed as C:C
A6:IV6 An entire row of cells
Selecting Ranges: To perform an operation on a range of cells in a worksheet, you must select
the range of cells first. For example, if you want to make the text bold for a range of cells, you
must select the range and then click the Bold button on the Formatting toolbar (or, use any of
several other methods to make the text bold). When you select a range, the cells appear
highlighted in light blue-gray. The exception is the active cell, which remains its normal color.
The figure below shows an example of a selected range in a worksheet.
Example of a selected range in a worksheet.
Selecting Complete Rows and Columns: You can select entire rows and columns in much the
same manner as you select ranges, as follows:
• Click the row or column border to select a single row or column.
• To select multiple adjacent rows or columns, click a row or column border and drag to
highlight additional rows or columns.
• To select multiple (nonadjacent) rows or columns, press Ctrl while you click the rows or
columns that you want.
• Press Ctrl+spacebar to select a column. The column of the active cell (or columns of the
selected cells) will be highlighted.
• Press Shift+spacebar to select a row. The row of the active cell (or rows of the selected
cells) will be highlighted.
• Click the Select All button (or Ctrl+Shift+spacebar) to select all rows.
• Selecting all rows is the same as selecting all columns, which is the same as selecting all
cells.
Selecting Noncontiguous Ranges: Most of the time, the ranges that you select will be
contiguous -- a single rectangle of cells. Excel also enables you to work with noncontiguous
ranges, which consist of two or more ranges (or single cells) that are not necessarily next to each
other. This is also known as a multiple selection. If you want to apply the same formatting to
cells in different areas of your worksheet, one approach is to make a multiple selection. When
the appropriate cells or ranges are selected, the formatting that you select is applied to them all.
A noncontiguous range selected in a worksheet is shown below:
Selecting Multisheet Ranges: The discussion so far has focused on ranges on a single
worksheet. However, an Excel workbook can contain more than one worksheet. As expected,
ranges can extend across multiple worksheets. Suppose that you have a workbook that is set up
to track expenses by study of a large project. A common approach is to use a separate worksheet
for each study, making it easy to organize the data. The figure below shows a workbook that has
four sheets, named Total, Study1, Study2, and Study3. The sheets are laid out identically. The
only difference is the values. The Total sheet contains formulas that compute the sum of the
corresponding items in the three study worksheets.
4. Click the Comma Style button on the Formatting toolbar. This applies comma formatting to
the selected cells.
5. Click one of the other sheet tabs. This selects the sheet and also cancels Group mode; [Group]
is no longer displayed in the title bar. All the worksheets in the workbook are formatted with
Comma Style number format.
Annotating a Cell: Excel’s cell-comment feature enables you to attach a comment to a cell.
This feature is useful when you need to document a particular value. It’s also useful to help you
remember what a formula does.
To add a comment to a cell, select the cell and then choose InsertÆComment (or Shift+F2).
Excel inserts a comment that points to the active cell, as shown in the figure below. Initially, the
comment consists of your name (i.e., name of your computer). Enter the text for the cell
comment and then click anywhere in the worksheet to hide the comment. Cells that have a
comment attached display a small red triangle in the upper-right corner. When you move the
mouse pointer over a cell that contains a comment, the comment becomes visible.
To edit a comment, activate the cell, right-click, and then choose Edit Comment from the
shortcut menu. To delete a cell comment, activate the cell that contains the comment, right-click,
and then choose Delete Comment from the shortcut menu.
You can use Microsoft Excel to automatically fill cells with information that occur in a series.
For example, you can have word automatically fill in times, the days of the week or months of
the year, years, and other types of series. The following demonstrates:
A B C D E F G
1 1:00 Sun Sunday Jan January 2000 Type 1
2. Press Esc and then click anywhere on the worksheet to remove the highlighting.
Deleting Cell Contents: To erase the contents of a cell or range, select the cell or range and
press Delete. Or, you can select Edit ÆClearÆAll. Another method is to select the cell or range
of cells, right click mouse button and then select Clear Contents.
Copying the contents of a cell is a very common operation. You can do any of the following:
• Copy a cell to another cell.
• Copy a cell to a range of cells. The source cell is copied to every cell in the destination
range.
• Copy a range to another range. Both ranges must be the same size.
Copying a cell normally copies the cell contents, any formatting that is applied to the original
cell (including conditional formatting and data validation), and the cell comment (if it has one).
When you copy a cell that contains a formula, the cell references in the copied formulas are
changed automatically to be relative to their new destination.
If you find that pasting overwrote some essential cells, choose EditÆUndo (or press Ctrl+Z).
Because copying is used so often, Excel provides many different methods as follows:
Copying by using toolbar buttons: The Standard toolbar has two buttons that are relevant to
copying: the Copy icon ( ) and the Paste icon ( ). Follow the steps below to copy a cell
or range of cells by using toolbar buttons:
1. Highlight cell or range of cells to be copied, say A7 to B9. To do this, place the cursor in cell
A7. Press F8. Press the down arrow key twice. Press the right arrow key once. A7 to B9
should be highlighted. Or highlight cell range A7 to B9 by clicking the mouse on cell A7.
While holding the left mouse button at cell A7 drag it down to A9 and then to the right at B9.
2. Click on the Copy icon, which is located on the Formatting toolbar. Use the arrow key or
mouse to move the cursor to cell C7.
3. Click on the Paste icon, which is located on the Formatting toolbar
4. Press Esc to exit the Copy mode.
Copying by using menu commands: You can use the following menu commands for copying
and pasting:
• Highlight cell or range of cells to be copied. Then click Edit ÆCopy -- Copies the selected
cells to the Windows Clipboard and the Office Clipboard
• Click Edit Æ Paste: Pastes the Windows Clipboard contents to the selected cell or range
Copying by using shortcut menus: Select the cell or range to copy (A2:B4), right-click, and
then choose Copy from the shortcut menu. Then, select the cell (D2) in which you want the copy
to appear, right-click, and choose Paste from the shortcut menu (see figure below).
Example showing copy and paste shortcut menus
Copying by using shortcut keys: The copy and paste operations also have shortcut keys
associated with them:
• Ctrl+C: Copies the selected cells to the Clipboard
• Ctrl+V: Pastes the Clipboard contents to the selected cell or range
Copying to adjacent cells: Often, you’ll find that you need to copy a cell to an adjacent cell or
range. This type of copying is quite common when working with formulas. For example, if
you’re working on a budget, you might create a formula to add the values in column B. You can
use the same formula to add the values in the other columns. Rather than reenter the formula,
you’ll want to copy it to the adjacent cells.
Excel provides some additional options on its Edit menu for copying to adjacent cells. To use
these commands, select the cell that you’re copying and the cells that you are copying to (see
figure below). Then, issue the appropriate command from the following list for one-step
copying:
EditÆFillÆDown (or Ctrl+D): Copies the cell to the selected range below
EditÆFillÆRight (or Ctrl+R): Copies the cell to the selected range to the right
You also can use AutoFill to copy to adjacent cells by dragging the selection’s fill handle. Excel
copies the original selection to the cells that you highlight while dragging.
Copying a range to other sheets: The copy procedures described previously also work to copy
a cell or range to another worksheet, even if the worksheet is in a different workbook. Activate
the other worksheet first before you select the location to which you want to copy. Follow the
steps below:
• Start by selecting the range to copy. Then, press Ctrl and click the sheet tabs for the
worksheets to which you want to copy the information (Excel displays [Group] in the
workbook’s title bar).
• Select EditÆFillÆAcross Worksheets, and a dialog box appears that asks what you want
to copy (All, Contents, or Formats).
• Make your choice and then click OK. Excel copies the selected range to the selected
worksheets; the new copy will occupy the same cells in the selected worksheets as the
original occupies in the initial worksheet.
Moving a cell or range: Copying a cell or range doesn’t modify the cell or range that you
copied. If you want to relocate a cell or range to another location, use the EditÆCut command.
This is similar to EditÆCopy command except that it also removes the contents of the selection
from its original location.
Note that you also can move a cell or range by dragging it. Select the cell or range that you want
to move and then slide the mouse pointer to any of the selection’s four borders. The mouse
pointer turns into an arrow pointing up and to the left. Drag the selection to its new location and
release the mouse button.
Copy and Paste Special: Excel contains two more versatile ways to paste information. You can
use the Office Clipboard to copy and paste multiple items, or you can use the Paste Special
dialog box to paste information in distinctive ways.
• The EditÆPaste Special command is a much more versatile version of the EditÆPaste
command.
• For the Paste Special command to be available, you need to copy a cell or range to the
Clipboards (using EditÆCut won’t work).
• Then, select the cell in which you want to paste, and choose EditÆPaste Special. You see the
dialog box as shown below.
• The several options under Paste Special dialog box are as follows:
o Pasting all – selecting this option is equivalent to using the EditÆPaste command. It
copies the cell’s contents, format, and data validation
o Pasting formulas – copies the formula of selected cell
o Pasting formulas as values – normally, when you copy a range that contains formulas,
Excel copies the formulas and automatically adjust the cell references. The Value option
enables you to copy the results of formulas.
o Pasting cell formats only – copy only the formatting applied in the selected cell or range
to the destination cell or range.
o Pasting cell comments – copy only the cell comments from a cell or range; doesn’t copy
cell contents or formatting
o Pasting validation criteria – copy the data validation command created in the selected cell
or range to another cell or range
o Skipping borders when pasting – this is to avoid pasting the border of selected cell or
range
o Pasting column widths – copy column width information from one column to another
o Performing mathematical operations without formulas – perform an arithmetic operation
without using formulas. For example, you can copy a range to another range and select
the multiply operation. Excel multiplies the corresponding values in the source range and
the destination range and replaces the destination range with the new values.
o Skipping blanks when pasting – this prevents Excel from overwriting cell contents in
your paste area with blank cells from the copied range.
o Transposing a range – changes the orientation of the copied range. For instance, rows
become column and columns become rows. Any formulas in the copied range are
adjusted so that they work properly when transposed.
Elementary Formulae
All formulas in Excel must begin with an equal sign (=). When a formula is entered into a cell,
the formula itself is displayed in the formula bar when that cell is highlighted, and the result of
the formula is displayed in the actual cell. When you are typing in formulas, do not type spaces;
Excel will delete them.
In Microsoft Excel, you can enter numbers and mathematical formulas into cells. When a
number is entered into a cell, you can perform mathematical calculations such as addition,
subtraction, multiplication, and division. Use the following to indicate the type of calculation you
wish to perform:
+ Addition
- Subtraction
* Multiplication
/ Division
^ Exponential
The following exercises demonstrate how to create formula and perform mathematical
calculations.
Addition (+)
Subtraction (-)
Multiplication (*)
1. Hold down the Ctrl key while you press “g” (Ctrl-g). The Go To dialog box will appear.
2. Type C1.
3. Press Enter. You should now be in cell C1.
4. Type 2 in cell C1.
5. Press Enter.
6. Type 3 in cell C2.
7. Press Enter.
8. Type =C1*C2 in cell C3.
9. Press Enter.
10. Note that C1 is multiplied by C2 and the answer is displayed in C3.
Division (/)
1. Press F5.
2. Type D1.
3. Press Enter. You should now be in cell D1.
4. Type 6 in cell D1.
5. Press Enter.
6. Type 3 in cell D2.
7. Press Enter.
8. Type =D1/D2 in cell D3.
9. Press Enter.
10. Note that D1 is divided by D2 and the answer is displayed in cell D3.
Exponential (^)
A formula entered into a cell can consist of any of the following elements:
A formula can consist of up to 1,024 characters. After you enter a formula into a cell, the cell
displays the result of the formula. Here are other few examples of formulas:
Other operators used in formulas: Excel uses variety of operators in formula. Below is the list
of remaining operators used in formulas:
Operator Name
& Concatenation or join cell contents
= Logical comparison (equal to)
> Logical comparison (greater than)
< Logical comparison (less than)
>= Logical comparison (greater than or equal to)
<= Logical comparison (less than or equal to)
<> Logical comparison (not equal to)
Operator precedence: In an earlier example, parentheses are used in the formula, to control the
order in which the calculations occur. The formula without parentheses looks like this:
=Income-Expenses*TaxRate
If you enter the formula without the parentheses, Excel computes the wrong answer. To
understand why this occurs, you need to understand a concept called operator precedence, which
basically is the set of rules that Excel uses to perform its calculations. Below is the list of Excels’
operator precedence.
You use parentheses to override Excel’s built-in order of precedence. Returning to the previous
example, the formula that follows doesn’t use parentheses and, therefore, is evaluated using
Excel’s standard operator precedence. Because multiplication has a higher precedence, the
Expense cell is multiplied by the TaxRate cell. Then, this result is subtracted from Income. This
isn’t what was intended.
The correct formula, which follows, uses parentheses to control the order of operations.
Expressions within parentheses are always evaluated first. In this case, Expenses is subtracted
from Income and the result is multiplied by TaxRate.
=(Income-Expenses)*TaxRate
You can also nest parentheses in formulas, which means putting parentheses inside of
parentheses. If you do so, Excel evaluates the most deeply nested expressions first and works its
way out. The figure below shows an example of a formula that uses nested parentheses.
Excel Functions
Microsoft Excel has a set of prewritten formulas called functions. Functions differ from regular
formulas in that you supply the value but not the operators, such as +, -, *, or /. The SUM
function is used to calculate sums. When using a function, remember the following: (i) Use an
equals sign to begin a formula; (ii) Specify the function name; (iii) Enclose arguments within
parentheses; and (iv) Use a comma to separate arguments
=SUM(2,13,10,67)
In this function:
Calculating an Average
You can use the AVERAGE function to calculate an average from a series of numbers. Using the
series of numbers used in calculating sum, do the following:
Calculating Min
You can use the MIN function to find the lowest number in a series of numbers.
Calculating Max
You can use the MAX function to find the highest number in a series of numbers.
Format text and individual characters: To make text stand out, you can format all of the text
in a cell or selected characters. Select the characters you want to format, and then click a button
on the Formatting toolbar (see figure below). Thus, to boldface all text in a cell click the desired
cell and then click the Bold button. (If you had wanted to boldface only a portion of the text in a
cell… Double-click to edit the cell. Then highlight the text which is to be boldfaced and click the
Bold button).
Currency
Style Increase
Align right Percent Indent
Center Style Font color
Comma
Decrease
Font Font size Style Fill color
Align left Indent
Bold Increase
Decimal
Italic Merge and Borders
Center Decrease
Underline Increase
For example, to bold the text in cell A1, click A1 then click Bold button. The resulting text is
shown below. The same procedure will be followed for changing font size, type of fonts, cell
alignment (e.g., align left, center, align right), applying italic, underline fonts, and centering text
or number in a cell. To merge two more cells, highlight the cells to be merged first before
clicking on the merge and center icon in the formatting toolbar.
Alternatively, text formatting can also be done through the menu: Format Æ Cells then various
tabs (see figure below) are available for the operation you want to make. The following are the
steps for some formatting operations:
Formatting cells menu
To change basic text attributes:
• Click on the name of the font you wish to use
• Click on the name of font style you want
• Click on the font size you want use
• To add a basic border outside the selected range, click on the outline button
• To add borders between cells within the selected cell range, click on the Inside button
• Click OK
Number formatting: Excel permits numbers to be formatted in many different ways. Without
changing the value of the number in a cell, number formats allow numbers to be represented so
that they can be used in many different kinds of projects. The steps in applying number formats
through the Format Æ Cell menu.
• Select the cells containing your number(s)
• From the format menu, choose cells
• Click on the number tab
• From the list of categories, select the number format that is best suited to your project.
Use the sample box to decide whether the format you chose best represents your number.