Excel Functions - An Introduction PDF
Excel Functions - An Introduction PDF
Excel has prewritten formulas called functions to help simplify making complicated
calculations.
A function takes a value or values, performs an operation, and returns a result to a cell. The
values that you use with a function are called arguments. All functions begin with an equal
sign and include the arguments in parentheses after the function name.
For example, in the function =SUM(D3:D10), the function name is SUM and the argument is
the range D3:D10.
To start entering functions, click on a cell then
click the Paste Function (fx) button on the Toolbar.
Following are some common Excel functions
and examples how to use them in a spreadsheet.
SUM
Adds all the numbers in a range of cells.
Syntax:
=SUM(number1,number2, ...)
Number1, number2, ... are 1 to 30 arguments for which you want the total value or
sum.
The arguments can be numbers, cells or ranges
If an argument is a range, only numbers in that range are counted. Empty cells, logical
values, text, or error values in the range are ignored.
Examples:
SUM(3, 2) equals 5
If A1 contains 3 and B1 contains 1, then:
SUM(A1, B1, 2) equals 6
If cells A2:E2 contain 5, 15, 30, 40, and 50:
SUM(A2:C2) equals 50
SUM(B2:E2, 15) equals 150
Click OK
This opens the Sum Function Formula Palette:
Click/Drag the range of cells to be added by the Sum Function (In this case it is range F7:L14)
Note the formula entered in the Formula Bar
Note that the AVERAGE function does not include any blank cells in its calculation
MAX
Returns the largest value in a set of values.
Syntax: =MAX(argument1,argument2,...)
Argument1, argument2,... are 1 to 30 numbers, ranges or cell references for which you want
to find the maximum value.
If an argument is a range or cell reference, only numbers in that range or reference are
used. Empty cells, logical values, or text in the array or reference are ignored.
If the arguments contain no numbers, MAX returns 0 (zero).
Examples:
If A1:A5 contains the numbers 10, 7, 9, 27, and 2, then:
MAX(A1:A5) equals 27
MAX(A1:A5,30) equals 30
MIN
Same as MAX but returns the smallest value in a set of values.
Syntax: =MIN(argument1,argument2,…)
Examples:
If A1:A5 contains the numbers 10, 7, 9, 27, and 2, then:
MIN(A1:A5) equals 2
MAX(A1:A5,1) equals 1
Click cell M20 – click the Paste Function button in the Toolbar:
Value if true can be text. Suppose an expense worksheet contains in B2:B4 the following data
for "Actual Expenses" for January, February, and March: 1500, 500, 500. C2:C4 contains the
following data for "Budgeted Expenses" for the same periods: 900, 900, 925.
You can write a formula to check whether you are over budget for a particular month,
generating text for a message with the following formulas:
IF(B2>C2,"Over Budget","OK") equals "Over Budget"
IF(B3>C3,"Over Budget","OK") equals "OK"
Suppose you want to assign letter grades to numbers referenced by the name AverageScore.
See the following table:
If AverageScore is Then return
Greater than 89 A
From 80 to 89 B
From 70 to 79 C
From 60 to 69 D
Less than 60 F
You can use the following nested IF function:
IF(AverageScore>89,"A",IF(AverageScore>79,"B",IF(AverageScore>69,"C",
IF(AverageScore>59,"D","F"))))
In the preceding example, the second IF statement is also the value_if_false argument to the
first IF statement. Similarly, the third IF statement is the value_if_false argument to the
second IF statement. For example, if the first logical_test (Average>89) is TRUE, "A" is
returned. If the first logical_test is FALSE, the second IF statement is evaluated, and so on.
In the Logical test window type E9>0 (If cell E9, the account balance, is greater than zero)
Click OK
Note: The quotation marks are used to indicate text to be entered in the cell. Two quotation
marks with nothing between indicates no text, resulting in a blank cell.
Copy the formula using the Fill Handle from cell I9 to cell I32
To make the warning message more noticeable, select column I and change the font to Bold
with a Red color.
8. Click OK
Password protecting an Excel File (This protects your Excel files from being opened and
viewed by anyone using your computer)
Open File – “LESSON 8 Protecting Spreadsheet”
Click File – click Save As -- This opens the Save As dialog box:
Click Tools
Click OK
Click OK