excel formulas and functions

19

Upload: romeo

Post on 26-Jan-2016

71 views

Category:

Documents


7 download

DESCRIPTION

Excel Formulas and Functions. What is a formula in Excel?. A formula is statement written by the user to be calculated. Formulas can be as simple or as complex as the user wants. A formula can contain values, references to cells, defined names, and functions. What is a Formula?. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Excel Formulas and Functions
Page 2: Excel Formulas and Functions

What is a formula in Excel?

Page 3: Excel Formulas and Functions

A formula is statement written by the user to be calculated. Formulas can be as simple or as complex as the user wants. A formula can contain values, references to cells, defined names, and functions.

Page 4: Excel Formulas and Functions

It is a mathematical equation used to caluculate a value.

In Excel formulas must begin with an equal ( = ) sign.

Page 5: Excel Formulas and Functions

Operator Performs+ (plus sign) = Addition - (minus sign) = Subtraction* (asterisk) = Multiplication / = (slash) Division

Page 6: Excel Formulas and Functions

( ) (parentheses) = Controls the order of mathematical operations; calculations within parentheses are performed first

% (percent) = Converts a number into a percentage; for example, when you type 10%, Excel reads the value as .10

^ (caret) Exponentiation; for example, when you type 2^3, Excel reads the value as 2*2*2

Page 7: Excel Formulas and Functions

1. Select the cell into which you want to enter the formula.

2. Type an equal sign (=) to begin the formula.

3. Enter the first cell referenced in the formula. 4. Enter the first mathematical operator. 5. Enter the next cell referenced in the formula. 6. Continue entering cell references and

mathematical operators as needed. 7. When you have finished creating the

formula, press [Enter].

Page 8: Excel Formulas and Functions

= A1+A2+A3+A4 – will add all the values in the four cells

= (8*7)+2 is 58 = 8*(7+2) is 72 = 2^2 is 8

Page 9: Excel Formulas and Functions

What is a Function in Excel ?

Page 10: Excel Formulas and Functions

A function is a preset formula in Excel. Like formulas, functions begin with the equal sign ( = ) followed by the function's name and its arguments. The function name tells Excel what calculation to perform. The arguments are contained inside round brackets.

Page 11: Excel Formulas and Functions

A function is a piece of code designed to calculate specific values and are used inside formulas.

Page 12: Excel Formulas and Functions

Functions are typed alongside parenthesizes, where in the arguments if any are listed in between. To use functions in a formula, for example :

=COS(3.14) will return the calculated cosine. =NOW() returns the current time. =SUM(1+2+3) *2 will multiply the sum by 2

Page 13: Excel Formulas and Functions

The SUM, AVERAGE, MAX, MIN, and COUNT functions are entered with the same syntax, including beginning the function with an equal sign (=) and then typing the name of the function and an open parenthesis. You then enter the cell range by dragging to select the cells or by typing the first and last cells in the range. These functions are defined in the following table:

Page 14: Excel Formulas and Functions

Function

Syntax Description

SUM =SUM(A1:A20) Totals all the numbers in a range

AVERAGE =AVERAGE(A1:A20)

Returns the average of a range of numbers; if a cell in the range isempty, it is not used in calculating the average; if a cell in the rangecontains the number zero, it is used in calculating the average

MAX =MAX(A1:A20) Returns the highest value in a range of numbers

MIN =MIN(A1:A20) Returns the lowest value in a range of numbers

COUNT =COUNT(A1:A20) Returns the number of cells in the range that contain numbers

Page 15: Excel Formulas and Functions

The SUM function in Excel is specifically designed to add values from different ranges. The SUM Function can be typed into a cell in Excel, or inserted via the Insert Function tool (fx) to the left of your Formula bar. The syntax of the SUM Function is SUM(number1,number2, ...).  SUM is the function name, and contained within the brackets are "arguments", or the pieces of information that Excel requires to complete the Function.  The SUM function allows from 1 to 30 arguments (number 1, number ....) for which you require the total value or SUM.

Page 16: Excel Formulas and Functions

If you wish to add cells that are non-contiguous (not joined together), type in your function =SUM( click in the first cell you wish to add.  Hold down your Ctrl key and click in all other cells you wish to add up, then type in a ).  Typing in a comma instead of selecting with your Ctrl key also works just as efficiently as well.

Page 17: Excel Formulas and Functions

You can easily use SUM to add up the same range in different worksheets.  Click in the cell you want the result of your addition in, then holding down the Shift key, click on the next worksheet that you wish to include in your calculation and highlight the range to be used, then click Enter.

Page 18: Excel Formulas and Functions

Because adding numbers is probably the most common function that Excel is used for, Excel has a built-in Feature called AutoSum located on the Standard toolbar.  AutoSum is represented as the Greek Capital letter Sigma Σ found under the home tab editing group.  You can use AutoSum to sum a range of cells.  A Range can be one single cell, or many cells.  You can sum cells in a contiguous (no gaps) range of cells, or a non-contiguous (cells not joined together) range.

Page 19: Excel Formulas and Functions

To use AutoSum  you must click in the cell that you wish your result, or addition to appear in.  As a default, AutoSum looks up a column for figures immediately above it to add together.

This works great, unless it encounters a blank row or text.  If it does, then it stops at the last cell with a number in it.  If there are no numbers above it, AutoSum will automatically go to the left looking for numbers to add up, but will again stop at a blank column or text.