Week 7-2
Week 7-2
MS Excel
Summary of the Last week
• Exploring & identifying MS Excel user interface elements.
• Moving around worksheets.
• Selecting cells, rows, and columns.
• Editing & formatting worksheets.
• Inserting & deleting rows and columns.
• Deleting rows & columns.
• Changing row heights & column widths.
• Hiding & unhiding rows & columns.
• Selecting worksheets
• Navigating between worksheets
• Renaming worksheets
• Inserting & deleting worksheets
• Moving & copying worksheets
• Switching between MS Excel views
• Freezing & unfreezing panes
• Using templates
Learning Objectives
Understand and apply the following skills:
• How to choose between the paste options (Paste,Values, Formulas, Formatting, and
Pase Special).
• How to use the statistical functions (Average, Averageif, Median, Mode, Standard
Deviation, Min, Max, Large, and Small).
Outlines
Formulas and Functions
Entering a Formula
Editing a Formula
Changing the Operators Precedence
Copying/Pasting a Formula
Paste Options
• Paste
• Values
• Formulas
• Formatting
• Pase Special
Inserting a Function
Count Functions (Count, Countif, Countifs)
Sum Functions (Sum, Sumif, Sumifs)
Logical Functions (If, And, Or)
Statistical Functions (Average, Averageif, Median, Mode, Standard Deviation, Min,
Max, Large, and Small).
Formulas and Functions
• For example, cell A3 below contains the SUM function which calculates the sum of
the range A1:A2
Entering a Formula
To enter a formula, execute the following steps.
1. Select a cell.
2. To let Excel know that you want to enter a formula, type an equal sign (=).
3. For example, type the formula A1+A2.
Tip: instead of typing A1 and A2, simply select cell A1 and cell A2.
4. Change the value of cell A1 to 3.
Excel automatically recalculates the value of cell A3. This is one of Excel's most
powerful features!
Editing a Formula
When you select a cell, Excel shows the value or formula of the cell in the formula bar.
To edit a formula:
1. click in the formula bar and change the formula.
2. Press Enter
Operator Precedence
Excel uses a default order in which calculations occur. If a part of the formula is in
parentheses, that part will be calculated first. It then performs multiplication or division
calculations. Once this is complete, Excel will add and subtract the remainder of your
formula. See the example below.
First, Excel performs multiplication (A1 * A2). Next, Excel adds the value of cell A3 to this
result.
Another example,
First, Excel calculates the part in parentheses (A2+A3). Next, it multiplies this result by
the value of cell A1.
Copying/Pasting a Formula
Result
Paste Options - the Values Option
Result
Paste Options - the Formulas Option
Result
Paste Options – the Formatting Option
Result
The Paste Special dialog box offers many more paste options. To launch the Paste Special
dialog box, execute the following steps.
1. Select cell B5, right click, and then
click Copy (or press CTRL + c).
2. Next, select cell D5, right click, and then
click Paste Special.
Paste Options – the Paste Special Option
The Paste Special dialog box offers many more paste options. To launch the Paste Special
dialog box, execute the following steps.
1. Select cell B5, right click, and then
click Copy (or press CTRL + c).
2. Next, select cell D5, right click, and then
click Paste Special.
3. The Paste Special dialog box appears.
To count the number of cells that contain numbers, use the following COUNT
function.
Count Functions – the COUNTIF Function
To count cells based on one criteria (for example, higher than 9), use the following
COUNTIF function.
Note: in contrast to the COUNT function, cells can contain text as well.
Count Functions – the COUNTIFS Function
To count cells based on multiple criteria (for example, green and higher than 9), use
the following COUNTIFS function.
Sum Functions - the SUM Function
To sum cells based on one criteria (for example, higher than 9), use the following SUMIF
function (two arguments).
Sum Functions - the SUMIFS Function
To sum cells based on multiple criteria (for example, blue and green), use the following
SUMIFS function (first argument is the range to sum).
Logical Functions - the IF Function
The IF Function checks whether a condition is met, and returns one value if TRUE and
another value if FALSE.
Select cell C2 and enter the following function.
The IF function returns Correct because the value in cell A1 is higher than 10.
Logical Functions - the AND Function
The AND Function returns TRUE if all conditions are true and returns FALSE if any of
the conditions are false.
Select cell D2 and enter the following formula.
The AND function returns FALSE because the value in cell B2 is not higher than 5. As a
result the IF function returns Incorrect.
Logical Functions - the OR Function
The OR Function returns TRUE if any of the conditions are TRUE and returns FALSE
if all conditions are false.
Select cell E2 and enter the following formula.
The OR function returns TRUE because the value in cell A1 is higher than 10. As a result
the IF function returns Correct.
General note: the AND and OR function can check up to 255 conditions
Statistical Functions – the AVERAGE Function
To calculate the average of a range of cells, use the following AVERAGE function.
Statistical Functions – the AVERAGEIF Function
To average cells based on one criteria, use the following AVERAGEIF function.
For example, to calculate the average excluding zeros.
To find the median (or middle number), use the following MEDIAN function.
Check:
Statistical Functions – the MODE Function
To find the most frequently occurring number, use the following MODE function
Statistical Functions – the STEDV Function
To find the third largest number, use the following LARGE function.
Check:
Statistical Functions – the SMALL Function
To find the second smallest number, use the following SMALL function
Check: