03 Excel formulas and functions


Published on

Published in: Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

03 Excel formulas and functions

  1. 1. ExcelFormulas and Functions
  2. 2. FormulasFormulas are entered in the worksheet cell and must begin with an equal sign"=". The formula then includes the addresses of the cells whose values will bemanipulated with appropriate operands placed in between. After the formula istyped into the cell, the calculation executes immediately and the formula itself isvisible in the formula bar. See the example below to view the formula forcalculating the sub total for a number of textbooks. The formula multiplies thequantity and price of each textbook and adds the subtotal for each book.
  3. 3. Formula OperatorsThere are four basic Mathematical Operators when writing a formula. These operators are used totell the formula what action to perform. The following table lists the operators, its symbol. Operation Symbol Symbol Name Addition + Plus Sign Subtraction - Dash or hyphen Multiplication * Asterisk Division / Forward slashThe next table lists the order of operation for each mathematical operator. As you begin to write yourformulas, keep in mind that information in parenthesis ( ) is always performed first while everythingoutside the parenthesis is performed left to right. Operator Operation Order of Calculation AND, OR, NOT Logic Test: AND, OR, NOT 1 + or - Positive or Negative Value 2 ^ Exponentiation 3 * or / Multiplication or Division 4 +- Addition or Subtraction 5 & Text Concatenation 6 Logic Test 7 = Equal to 7 <> Not Equal To 7 <= Less than or Equal to 7 >= Greater than or Equal to 7
  4. 4. Functions• Built-in Excel Functions can be a faster way of doing mathematical operations than formulas.• Example- if you wanted to add the values of cells D1 through D10, you could type the formula "=D1+D2+D3+D4+D5+D6+D7+D8+D9+D10".• A shorter way would be to use the SUM function and simply type "=SUM(D1:D10)".Function Example DescriptionSUM =SUM(A1:A100) finds the sum of cells A1 through A100AVERAGE =AVERAGE(B1:B10) finds the average of cells B1 through B10MAX =MAX(C1:C100) returns the highest number from cells C1 through C100MIN =MIN(D1:D100) returns the lowest number from cells D1 through D100SQRT =SQRT(D10) finds the square root of the value in cell D10TODAY =TODAY() returns the current date (leave the parentheses empty)SUM( ) functionThe SUM( ) function is probably the most common function in Excel. It adds a range of numbers. To build aSUM( ) function, begin by typing the = sign; all functions begin with the = sign. Next type the word SUMfollowed by an open parenthesis. You must now tell Excel which cells to sum. Using the mouse, click and dragover the range of cells you wish to add. A dotted outline will appear around the cells and the cell range will bedisplayed in the formula bar. When you have the correct cells selected, release the mouse button, type a closingparenthesis and press the <Enter> key.If you do not want to use the mouse, type in the references of the cells you want to sum. For example, to addcells B3 through B5, type =SUM(B3:B5). Excel interprets B3:B5 as the range of cells from B3 to B5.
  5. 5. Insert Function Excel has hundreds of prewritten formulas which make it easy to do complex procedures with numbers, dates, times, text, and more. •Type a brief description of what you want to do in the Search for a function box. In this example, you could type "mortgage payment" or some other keywords. •Click Go. Tips •You can also select a function category in the Or select a category box. This action will display a list of related functions, which you can then browse through. •If youd like help on how to enter the arguments, you could type the function name in the Search for a function box and click OK.Click the Insert Function button on the formula bar. The Insert Function dialog box opens In the Search for a function box, type a description of what you want to do.
  6. 6. AutoSumAutoSum buttonIn Excel, the editing group on the home tab has a button that simplifies adding a column or row ofnumbers. The AutoSum button, which resembles the Greek letter Sigma (shown above), automaticallycreates a SUM( ) function. When you click the AutoSum button Excel creates a sum function for thecolumn of numbers directly above or the row of numbers to the left. Excel pastes the SUM( ) functionand the range to sum into the formula bar. If the range is not correct, simply select the proper rangewith your mouse on the worksheet. When you have the correct range entered, press the <Enter> keyto complete the function.
  7. 7. Autofilling FunctionsAutofill can also be used to copy functions. In the example below, column A and column B eachcontain lists of numbers and column C contains the sums of columns A and B for each row. Thefunction in cell C2 would be "=SUM(A2:B2)". This function can then be copied to the remainingcells of column C by activating cell C2 and dragging the handle down to fill in the remainingcells. The autofill feature will automatically update the row numbers as shown below if the cellsare reference relatively
  8. 8. Cell ReferenceThere are two basic types of cell references in Excel: relative and absolute. The difference betweenabsolute and relative cell references becomes apparent when you copy formulas from one cell toanother. When you copy a formula containing relative references, the references are adjusted toreflect the new location. Absolute references always refer to the same cell, regardless of where theformula is copied. Relative references are the default.To create an absolute reference, type $ before each part of the cell address.
  9. 9. Relative / AbsoluteRelative Absolute This shows the formulas used to create the order form below. We used the fill handle which usually gives us the relative reference. For the sales tax calculation we needed to use the absolute reference in cell C9 To toggle between seeing the formulas and seeing the results, hold down the Ctrl key and press the tilde ~