How To Understand And Understand A Function In Excel 3.5

Size: px
Start display at page:

Download "How To Understand And Understand A Function In Excel 3.5"

Transcription

1 Microsoft Excel 2010 Microsoft Office Specialist 2010 Series COURSEWARE EXAM Achieve more

2

3 Microsoft Office Specialist 2010 Microsoft Excel Expert Certification 2010 Lesson 3: Formulas and Functions Lesson Objectives In this lesson, you will learn about the different types of functions available in Excel for specific calculations, how to activate these functions, and how to apply them. You will also look at different ways of finding and correcting errors in your formulas. Upon successful completion of this lesson, you will be able to: define what a function is use the correct syntax for functions insert a function use mathematical and trigonometric functions use statistical functions use financial functions use logical functions use date and time functions use text functions use information functions use conditional logic and summary functions convert data types use the Error Checking Tool to mark possible incorrect formulas trace formula errors use the evaluate formula feature to debug a formula check the worksheet manually for formula errors v1.00 CCI Learning Solutions Inc. 91

4 Lesson 3 Formulas and Functions What are Functions? The power of a spreadsheet program comes from the ability to perform calculations based on entered values. For simple calculations such as A B =, the use of common mathematical operators work well. For more complex calculations, such as computing a monthly loan payment amount, Excel spreadsheets offer a tool called a function. Excel has a large selection of built-in functions to help you perform calculations in a spreadsheet. Built-in functions are grouped into the following categories: Cube Work with the Microsoft SQL Server Analysis Services tool to perform data mining. Database Date & Time Engineering Financial Information Logical Lookup & Reference Math & Trig Statistical Text Compatibility Extract and manipulate data within an Excel database. Perform calculations on dates and times. Perform calculations that are typically used in engineering applications. These functions must be loaded as part of the Analysis Toolpak add-in. Perform financial calculations, such as loans, annuities, and cash flows. Display information about the cells in the worksheet. Control the actions of the spreadsheet based on evaluations of data in the spreadsheet. Locate information in tables or on the Internet. Perform mathematical and trigonometric calculations, such as logarithms, cosine, and rounding. Perform statistical evaluations, such as average, mean, and standard deviation. Manipulate text strings and convert numbers and text. Use additional functions that are used for workbooks created with Excel 2007 and earlier versions. Any functions in this category will no longer be supported in a later version of Excel. For complete details on the available functions, refer to the Microsoft Excel Help feature or get online help from the Microsoft Web site. Using the Correct Syntax for Functions When using functions in Excel, you must follow a standard syntax. The basic components of a function consist of the = symbol, a function name, and its arguments. The purpose of each of these parts is as follows: The = Symbol Function Name (Arguments) Identifies the start of a formula. Identifies the particular function to be used. Identifies any variable portions of the argument or required parts of the formula. You put these three components together in the following order: =FUNCTION(Arguments) The argument portion of a function is enclosed in parentheses and can be a single or multiple value or reference. Commas separate multiple arguments in a function. Some functions do not require any arguments; these functions do, however, still require parentheses v1.00 CCI Learning Solutions Inc.

5 Formulas and Functions Lesson 3 If you do not include the = sign, Excel treats the function as a text label. If the function name is invalid, Excel will display #NAME? in the cell. If you do not have the proper number of arguments, Excel displays a message box and suggests using the Insert Function feature to complete building the function. A function can also be used as part of a larger formula. For example: =(SUM(A1:A5) + SUM(B1:B7)) / SUM(C1:C3) In this example, the SUM function is used three times in the same formula. Note the use of brackets to ensure that the calculations are performed in the sequence that you had intended. Excel follows the standard mathematical precedence of operators: 1. Brackets: () 2. Exponents and roots 3. Multiplication and division 4. Addition and subtraction You can also nest functions together; that is, you can embed one function within another function. An example of nesting functions is the following: =ROUND(SUM(C1:C5),-2) You can accomplish the same result by putting the intermediate results into separate cells. In the nested formula example above, you could put the SUM function in cell C6 so the results are displayed there. You can then use =ROUND(C6,-2) to calculate your final result in a different cell. In Excel 2010, you are permitted to nest up to 64 layers of functions. With earlier versions of Excel, you could only nest up to seven layers. Inserting Functions Memorizing the syntax of every function is an impossible task. To make it easier to use functions, Excel has a special tool called Insert Function. To access the Insert Function dialog box, use one of the following methods: Click Insert Function ( ) to the left of the Formula bar; or type = (to indicate to Excel that you are entering a formula) and then type the first few characters of the function that you want to enter. Excel displays a drop-down list of all functions that begin with these characters; or on the Home tab, in the Editing group, click the arrow beside AutoSum, then click More Functions; or on the Formulas tab, in the Function Library group, click Insert Function. The Insert Function dialog box displays all functions grouped by most recently used or by categories previously discussed. If you do not know the name of the function you want to use, but you do know what you want to accomplish, you can type a brief description of what you want to do and the Insert Function feature will recommend a function for you v1.00 CCI Learning Solutions Inc. 93

6 Lesson 3 Formulas and Functions After you select a function, Excel displays the Function Arguments dialog box to help you enter all of the correct values as function arguments. Helpful features of this dialog box include: Each argument is listed and the required arguments are highlighted in bold. If the function you re using allows a variable number of arguments, the dialog box displays additional argument boxes as necessary. When the cursor is in one of the argument text boxes, the relevant help information displays in the lower part of the dialog box. If you select or enter data values or cell references into the argument boxes, Excel previews the data to the right of that argument box. In the following example screen, the data values being considered are {45;24;57;49;36}. If enough arguments have been entered, Excel also displays the results in the lower part of the dialog box. In this example screen, the calculated sum for the selected cell range is 211. Many of the arguments in a function permit you to select a cell or range of cells containing the values to be used. For example, consider the following three functions: =SUM(45,24,57,49,36) =SUM(C1,C2,C3,C4,C5) =SUM(C1:C5) Assuming that cell C1 contains the value 45, C2 contains 24, and so on, all three of these functions will result in the displayed value of 211. You can enter a value or cell range into the Function Arguments dialog box directly into the argument text box, in the same way that they have been entered into the Number1 text box in the preceding example screen. If you are entering a cell address reference or a cell range, you can also select this cell range directly from the worksheet. In some situations, such as if you are using a netbook or tablet computer with a very small screen, the Function Arguments dialog box may block your view of the cell range. If you click the Collapse button ( ) located to the right of the argument text box, the Function Arguments dialog box shrinks temporarily, as shown in the following screen example: Once you have selected your cell range, press or click the Restore ( ) button located at the right side of this text box. The Function Arguments dialog box restores to its full size v1.00 CCI Learning Solutions Inc.

7 Formulas and Functions Lesson 3 Learn the Skill This exercise demonstrates how to use the Insert Function feature. 1 Create a new blank workbook and save it as Functions Student. 2 Enter the following values into the worksheet: Enter a function to total the values in column C and place the answer in cell B1. 3 Select cell B1. 4 Click Insert Function to the left of the Formula bar. 5 If necessary, in the Or select a category box, click the drop-down button and click Most Recently Used. 6 In the Select a function list, click SUM, and then click OK. For this exercise, you will use the Collapse and Restore buttons to enter argument values into the Function Arguments dialog box. Alternatively, you can enter the cell range values directly into the argument text boxes or select the cell range without collapsing the dialog box. 7 With the cursor in the Number1 box, click Collapse to temporarily shrink the Function Arguments dialog box so that it does not obstruct the cell range to be selected. 8 Select cells C1 to C5 in the worksheet and click Restore to restore the Function Arguments dialog box. 9 Click OK to complete the function. 10 Select cell B2 and then click Insert Function. 11 In the Search for a function box, type: standard deviation and click Go. Excel displays a list of functions that involve the use of standard deviation. As you select each of these functions, you will see a short description below the text box describing how the selected function works. The STDEV function appears to be the one you are interested in. If you need further help with that function, you can click the hyperlink at the bottom left corner of the dialog box. 12 Click the STDEV function and then click OK to display the Function Arguments dialog box. 13 If necessary, drag the Function Arguments dialog box out of the way so that it is not blocking the cell range C1 to C5. 14 With the cursor in the Number1 box, select the cell range C1 to C5 and click OK. Your completed worksheet should appear similar to: As the SUM function is by far the most commonly used, it is usually in the Most Recently Used list. If it s not, you can find it in the Math & Trig category. 15 Save and close the workbook v1.00 CCI Learning Solutions Inc. 95

8 Lesson 3 Formulas and Functions Using Math and Trigonometric Functions The most common function in spreadsheet development is the SUM function. Other mathematical and trigonometric functions in Excel include: ABSolute value, COSine, LOGarithm, MODulus, PI, POWER, RADIANS, ROUND, SINe, SQuare RooT, and TANgent. The intent of this courseware is to teach you basic uses of the functions in Excel, not the mathematics behind them. The following is a list of some common mathematical functions used for general purposes: SUM Display the total or sum of a range or ranges. ROUND Round the value to the nearest value with the specified number of decimal places. If the specified number of decimal places is negative, the number is rounded to the left of the decimal point. ROUNDUP ROUNDDOWN INT TRUNC MODULUS Round to the next higher positive value or next lower negative value with the number of specified decimal places (similar to the ROUND function). Round down to the next lower positive value or next higher negative value with the number of specified decimal places (similar to the ROUND function). Round the value down to the lower whole number. Use the same way as you would use ROUNDDOWN. Display the remainder from a division calculation. Note that Excel defines a specific set of arguments for each function. For example, the format of the ROUND function is: =ROUND(value, num_digits) In this function, value is the number (or cell address containing the number) you want to round and num_digits is the number of decimals (or cell address containing the number of decimals) you require. If you are not sure, use the Insert Function feature to enter the function correctly. The ROUND function lets you specify the number of decimal places needed. By default, Excel calculates up to a maximum of 15 digits (on both the left and right sides of the decimal point) regardless of the display format. You may prefer to use formatting to display rounded numbers on the worksheet because this feature does not remove the fractions from subsequent calculations. Note that rounding may adversely affect subsequent calculations because you are actually changing the number, which may cause undesirable effects if the rounded number is used in further calculations. Learn the Skill This exercise will demonstrate how the ROUND function works. 1 Open the Tour Group Cost workbook and save it as Tour Group Cost Student. This worksheet shows the total cost for a group of 26 people on a vacation tour. The total cost needs to be broken down into a cost per person, which will be collected together to pay for the overall tour. For the first calculation, you will use formatting only without the ROUND function. The result will display as rounded to the nearest whole number. 2 In cell B5, type: =B1/B2 and press. 3 Select cell B5 and, on the Home tab, in the Number group, click Decrease Decimal six times to suppress the display of all digits after the decimal point v1.00 CCI Learning Solutions Inc.

9 Formulas and Functions Lesson Now use the ROUND function for the next cell, rounding it to three decimal places. 4 Move to cell B6, type: =ROUND(B1/B2,A6) and press. Instead of using the value in cell A6, you could have entered the number 3 directly into the ROUND function. Continue with the ROUND function for the remaining cells in column B. 5 In cell B7, type: =ROUND(B1/B2,2). 6 Repeat step 5 for the remaining cell range B8 to B12, using the number in column A as the number of decimal digits for the ROUND function. Now calculate the total amount by multiplying the calculated result in column B by the number of tour members. 7 In cell C5, type: =B5*$B$2 and press. 8 Copy the formula in cell C5 to C6:C12. The worksheet should now appear similar to the following: This worksheet clearly demonstrates the difference between formatting and using the ROUND function. In cell B5, the number appears to be rounded to the nearest whole number. However, the cell still maintains all of the decimal digits as evidenced by the fact that the total calculated cost in cell C5 matches the original total. In cells B6 to B12, you see a progression of how the rounding function works. Negative numbers will cause rounding to that power of 10; at the extreme end, a -3 means 10 to the power of -3, which is 1000; therefore, 3356 would round down to You can see that, with increased rounding, each calculated total moves further away from the original total group cost, and at a faster rate (i.e., 3000 * 26 = 78,000). Therefore, if you collect $3356 from each person in the tour group, you will be short of the total by only $9.55. But if you collect $3000 from each person, you will be short by $ This demonstrates that rounding actually changes the resulting number in that cell. 9 Save and close the workbook. Using Statistical Functions A spreadsheet is a natural tool for recording statistical data. Excel provides a long list of standard statistical functions to analyze the data, including CONFIDENCE interval, CORRELation coefficient, NORMal DISTribution, POISSON distribution, STandard DEViation, sample VARiance, and more. Some of the most common statistical functions for general purposes include: AVERAGE COUNT COUNTA MAX MEDIAN MIN Calculate the mean of the numbers in the list of arguments. Count how many cells in the argument list contain values. This function does not count cells with text or blank cells. Count how many cells in the argument list are not empty. This function counts cells that appear empty from using spaces to clear cells. Display the largest number in the argument list. Display the median of the numbers in the argument list. Display the smallest number in the argument list. When you enter the first three characters ( =ro ) of this formula, Excel displays a list of all functions that begin with RO. Instead of typing the rest of the function name, double-click ROUND in the list. You still have to type in the arguments v1.00 CCI Learning Solutions Inc. 97

10 Lesson 3 Formulas and Functions Learn the Skill This exercise demonstrates some of the statistical functions in Excel. 1 Open the Snow Mountain workbook and save as Snow Mountain Student. 2 Select cell B13 and, on the Home tab, in the Editing group, click the arrow for AutoSum. 3 Select Count Numbers from the list box. 4 Select the cell range B5:B11 and then press. 5 Enter the following formulas: Cell B14 B15 B16 B17 B18 B20 B21 Formula =COUNTA(B5:B11) =SUM(B5:B11) =ROUND(AVERAGE(B5:B11),1) =MAX(B5:B11) =MIN(B5:B11) =AVERAGE(B5:I11) =STDEV(B5:I11) 6 Copy the formulas from B13:B18 to C13:I18. 7 Decrease the number of decimals for cells B20 and B21 to one decimal place. The worksheet should now appear similar to the following: Notice the different results between the COUNT (row 13) and COUNTA (row 14) in the way they treat cells that contain text characters instead of numbers. Also, notice that the AVERAGE, MIN, and MAX functions ignore cells that do not contain numeric values; for example, in columns B and H, the MIN results are not zero. 8 Save and close the workbook. You can enter function names and cell references in upper or lower case. You do not have to enter closing parentheses for most functions (except nested functions, as in B16); however, it is a good habit to do so anyway v1.00 CCI Learning Solutions Inc.

11 Formulas and Functions Lesson 3 Using the Subtotal Function The SUM function calculates an arithmetical total of the selected cell range. In most situations, it is the appropriate function for automatically adding together the value in multiple cells. For complex data tables, it may be more appropriate to use the SUBTOTAL function. The SUBTOTAL function does more than calculate a sum total for a range of cells; it actually performs a variety of statistical operations, depending on which function number is used. The general format of the SUBTOTAL function is: =SUBTOTAL(Function #, Cell Range) The most commonly used function numbers are: Function # Function 1 AVERAGE mean average of the cell range 2 COUNT number of cells containing numbers 3 COUNTA number of non-blank cells 4 MAX highest value in the cell range 5 MIN lowest value in the cell range 9 SUM sum total of the cell range Other function numbers that are also available for SUBTOTAL are: Function # Function 6 PRODUCT (all numbers multiplied together) 7 STDEV.S (standard deviation based on a sample) 8 STDEV.P (standard deviation based on entire population) 10 VAR.S (variance based on a sample) 11 VAR.P (variance based on entire population) The primary advantage of SUBTOTAL is that it will not include any other SUBTOTAL calculations within its range. As a result, you can insert subtotal, total, and grand total calculations into a table without any risk of accidentally double-counting a subtotal by simply including the entire range of cells. To insert the SUBTOTAL function, use one of the following methods: Click Insert Function and then, in the Or select a category field, click Math & Trig; or on the Formulas tab, in the Function Library group, click Math & Trig. Learn the Skill This exercise demonstrates the use of the different SUBTOTAL function numbers. 1 Open the Weekly Expense Report workbook and save it as Weekly Expense Report Student. First, use the traditional SUM function to calculate the subtotal values in column B. 2 Select cell C6 and then, on the Home tab, in the Editing group, click AutoSum. Verify that only cell C5 is selected as the argument for the SUM function and press. 3 Select cell C9 and then, on the Home tab, in the Editing group, click AutoSum. Verify that only cell C8 is selected as the argument for the SUM function and press. 4 Select cell C13 and then, on the Home tab, in the Editing group, click AutoSum. Verify that both expense values in the cells above are selected and press. 5 Repeat either step 3 or 4 (depending on whether there is one or two values to add together) for each of the remaining subtotal cells in cells C17, C21, C24, E6, E9, E13, E17, E21, and E v1.00 CCI Learning Solutions Inc. 99

12 Lesson 3 Formulas and Functions The worksheet should now appear similar to the following: Up to this point, both columns C and D have been identical; subtotal values have been calculated for each travel office. You will now try to calculate the grand total for all offices. To do this, you will deliberately create an incorrect grand total for column C, which you will use for comparative purposes. 6 Select cell C25 and then, on the Home tab, in the Editing group, click AutoSum. Select cells C5:C24 and press. 7 Enter the following formulas: Cell Formula C26 =AVERAGE(C5:C25) C27 =COUNT(C5:C25) C28 =MAX(C5:C25) C29 =MIN(C5:C25) Now enter the correct formulas for column E; the grand total of =SUM(E6,E9,E13,E17,E21,E24) picks up only the subtotal values. 8 Select cell E25 and then, on the Home tab, in the Editing group, click AutoSum. To select individual cells instead of the full range as you did in step 6, you must use the 9 Select cell E6, hold down the key, and then click on each of cells E9, E13, E17, E21, and E24. Release the key and press. Notice that the grand total in column E is half of the grand total in column C. This demonstrates that the latter value is double-counting everything in column C. key v1.00 CCI Learning Solutions Inc.

13 Formulas and Functions Lesson 3 10 Enter the following formulas: Cell E26 E27 E28 E29 Formula =AVERAGE(E5,E8,E11,E12,E15,E16,E19,E20,E23) =COUNT(E5,E8,E11,E12,E15,E16,E19,E20,E23) =MAX(E5,E8,E11,E12,E15,E16,E19,E20,E23) =MIN(E5,E8,E11,E12,E15,E16,E19,E20,E23) As you can see, step 10 was painful it was tedious and error-prone. The worksheet should now appear similar to the following: Now use the SUBTOTAL function and see how it works. 11 Select cell G6 and enter: =SUBTOTAL(9,G5). 12 Now enter the remaining subtotal formulas: Cell Formula G9 =SUBTOTAL(9,G8) G13 =SUBTOTAL(9,G11:G12) G17 =SUBTOTAL(9,G15:G16) G21 =SUBTOTAL(9,G19:G20) G24 =SUBTOTAL(9,G23) Note that you can select the cell or cell range instead of typing the cell reference addresses into the function, if that is easier for you. 13 Select cell G25 and enter: =SUBTOTAL(9,G5:G24). Enter the remaining statistical functions using SUBTOTAL. For step 10, you could save time by using absolute cell references for the AVERAGE formula, copying them to the remaining cells, and changing the function name v1.00 CCI Learning Solutions Inc. 101

14 Lesson 3 Formulas and Functions Enter the following formulas: Cell G26 G27 G28 G29 Formula =SUBTOTAL(1,G5:G25) =SUBTOTAL(2,G5:G25) =SUBTOTAL(4,G5:G25) =SUBTOTAL(5,G5:G25) Step 14 was much easier to do than step 10 because you simply selected the entire cell range in the column (including the grand total). The SUBTOTAL function simply ignored the presence of any other SUBTOTAL function within that cell range. As a result, column G shows the same results as column E. It was just as easy in column C to enter those formulas, but the results were incorrect. The worksheet should now appear similar to the following: 15 Save and close the workbook. Working with Financial Functions Several financial functions are built into Excel. These financial calculations have some very complex mathematics underneath, so they are useful in many applications. They are particularly useful when using worksheets that require calculations of loan payments, annuities, and related calculations. Some of the more useful financial functions include: PMT NPV Calculate the payment required for a given principal, interest rate, and number of time periods. Calculate the Net Present Value of a stream of cash flows. PV FV Calculate the Present Value of an ordinary annuity or series of payments. Calculate the Future Value of an ordinary annuity or series of payments v1.00 CCI Learning Solutions Inc.

15 Formulas and Functions Lesson 3 As an example, the PMT function requires that you specify the principal (amount borrowed), the interest rate, and the term (repayment period). The function also includes two optional arguments: ending balance (termination/buy out) and type (when payments will be made; enter 0 or leave this blank for the end of the month or enter 1 for the beginning of the month). The format is: =PMT(interest,term,principal,ending balance,type) When you enter the values for interest and term, ensure that you express them in the same time units. For example, if you want to find the monthly loan payment, you must ensure that both interest and term are expressed in months. If you are given an annual interest rate, you must divide that value by 12. And if the term is in years, you must multiply that value by 12. For example, to calculate the monthly payment for a loan with an annual interest rate of 6% and a term life of five years, the arguments used in the PMT function are: interest rate = 6% / 12 = 0.5% per month term = 5 x 12 = 60 months Note: The PMT function cannot be used to correctly calculate mortgage payments in some countries, such as Canada, where interest on residential mortgages is calculated semi-annually, not in advance. As a result, the monthly payment amount is lower because the interest is not compounded monthly. The PMT function does correctly calculate the mortgage payments in other countries that do not have this rule, such as the United States. In general, Excel calculates the Total per Term by using the number of monthly payments multiplied by the amount of the monthly payment. The Total Interest paid is based on the Total per Term minus the amount of the Loan. Learn the Skill This exercise demonstrates the use of the PMT function on a loan used to pay for vacation travel. A loan analysis table enables you to see the amount of principal and interest that is paid on a loan monthly or yearly. Once completed, the spreadsheet can be used to quickly determine the payments required for any loan amount, interest rate, and term. 1 Open the Monthly Payments workbook and save it as Monthly Payments Student workbook. 2 Use the following data for the loan payment calculation: Amount of Loan (B1) 5,000 Interest Rate (B2).06 Term of Loan (B3) 12 Ending Balance (B4) 0 Payment Type (B5) 0 Payment/Month (B7) =PMT(B2/12,B3, B1,B4,B5) Total/Term (B8) =B7*B3 Total Interest (B9) =B8 B1 Note that the interest rate used here is for a full year, but the term is in months. The interest rate must be converted into a monthly rate. The loan will be fully paid off at the end of the term, so the ending balance will be zero. 3 Select cells B12:E23. On the Home tab, in the Number group, click the arrow for Number Format, and click Currency. 4 In cell B12, type: =B1 to represent the initial loan amount. 5 In cell C12, type: =B12*$B$2/12. Because the Ending Balance and Payment Type values are both zero, the last two arguments of the function could be omitted, in this case v1.00 CCI Learning Solutions Inc. 103

16 Lesson 3 Formulas and Functions This will show the amount of interest to be paid in the first month. You will be copying this formula, so you will have to make the entry in the Interest Rate cell into an absolute cell reference. 6 In cell D12, type: =$B$7 C12 as the formula to subtract the interest paid from the Monthly Payment. Note that you must make the formula in cell B7 absolute because you will be copying this formula. 7 In cell E12, type: =B12 D12 to calculate the Beginning Principal less the Principal paid for the current month. Complete the table by following these steps. 8 In cell B13, type: =E12 to represent the Ending Balance of the first month. 9 Copy the range of cells C12:E12 to cells C13:E Copy the range of cells B13:E13 to cells B14:E23. The worksheet should now appear similar to the following: Note that the ending balance in cell E23 is $ Save and close the workbook. Using Logical Functions One of the most powerful and useful features of spreadsheets is the ability to perform calculations that depend on a condition that will become true. The primary function used for this is the IF function. This function makes an evaluation or logical test and performs one of two functions based on the result. This automatic evaluation provides on-the-fly worksheet calculations. The format of the IF function is as follows: =IF(logical test,value if true,value if false) Logical Test This specifies what the IF statement will evaluate. Value if True Value if False If the Logical Test is found to be true, the result of the IF function will be whatever is in this section of the formula. If the Logical Test is found to be false, the result of the IF function will be whatever is in this section of the formula v1.00 CCI Learning Solutions Inc.

17 Formulas and Functions Lesson 3 The Logical Test section of the statement can include comparison operators that will help you obtain the desired result. Qualifiers are punctuation marks used to identify or define different types of data; for example, text used in a formula requires double quotes as qualifiers. Qualifiers also enable you to evaluate for a range of numbers or results. Some of the comparison operators you can use are: = Equal to (or the same as) > Greater than < Less than >= Greater than or equal to <= Less than or equal to <> Not equal to The Value if True/False sections can contain a text string, values, or other functions. In fact, you can nest or embed up to 64 IF functions within one IF statement. An example of a nested IF function would look as follows: =IF(A1=10, text A,IF(A1=20, text B, text C )) In this example, the following values will be displayed when the conditions are met: If A1 contains Then this will display 10 text A 20 text B Any other value text C Two additional functions combine the power of the IF function with the COUNT and SUM functions: COUNTIF SUMIF For the selected range of cells, include only those cells in which the logical test value will have a result that is true in the count. For the selected range of cells, include only those cells in which the logical test value will have a result that is true in the sum. There are more conditional statistical functions, but these two are the most commonly used ones of that type. Learn the Skill This exercise demonstrates the use of the IF function. Tolano Adventures offers a promotional rebate program for customers who spend over $10,000 during the year. You will use a worksheet that will calculate the rebate at 2% of the amount spent over $10,000. There is no rebate if the amount is less than $10, Open the Customer Sales Rebate workbook and save it as Customer Sales Rebate Student. 2 Select cell D2 and click Insert Function 3 In the Or select a category list, click Logical. 4 In the Select a function list, click IF and click OK. As the rebate only applies to amounts in excess of $10,000, the logical test will evaluate the sales value in the adjacent cell (C2) and determine if this amount is in excess of $10, In the Logical_test field, type: C2> The next section is the Value_if_true section. If the value in the cell on the left (C2 in this case) is in excess of 10,000, you want the function to calculate the rebate as 2% of the sales amount. 6 In the Value_if_true field, type: C2* v1.00 CCI Learning Solutions Inc. 105

18 Lesson 3 Formulas and Functions The last part of the formula is the Value_if_false section. If the figure to the left is less than or equal to 10,000, you want the function to return a zero. 7 In the Value_if_false field, type: 0. The Function Arguments dialog box appears as follows: 8 Click OK. Note that the resulting formula is =IF(C2>10000,C2*0.02,0). The formula contains a relative cell address (C2); therefore, you can copy the formula into the other parts of the worksheet. 9 Copy the formula from cell D2 to cells D3:D26. Calculate the total rebates to be paid out to customers. 10 Select cell D27 and, on the Home tab, in the Editing group, click AutoSum; then press to accept it. The worksheet should now appear similar to the following: 11 Save and close the workbook v1.00 CCI Learning Solutions Inc.

19 Formulas and Functions Lesson You can modify your IF function if you want a more presentable worksheet. For example, if you want the IF formula to show a blank cell instead of zeros or dashes when there is no rebate, modify the formula to appear as follows: =IF(C2>10000,C2*0.02," ") The double quotes will cause Excel to insert a blank in any cell that proves FALSE based on the argument in the Logical_test. Another possible alternative would be to display a message: =IF(C2>10000,C2*0.02,"does not qualify") To have either example work properly, remember to copy the changed formula to the other cells on the worksheet. Using Date and Time Functions Excel s date and time functions help you create worksheets that perform calculations based on dates and times. It is possible to use dates to calculate things such as age or length of service or number of days between two dates. The use of time functions enables calculations based on time, with Excel converting seconds to minutes and minutes to hours. To do these calculations, Excel stores the date and time values as serial numbers with the integer portion being the number of days since January 1, 1900 and the fractional part as a portion of 24 hours. Special functions are provided to determine the date and time serial numbers, and to extract the month, day, year, hours, minutes, and second values from serial numbers. Some of the most useful date and time functions include: NOW TODAY DATE DATEVALUE DAY MONTH YEAR WEEKDAY HOUR MINUTE SECOND Return the serial number of the current date and time. This date and time value is continuously updated. Return the serial number of today s date with the time portion set to 0. This date value is continuously updated. Calculate the serial number for a specified date. Calculate the serial number for a specified date, which is in general text form. Display the day value for the specified date serial number. Display the numeric month value for the date serial number. Display the year value for the specified year serial number. Display a numeric weekday value for the date serial number. Display the hour value for the specified time serial number. Display the minute value for the specified time serial number. Display the second value for the time serial number. For example, the format for the DATE function is as follows: =DATE(YEAR,MONTH,DAY) The format for the =TIME function is as follows: =TIME(HOUR,MINUTE,SECOND) When using Insert Function, Excel inserts the quotes for you. If you want the False Value to be blank, you must type both quotes or the word False will appear in the cell. A different way of obtaining the current date is by pressing +, and the current time by pressing + +. However, these date and time values do not change; they always stay as the original values v1.00 CCI Learning Solutions Inc. 107

20 Lesson 3 Formulas and Functions Learn the Skill This exercise demonstrates the use of date and time functions. 1 Open the Departure Date Calculator workbook and save it as Departure Date Calculator Student. 2 Select cell B3 and enter a date in the future of your choice. Use a function to obtain the current date and time. It automatically updates itself over time. 3 Select cell B4 and enter: =NOW(). Perform a calculation using dates. These calculations look just like ones using numeric values. 4 Select cell B6 and enter: =B3 B4. Extract the components of today s date and time value into individual numbers. 5 Enter the following functions: Cell B8 B9 B10 B11 B12 B13 Formula =MONTH(B4) =DAY(B4) =YEAR(B4) =HOUR(B4) =MINUTE(B4) =SECOND(B4) Create a new date value using the month, day, and year numbers. 6 Select cell B15 and enter: =DATE(B10,B8,B9). The worksheet should now appear similar to the following: Recalculate the current date and time, and note the changes in cells B12 and B13. 7 Press the key. 8 Save and close the workbook. Even though some of the cells only show two digits of the year value, Excel uses four digits internally to ensure the date calculations are correct v1.00 CCI Learning Solutions Inc.

21 Formulas and Functions Lesson 3 Using Text Functions Excel includes several text-oriented functions that are useful for handling text strings. They are often used to manipulate data imported from other sources. Some of the most useful text functions include: 2.4 TEXT TRIM Convert a number into the equivalent text string formatted as specified. Remove any blanks from the text string. LEFT RIGHT MID LEN FIND UPPER LOWER PROPER REPLACE REPT SUBSTITUTE Extract the specified number of characters starting from the left side of the text string. Extract the specified number of characters starting from the right side of the text string. Extract the specified number of characters starting from any position in the text string. Determine the number of characters in a text string. Search a text string for specified characters, and return the starting position if the characters are found. The FIND function is case sensitive. The SEARCH function is the same as the FIND function but is not case sensitive. Convert all characters in a text string to uppercase. Convert all characters in a text string to lowercase. Convert the first letter of the text string and any letter following a non-alphabetic character to uppercase. All other characters are set to lowercase. Replace text at a specified location in a text string with new text. Create a text string by repeating the specified characters for the specified number of times. Replace text of a specific pattern in a text string with new text. In addition to text functions, strings of text can be joined or concatenated using the & operator. When spreadsheets are used for lists or as a database, these often overlooked functions can save many hours of manually entering data. Learn the Skill This exercise is designed to demonstrate how text functions can be used to change character strings. 1 Create a new, blank workbook. 2 Enter the following values: Cell Value A1 JaNe B1 parker smith A5 BIRTHDAY 3 Increase the width of columns A, B, and C to Select cell C1 and type: =A1&" "&B1. The space between the quotation marks is required to separate first and last names. 5 Select cell A2 and type: =LOWER(A1). 6 Select cell A3 and type: =UPPER(A1). 7 Select cell A4 and type: =PROPER(A1) v1.00 CCI Learning Solutions Inc. 109

22 Lesson 3 Formulas and Functions Copy cells A2:A4 to B2:C4. Notice that Excel inserts capitals in all the proper locations, including after the hyphen. 9 In cell A6, type: =LEFT(A5,5). 10 In cell A7, type: =RIGHT(A5,3). 11 In cell A8, type: =LEFT(A5,3)&MID(A5,6,1). Use the functions for replacing and substituting text characters to create new words. The REPLACE function substitutes text characters at a starting position for the specified number of characters. The SUBSTITUTE function replaces a specified pattern of text characters with a new set of characters, regardless of where the characters are located. 12 In cell B5, type: =REPLACE(A5,1,5,"SUN"). 13 In cell C5, type: =SUBSTITUTE(A5,"DAY","STONE"). The worksheet should now appear similar to the following: 14 Save the workbook as Text Functions Student and close it. Using Information Functions These functions return a simple true or false condition based on the arguments provided. The information functions can refer to cells or test the results of formulas. When combined with the IF function, the information functions can be used to control a variety of conditional processing tasks. Some commonly used information functions include: ISBLANK ISERROR ISNA ISNONTEXT ISTEXT ISNUMBER NA Return a TRUE value if the cell or formula being tested has no entry in it. Return a TRUE value if the referenced cell or function has any kind of error. Return a TRUE value if the selected cell or function results in a # N/A error message. Return a TRUE value if the cell or function results contain any value other than text characters, or is blank. Return a TRUE value if the selected cell contains text-only characters. Return a TRUE value if the cell or function results contain a numeric value. Return the # N/A error value. It is often used as part of the logical IF function v1.00 CCI Learning Solutions Inc.

23 Formulas and Functions Lesson 3 Learn the Skill This exercise demonstrates the use of some of the information functions in Excel. 1 Create a new, blank workbook. 2 Enter the following values: Cell Value B2 String B B4 Plain A5 10 B5 0 3 Enter the following functions into the cells indicated: Cell C2 D2 C3 C4 C5 D5 Function =ISNUMBER(B2) =IF(ISNUMBER(B2),"B2 is a number","b2 is not a number") =ISTEXT(B3) =ISNONTEXT(B4) =IF(B5=0,NA(),A5/B5) =IF(ISNA(C5),"Error: Attempt to divide by zero!","") The worksheet should now appear similar to the following: 4 Now change the values as follows: Cell Value B2 15 B3 Variable B4 (delete the value) B5 5 5 If you wish, enter other values of your choosing into cells B2, B3, B4, A5, and B5. 6 Save the workbook as Information Functions Student and close it. Using Lookup and Reference Lookup functions are used to find information in lists or arrays based on a known value. This capability is very useful in situations such as locating product information in the form of a table containing product IDs, with the description and price next to each ID. You can scan down the list until you find the Product ID, then easily look at the adjacent columns to find the description and price for that product. That is the basic principle of the lookup functions: look for a value in a table and select the corresponding values in adjacent cells v1.00 CCI Learning Solutions Inc. 111

24 Lesson 3 Formulas and Functions These functions can also be considered as array functions because the data used for lookups are in the form of arrays. In other words, the lookup functions search through a one-dimensional (row or column) or twodimensional range of cells containing data to extract a value. The most common lookup and reference functions are: CHOOSE INDEX HLOOKUP VLOOKUP Select from a one-dimensional list of values (called a vector) by using an index number. This is the simplest form of lookup. Select from a two-dimensional list of values. Perform a lookup across the first row of a two-dimensional array selecting the column that matches the search value. An index number is used to select the row from which the value will be returned. Perform a vertical lookup, in much the same way that HLOOKUP performs a horizontal lookup. The format for the vertical lookup function is as follows: =VLOOKUP(lookup value,table array,column index number,range lookup) Similarly, the format for the horizontal lookup function is as follows: =HLOOKUP(lookup value,table array,row index number,range lookup) lookup value table array column index number row index number range lookup The value to be found in the table array. The location or table of information where the data can be found. The column used in a specific row to find the item; columns are numbered sequentially from the left-most column. The row used in that column to find the item; rows are numbered sequentially from the top row of the table. You can enter 0 or false if you wish the function to find an exact match in a sorted or unsorted list; enter true or omit argument if you want the function to find an approximate match in a sorted list. Even though the range lookup parameter is optional, it has an important switch setting that deserves a closer look. Consider an example of a scoring sheet for a school examination paper: Mark Achieved Grade Assigned on Exam 0% F 50% D 60% C 70% B 85% A All students will have a result ranging from 0% to 100%. The VLOOKUP formula would be used here because the data are aligned vertically. By using a range lookup value of TRUE, you tell Excel to search the table for the highest mark value that does not exceed the lookup value. For example, a student achieving a mark of 65% will get a grade value of C because 60% is the highest table value found that does not exceed the lookup value. If a range lookup value of FALSE is used, the VLOOKUP formula will not find the correct grade for most students. This is because the mark achieved must exactly match one of the values in the table in order to be found. Therefore, a range lookup value of FALSE is not the right choice to use here v1.00 CCI Learning Solutions Inc.

25 Formulas and Functions Lesson 3 If the scoring sheet is structured horizontally, the HLOOKUP formula should be used instead, as follows: Mark Achieved on Exam 0% 50% 60% 70% 85% Grade Assigned F D C B A The same range lookup value of TRUE can be used to find the correct grade to assign, even though the student s mark can be any value between 0% and 100%. And the range lookup value of FALSE is also inappropriate for this HLOOKUP formula because most students will not have a mark that matches the table values exactly. Learn the Skill This exercise is designed to demonstrate the use of the VLOOKUP function in an invoice worksheet. 1 Open the Pricing Sheet workbook and save it as Pricing Sheet Student. This worksheet shows a partial tour pricing list on the top and a sample invoice below it. The requirement is to enter a product number in column B of the invoice and have the description and cost appear on the invoice automatically. In this case, Excel will look up the product number in an inventory and retrieve the corresponding description and cost. 2 In cell E12, type: =A12*D12 and press. 3 Copy this formula to range E13:E14. 4 In cell E15, type: =SUM(E12:E14) and press. 5 In cell C12, type: =VLOOKUP(B12,$B$5:$D$8,2,TRUE) and press. The characters #N/A appear in cell C12. 6 Copy this formula to the range C13:C14. 7 In cell D12, type: =VLOOKUP(B12,$B$5:$D$8,3,TRUE) and press. 8 Copy this formula to range D13:D14. Notice that the tour numbers are sorted in ascending order. This is required for the lookup function to work properly. In a real-world example, the inventory list would be on a different worksheet or, more often, in a different workbook. This exercise has been simplified for instructional purposes v1.00 CCI Learning Solutions Inc. 113

26 Lesson 3 Formulas and Functions Notice the #N/A filling the cells; this is displayed by the lookup functions when there is no lookup value. The IF function could be used to clean up its appearance, but this exercise focuses on the lookup function. 9 Enter the following quantities and part numbers: Row Qty Tour# 12 3 A B A4350 The worksheet should now appear similar to the following: The last item entered had the wrong tour number. As a result, the wrong description and cost were displayed. For this kind of worksheet, you should use the FALSE value for the range lookup option so that Excel will identify incorrect tour numbers immediately. 10 Select cell C12, press, and change the TRUE to FALSE in the VLOOKUP formula. 11 Repeat step 10 for cell D Copy the formulas in cell C12:D12 to cells C13:D v1.00 CCI Learning Solutions Inc.

27 Formulas and Functions Lesson 3 13 Select cell B14 and enter the correct tour # value: A4353. The worksheet should now appear similar to the following: 14 Save and close this workbook. Converting Data Types Several Excel functions are dedicated to changing data from one type to another. In computer systems, data types are very important because all other calculations, operations, and functions expect to work with specific data types. For example, the computer is not able to perform arithmetic with alphabetical characters or use text functions (such as choosing upper case) on numbers or date values. Suppose you wanted to create the following sentence: You are <A1> years old, in which cell A1 contains a person s age as a number. The first and last halves of the sentence are text strings. You can use the CONCATENATE function to attach multiple text strings together into a single longer one. However, the CONCATENATE function requires every component to be a text string. To insert the age into the middle, you must convert the number into its equivalent text value and then concatenate the three pieces together. The resulting formula would then be: =CONCATENATE("You are ",TEXT(C2,"0.0")," years old")) v1.00 CCI Learning Solutions Inc. 115

28 Lesson 3 Formulas and Functions The following conversion functions are commonly used: CHAR CODE Convert a number in the range of 0 to 255 to its equivalent text character. Convert a text character to its equivalent internal code (the reverse of CHAR). If the argument is a string containing more than one character, it converts only the first one. DATEVALUE DOLLAR FIXED TEXT VALUE Convert a text string that contains a date to a date value. Convert a number to a text string using the local currency format. You can also specify the number of digits to show after the decimal point. Convert a number to a text string using the standard number format. You can also specify the number of digits to show after the decimal point. Convert a number to a text string using a custom display format that you also specify. Convert a text string containing a number to a numeric value. Learn the Skill This exercise demonstrates how to use functions that will convert data values from one type to another. 1 Open the Conversion Functions workbook and save it as Conversion Functions Student. Start with an ordinary number in a cell. 2 Select cell C2 and enter: 12. Now enter a function that will convert a number into its equivalent text string. 3 Select cell D2 and enter: =TEXT(C2,"0"). You can see that the number in cell C2 is right-aligned, which is the default treatment for numbers, and the text in cell D2 is left-aligned, which is the default for text strings. Let s see what happens when we enter arithmetical formulas for both cells. 4 Enter the first row of values or formulas: Cell Value F2 =C2+10 G2 =D2+10 Surprisingly, Excel has no problem with performing arithmetic on a cell containing a text string. Now enter the number 12 as a text string. To do so, you must use the single quote as the very first character of the string, which Excel will understand as an instruction to treat the rest of the data entered as a text string. Without that single quote, Excel will automatically convert anything that looks like a proper number to a number, and anything that looks like a date to a date format v1.00 CCI Learning Solutions Inc.

29 Formulas and Functions Lesson 3 5 Select cell C3 and enter: '12. Excel displays a smart tag in the upper left corner of this cell to warn you that the value looks like a number but that you have entered it as a text string. Now enter a conversion function for the next cell to convert it to the equivalent number. 6 Select cell D3 and enter: =VALUE(C3). Notice the default alignment used in these two cells. Now copy the arithmetical formulas from the row above. 7 Copy the formulas in F2:G2 down to F3:G3. For the next set, you will try converting a number to a date value. 8 Select cell C4 and enter: Select cell D4 and enter: =C4. Since a date value is really a number (the number of days since January 1, 1900), you only need to change the formatting to a date or date and time format. 10 Select cell D4 again and then, on the Home tab, in the Number group, click the dialog box launcher. In the Format Cells dialog box, select Date under Category (in the Number tab), and click 3/14/01 1:30 PM in the Type list, then click OK. 11 Copy the formulas in F3:G3 down to F4:G4. For the next set, you will convert a date and time value to a number. 12 Select cell C5 and enter: =NOW(). (You may need to widen column C in order to fully display the date and time.) 13 Select cell D5 and enter: =C5. 14 Copy the formulas in F4:G4 down to F5:G5. For the next set, you will convert a text string containing a date value to a date. 15 Select cell C6 and enter: 'June 25, Select cell D6 and enter: =DATEVALUE(C6). 17 Copy the formulas in F5:G5 down to F6:G6. Excel has again interpreted a cell containing what appears to be a date value and treated it as a date value so that the arithmetic operation could be performed in cell F6. For the next set, you will convert a number to its equivalent text character, and the reverse. 18 Select cell C7 and enter: Select cell D7 and enter: =CHAR(C7). 20 Select cell C8 and enter: a. 21 Select cell D8 and enter: =CODE(C8). Notice that the internal code value for A is different than for a. 22 Copy the formulas in F6:G6 down to F7:G8. The arithmetical operation in cells G7 and F8 failed because Excel is not able to perform this function with alphabetical characters. For the next set, you will convert a number to a dollar currency format and a text string format v1.00 CCI Learning Solutions Inc. 117

30 Lesson 3 Formulas and Functions 23 Select cell C9 and enter: then enter it into cell C10 as well. 24 Select cell D9 and enter: =DOLLAR(C9,2). 25 Select cell D10 and enter: =FIXED(C10,2,FALSE). 26 Copy the formulas in F8:G8 down to F9:G10. The worksheet should now appear similar to the following: Save and close the workbook. Using Advanced Functions Using Conditional Logic Functions Most Excel functions simply perform their calculations and display the results in the cells in which they are located. Conditional logic functions are useful in situations where you want to perform one of two different calculations, depending on what the value is in one or more cells other than the one in which they are located. In the IF function (described above in the Using Logical Functions topic), you are permitted to have only one logical test that results in a TRUE or FALSE value. If you need to perform two or more different logic tests, then you must either nest that number of IF functions inside each other, or use an AND or OR function. AND NOT The AND function allows multiple logical tests to be performed, and all of them are combined together to return a single TRUE or FALSE value. The AND function returns a TRUE value only if all of the logical tests are TRUE. It returns a FALSE value if any of the logical tests result in a FALSE value. AND(logical test 1, logical test 2,...) You can have up to 255 logical tests in an AND function. This function returns the logical opposite value of a logical result. That is, a TRUE value is reversed to a FALSE, and a FALSE is reversed to a TRUE. NOT(logical test) You can enter only one logical value in this function. OR Like the AND function, the OR function evaluates multiple logical tests to return a single TRUE or FALSE value. Unlike the AND function, this function returns a TRUE value if any of the logical tests are TRUE. It returns a FALSE value only if all of the logical tests result in a FALSE value. OR(logical 1, logical 2,...) You can have up to 255 logical tests in an OR function. When you need to nest logical functions together, be sure to build them slowly, one function at a time. Nested functions are complex: the arguments, commas, and brackets must be in the right place to prevent them from either being rejected by Excel or from returning incorrect results. Another logical function that you will find useful for special situations is IFERROR: IFERROR(value, value_if_error) v1.00 CCI Learning Solutions Inc.

31 Formulas and Functions Lesson 3 If the first argument is determined to be an error value, then the value in the second argument is calculated and displayed instead. It is typically used with another function, formula, or cell reference nested inside it as the first argument. For example, suppose you have the following formula in cell A1: =B1/C1 If cell C1 contained the value 0 (zero), then cell A1 will display #DIV/0 to show that you are trying to divide by zero, which is an error situation. To avoid displaying the #DIV/0, you can change the formula to: =IFERROR(B1/C1," ") Then if cell C1 contains a zero, then cell A1 will appear as a friendlier-looking blank cell, otherwise it will show the result of dividing C1 into B1. The IFERROR function can detect any of the following error conditions: #N/A (argument error for a function) #VALUE (incorrect argument type for a function) #REF! (invalid cell reference) #DIV/0 (division by zero) #NUM! (numeric value expected in a function) #NAME? (function name is spelled incorrectly) #NULL (null value returned by a function) Learn the Skill This exercise is designed to demonstrate the use of the IF, IFERROR, and OR functions to improve the readability of a worksheet by suppressing the display of error symbols. 1 Open the Pricing Sheet Student workbook. 2 Select cell B14 and press. The #N/A identifier is now displayed in several cells, all of which depend on the value appearing in cell B14. Clearly, these error symbols are very distracting on a worksheet, especially since it is difficult to know in advance how many rows of data will be used. The IF formula can be used effectively to unclutter this worksheet by displaying a blank cell whenever one of the input cells for the formula is blank. 3 Select cell E14 and press to go into edit mode for the cell. 4 Change the formula to: =IF(B14="","",A14*D14) v1.00 CCI Learning Solutions Inc. 119

32 Lesson 3 Formulas and Functions The IFERROR formula can be used to accomplish the same result. 5 Select cell D14 and press. Change the formula to appear as: =IFERROR(VLOOKUP(B14,$B$5:$D$8,3,FALSE),"") Apply the IF formula to the remaining lookup cell for this row. 6 Select cell C14 and press. Change the formula to appear as: =IF(B14="","",VLOOKUP(B14,$B$5:$D$8,2,FALSE)) These formulas handle the situation when the cell is blank, so now try an invalid cell entry. 7 Select cell B14 and enter: A4. Note that cell D14 is the only one of the three modified cells in this row that still shows a blank. The other two display an error symbol again. This demonstrates that the IFERROR formula is more flexible in catching all error conditions. You can use either the IF or IFERROR formula, depending on what result you want to achieve under different conditions. 8 Select cell B14 and enter: A4353. The OR formula can also be inserted to test multiple conditions. 9 Select cell E14 and press. Change the formula to: =IF(OR(B14="",A14=""),"",A14*D14). Now test the result of deleting just the part # field. 10 Select cell B14, and press. You attain the same result as before. Now see what happens when you delete the contents of the other cells used in the formula. 11 On the Quick Access Toolbar, click Undo. 12 Select cell A14 and press. This demonstrates how the IF and OR formulas can be combined together to achieve a very satisfactory result v1.00 CCI Learning Solutions Inc.

33 Formulas and Functions Lesson 3 Restore the deleted cell and copy the modified formulas to the other rows. 13 On the Quick Access Toolbar, click Undo. 14 Select cells C14:E14. Copy the contents of these cells to the cell range C12:E Save and close the workbook. Using Conditional Summary Functions The conditional summary versions of the commonly used summary functions AVERAGE, COUNT, and SUM are very powerful extensions of the base functions. Although the function name has an IF in it, the selection capability works more like filtering: for the given range of cells, Excel first selects only the rows that meet the criteria and applies the summary function on those rows. The remaining rows are ignored. AVERAGEIF COUNTIF SUMIF Calculate the average value of a range of cells in which the criterion value is met. The format of this function is as follows: AVERAGEIF(criteria_range, criterion_value, average_range) The average range is optional. If it is not specified, the criteria range is assumed to be the average range. Count the number of cells that contain a non-blank value in a range of cells where the criterion value is met. COUNTIF(criteria_range, criterion_value) Calculate the sum total of all cells containing a numeric value in a range of cells where the criterion value is met. SUMIF(criteria_range, criterion_value, sum_range) The sum range is optional. If it is not specified, the criteria range is assumed to be the sum range. An example of a conditional summary function is: =SUMIF(D4:D207,"Visa",F4:F207) In this function, the criteria range is D4 to D207, the sum range is F4 to F207, and the criterion value is Visa ; therefore, Excel will examine each of the cells in the range D4 to D207. If the cell contains the value Visa, the corresponding numeric value in the cell range F4 to F207 will be included in the sum total. Note that the SUMIF is very different from the more common SUM function. With SUM, the numeric value in all cells in the sum range are added to the sum total. With SUMIF, the cells are added only if the criterion value is met. The above three conditional summary functions permit you to perform only one criteria test. If you need to perform more than one criteria test at the same time, then a different version is needed v1.00 CCI Learning Solutions Inc. 121

34 Lesson 3 Formulas and Functions AVERAGEIFS Calculate the average value of a range of cells in which the criterion values are met. The format of this function is as follows: AVERAGEIFS(average_range, criteria_range 1, criteria 1, criteria_range 2, criteria 2 ) The average range is mandatory. COUNTIFS SUMIFS Count the number of cells that contains a non-blank value in a range of cells where the criterion values are met. COUNTIFS(range 1, criteria 1, range 2, criteria 2 ) Calculate the sum total of all cells containing a numeric value in a range of cells where the criterion values are met. SUMIFS(sum_range, criteria_range 1, criteria 1, criteria_range 2, criteria 2 ) The sum range is mandatory. An example of this kind of conditional summary function is: =SUMIFS(F4:F207,D4:D207,"Visa",F4:F207,">100") In this function, the sum range is F4 to F207, the first criteria range is D4 to D207, and its corresponding criterion value is Visa ; the second criteria range is F4 to F207 and its corresponding criterion test is >100. This means that a value in the cell range F4 to F207 is included in the sum total only if both criteria tests are evaluated as true. For example, the value in cell F4 is included if D4 contains the word Visa and F4 contains a value that is greater than 100. If D4 does not contain the word Visa, or if F4 is less than or equal to 100, or both, then the value in F4 is not included. Because these functions have multiple selection criteria, the sequence of the arguments is different from the single criterion versions of these functions, as described above. The different sequence is necessary to allow multiple selection criteria to be entered as arguments. Learn the Skill This exercise demonstrates the use of conditional summary functions. 1 Open the Customer Sales Rebate Student workbook. Enter text into cells to help identify the function of the first set of conditional formulas. 2 Enter the following text into cells: Cell Text F2 Sales Over $10,000 F3 Total Sales Over $10,000 F4 Avg Sales Over $10,000 To move quickly to a cell, press CTRL+G, which activates the Go To feature, and then enter the cell reference. Now enter the conditional summary formulas. These formulas are straightforward because they only have one criterion: that, is any value in column C is greater than $10, v1.00 CCI Learning Solutions Inc.

35 Formulas and Functions Lesson 3 3 Enter the following formulas into cells: Cell G2 G3 G4 Text =COUNTIF(C2:C26,">10000") =SUMIF(C2:C26,">10000") =AVERAGEIF(C2:C26,">10000") Instead of keying the criteria directly into each of the formulas, you could use a cell reference. For example, cell D210 could be =COUNTIF(D4:D207,B210). Referencing a cell that contains the selection criteria makes it easier to change the criteria and avoid forgetting to change a function that contains the selection criteria. Notice that the SUMIF and AVERAGEIF conditional formulas used here perform their calculations on the same column in which the selection criteria are applied. In other words, these formulas select only those cells that meet the stated criteria and then perform the COUNT, SUM, and AVERAGE on only those cells. The significance of this will become clearer as you examine the next sets of conditional formulas. Now enter the next set of conditional summary formulas. These pertain only to rows where the sales type is Corporate. 4 Enter the following text into cells: Cell Text F6 Corporate Sales F7 Total Corporate Sales F8 Average Corporate Sales 5 Enter the following formulas into cells: Cell Text G6 =COUNTIF(B2:B26,"Corporate") G7 =SUMIF(B2:B26,"Corporate",C2:C26) G8 =AVERAGEIF(B2:B26,"Corporate",C2:C26) These are the same conditional formulas as used previously, except that an additional argument has been added to the SUMIF and AVERAGEIF. In this variation, the criteria are applied to the cells in column B (= Corporate ), but the SUM and AVERAGE are applied to the corresponding cells in column C, which is where the sales amounts are located. The average value can be verified by dividing the sum value into the count value. Now enter the third set of conditional summary formulas. These formulas have two criteria: the sale must be a Corporate sale and the sales amount must be greater than $10,000. For this exercise, you will also perform the calculation on a third column. You will recall earlier in this exercise that the rebate is given to a customer only if the sales amount is more than $10, Enter the following text into cells: Cell Text F10 Corporate Rebates F11 Total Corporate Rebates F12 Avg Corporate Rebates 7 Enter the following conditional summary formulas into cells: Cell Text G10 =COUNTIFS(B2:B26,"Corporate",C2:C26,">10000") G11 =SUMIFS(D2:D26,B2:B26,"Corporate",C2:C26,">10000") G12 =AVERAGEIFS(D2:D26,B2:B26,"Corporate",C2:C26,">10000") Notice that the sequence of the parameters for the sum and average formulas is different in the singlecriteria and multiple-criteria versions v1.00 CCI Learning Solutions Inc. 123

36 Lesson 3 Formulas and Functions The worksheet should now appear as follows: Save and close the workbook. Auditing a Worksheet Users automatically assume that spreadsheets are correct and base decisions on the information provided. Spreadsheet usage is pervasive in business and personal applications, ranging in size from major corporate investments to individual life insurance policies and everything in between. The impact from errors in spreadsheets can range from minor inconveniences to major implications on the livelihoods of thousands of employees. The simple checking of formulas should be performed on any worksheet before it is printed or saved. Using the Error Checking Tool Excel has an error checking feature that greatly reduces time spent auditing formulas for accuracy. If background error checking is enabled, Excel displays a dark green triangle in the upper left corner of a cell to indicate that it contains an inappropriate formula. Possible errors that Excel will highlight include: formulas that are inconsistent with others in the same row or column. formulas that refer to a range but omit a cell that is within or adjacent to the range. formulas that evaluate to an error. numbers stored as text. When you select a cell with a green triangle, a box with an exclamation mark (the Trace Error icon) appears beside it. Select the button to display a drop-down menu that describes the problem and offers to fix it. Alternatively, on the Formulas tab, in the Formula Auditing group, click Error Checking v1.00 CCI Learning Solutions Inc.

37 Formulas and Functions Lesson 3 Learn the Skill This exercise demonstrates how to use Excel s Error Checking tool to find errors in formulas. 1 Open the Rocky Mountains Tour workbook and save it as Rocky Mountains Tour Student. Tolano Adventures is using this spreadsheet to compare the revenues to the expenses for a planned tour. The numbers appear to indicate that a healthy profit will be made. However, this worksheet has formulas with errors in them. Wherever Excel believes that a formula is incorrect, it displays an Error Indicator (green triangle at the upper left corner) in the cell. By default, this background error checking is turned on. You can verify this by looking in the Options dialog box. 2 Click File and then click Options. In the Excel Options dialog box, click the Formulas category v1.00 CCI Learning Solutions Inc. 125

38 Lesson 3 Formulas and Functions 3 Ensure that the Enable background error checking check box is turned on. Notice that you can also change the color of the Error Indicator triangle or toggle various error checking rules on or off. 4 Click the Reset Ignored Errors button and then click OK to close the dialog box. An error indicator (the small green triangle) is now visible in the upper left corner of cell D21, indicating that it contains a possible formula error. 5 Select cell D21 and click the Trace Error icon to the left of this cell. At the top row of the Trace Error menu, Excel describes the problem it has identified: the formula in this cell does not include adjacent cells containing data that you may have wanted to include. At this point, you should check the contents of the formula bar to determine whether to change this formula. 6 Look at the Formula Bar for this cell. The formula in this cell is =SUM(D13:D19). However, cells D12 to D20 contain expense numbers. 7 In the Trace Error menu, click Update Formula to Include Cells. If you select Ignore Error, the green triangle disappears and the error is not identified in future error checks (unless you click Reset Ignored Errors in the Excel Options window). 8 Click Undo in the Quick Access Toolbar to revert the formula back to its previous value. Instead of checking each cell one by one, you can use the Error Checking tool to automatically select the next one. 9 Select cell A1 or any cell at the top of the worksheet. This step demonstrates how Excel behaves when you use the error checking tool. In fact, it doesn t matter where the cell pointer is when you carry out the next step. 10 On the Formulas tab, in the Formula Auditing group, click Error Checking. The cursor jumps to the first cell that Excel finds with a potential error in it. Excel has found the formula error again in this cell. 11 Click Update Formula to Include Cells v1.00 CCI Learning Solutions Inc.

39 Formulas and Functions Lesson 3 When Excel can no longer find any problems with formulas, it displays the following: 12 Click OK. Your worksheet should now look like the following: This updated worksheet shows that the profit has been substantially reduced, but there is still a small profit being made. 13 Save the workbook. Tracing Formula Errors Another method of finding formula errors is to use tracing tools. These tools draw arrows to help you trace cells that are precedents or dependents of the current cell. By following the lines and dots in the arrows, you can determine which cells are referenced in formulas. When you select a cell and trace its precedents, Excel draws lines from other cells leading to the current active cell (i.e., preceding it). Excel also draws box outlines around these cells. This is a visual way of examining a worksheet to see which cells are being referenced by formulas. In a complex worksheet with many formulas, this is a very useful tool to ensure they are all correct. The reverse can also be done by selecting a cell and tracing its dependent cells; Excel draws lines to any cells that use the data in the current active cell, directly and indirectly. Dependent cells contain formulas that reference the current active cell (i.e., depending on it). You can extend the tracing of precedent or dependent cells by selecting Trace Precedents or Trace Dependents again in the Ribbon v1.00 CCI Learning Solutions Inc. 127

40 Lesson 3 Formulas and Functions Learn the Skill In this exercise, you will use the auditing tools on the Rocky Mountains Tour workbook to see if there are any other formula errors. 1 If necessary, open the Rocky Mountains Tour Student workbook. Start by selecting the most important cell in the entire workbook the one that calculates the profit of Revenues less Expenses. 2 Select cell D23 and then, on the Formulas tab, in the Formula Auditing group, click Trace Precedents. Notice the thin line and the dots drawn from cell D9 to D23. The dots in cells D9 and D21 indicate that these cells are referenced in the formula in cell D23. These appear to be correct. 3 With cell D23 still selected, click Trace Precedents again. As the Trace Precedents tool drives down through the next layer of detail, Excel draws boxes above cells D9 and D21. The boxes indicate that these cell ranges are referenced in the formulas in the two cells. These also appear to be correct. 4 Click Trace Precedents one more time. Another set of lines and dots are drawn as the Trace Precedents tool drives down through another layer of detail. These indicate the cells referenced in the formulas entered into the cell range D6:D v1.00 CCI Learning Solutions Inc.

41 Formulas and Functions Lesson 3 Looking at the last set of lines and dots drawn, you should see that they do not appear correct. The fare value in cell B6 is used to calculate the total in cells D6 to D8, but the fares in cells B7 and B8 are not used at all. 5 Select cell D7. By selecting cell D7, you can see that the formula is incorrect. 6 Change the formula in cell D7 to: =B7*C7. 7 Select cell D8 and change the formula to: =B8*D8. 8 Select cell D23 and click Trace Precedents again. The lines and dots now appear in the correct cells. It also now appears that this tour will incur a loss instead of a profit. When you have completed auditing the worksheet, you can remove the arrows v1.00 CCI Learning Solutions Inc. 129

Commonly Used Excel Formulas

Commonly Used Excel Formulas Microsoft Excel 2007 Advanced Formulas Windows XP Look Up Values in a List of Data: Commonly Used Excel Formulas Let's say you want to look up an employee's phone extension by using their badge number

More information

SOME EXCEL FORMULAS AND FUNCTIONS

SOME EXCEL FORMULAS AND FUNCTIONS SOME EXCEL FORMULAS AND FUNCTIONS About calculation operators Operators specify the type of calculation that you want to perform on the elements of a formula. Microsoft Excel includes four different types

More information

Performing Simple Calculations Using the Status Bar

Performing Simple Calculations Using the Status Bar Excel Formulas Performing Simple Calculations Using the Status Bar If you need to see a simple calculation, such as a total, but do not need it to be a part of your spreadsheet, all you need is your Status

More information

Getting Started with Excel 2008. Table of Contents

Getting Started with Excel 2008. Table of Contents Table of Contents Elements of An Excel Document... 2 Resizing and Hiding Columns and Rows... 3 Using Panes to Create Spreadsheet Headers... 3 Using the AutoFill Command... 4 Using AutoFill for Sequences...

More information

SECTION 2: Working with Functions and Formulas

SECTION 2: Working with Functions and Formulas SECTION 2: Working with Functions and Formulas In this section you will learn about: Relative and absolute cell references Basic mathematical operators Using formulas with multiple cell references Fixing

More information

MICROSOFT EXCEL STEP BY STEP GUIDE

MICROSOFT EXCEL STEP BY STEP GUIDE IGCSE ICT SECTION 14 DATA ANALYSIS MICROSOFT EXCEL STEP BY STEP GUIDE Mark Nicholls ICT Lounge Data Analysis Self Study Guide Contents Learning Outcomes Page 3 What is a Data Model?... Page 4 Spreadsheet

More information

Microsoft Excel Tips & Tricks

Microsoft Excel Tips & Tricks Microsoft Excel Tips & Tricks Collaborative Programs Research & Evaluation TABLE OF CONTENTS Introduction page 2 Useful Functions page 2 Getting Started with Formulas page 2 Nested Formulas page 3 Copying

More information

Excel Functions (fx) Click the Paste Function button. In the Function Category select All. Scroll down the Function Name list And select SUM.

Excel Functions (fx) Click the Paste Function button. In the Function Category select All. Scroll down the Function Name list And select SUM. Excel Functions (fx) 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

More information

How To Use Excel 4.4.2.2 On A Computer Or A Computer With A Cell Phone Or Cell Phone

How To Use Excel 4.4.2.2 On A Computer Or A Computer With A Cell Phone Or Cell Phone M04_GASK8219_01_SE_C04E.qxd 6/30/10 7:53 AM Page 241 chapter 4 Excel 2010 Use Financial and Lookup Functions, Define Names, and Validate Data OUTCOMES At the end of this chapter you will be able to: PROJECT

More information

SECTION 2-1: OVERVIEW SECTION 2-2: FREQUENCY DISTRIBUTIONS

SECTION 2-1: OVERVIEW SECTION 2-2: FREQUENCY DISTRIBUTIONS SECTION 2-1: OVERVIEW Chapter 2 Describing, Exploring and Comparing Data 19 In this chapter, we will use the capabilities of Excel to help us look more carefully at sets of data. We can do this by re-organizing

More information

Excel Level Two. Introduction. Contents. Exploring Formulas. Entering Formulas

Excel Level Two. Introduction. Contents. Exploring Formulas. Entering Formulas Introduction Excel Level Two This workshop introduces you to formulas, functions, moving and copying data, using autofill, relative and absolute references, and formatting cells. Contents Introduction

More information

Commonly Used Excel Functions. Supplement to Excel for Budget Analysts

Commonly Used Excel Functions. Supplement to Excel for Budget Analysts Supplement to Excel for Budget Analysts Version 1.0: February 2016 Table of Contents Introduction... 4 Formulas and Functions... 4 Math and Trigonometry Functions... 5 ABS... 5 ROUND, ROUNDUP, and ROUNDDOWN...

More information

Formulas & Functions in Microsoft Excel

Formulas & Functions in Microsoft Excel Formulas & Functions in Microsoft Excel Theresa A Scott, MS Biostatistician III Department of Biostatistics Vanderbilt University theresa.scott@vanderbilt.edu Table of Contents 1 Introduction 1 1.1 Using

More information

Using Basic Financial and Logical Functions

Using Basic Financial and Logical Functions LESSON 8 Using Basic Financial and Logical Functions 8.1 After completing this lesson, you will be able to: Use the PMT function to forecast loan payments. Calculate cumulative interest. Compute investment

More information

Excel 2003 Tutorial I

Excel 2003 Tutorial I This tutorial was adapted from a tutorial by see its complete version at http://www.fgcu.edu/support/office2000/excel/index.html Excel 2003 Tutorial I Spreadsheet Basics Screen Layout Title bar Menu bar

More information

MICROSOFT EXCEL FORMULAS

MICROSOFT EXCEL FORMULAS MICROSOFT EXCEL FORMULAS Building Formulas... 1 Writing a Formula... 1 Parentheses in Formulas... 2 Operator Precedence... 2 Changing the Operator Precedence... 2 Functions... 3 The Insert Function Button...

More information

The Center for Teaching, Learning, & Technology

The Center for Teaching, Learning, & Technology The Center for Teaching, Learning, & Technology Instructional Technology Workshops Microsoft Excel 2010 Formulas and Charts Albert Robinson / Delwar Sayeed Faculty and Staff Development Programs Colston

More information

Using Microsoft Excel 2010

Using Microsoft Excel 2010 Unit 5 Using Microsoft Excel 2010 Unit Objectives This unit includes the knowledge and skills required to analyze information in an electronic worksheet and to format information using functions specific

More information

Creating Basic Excel Formulas

Creating Basic Excel Formulas Creating Basic Excel Formulas Formulas are equations that perform calculations on values in your worksheet. Depending on how you build a formula in Excel will determine if the answer to your formula automatically

More information

INTRODUCTION TO EXCEL

INTRODUCTION TO EXCEL INTRODUCTION TO EXCEL 1 INTRODUCTION Anyone who has used a computer for more than just playing games will be aware of spreadsheets A spreadsheet is a versatile computer program (package) that enables you

More information

Excel Database Management Microsoft Excel 2003

Excel Database Management Microsoft Excel 2003 Excel Database Management Microsoft Reference Guide University Technology Services Computer Training Copyright Notice Copyright 2003 EBook Publishing. All rights reserved. No part of this publication may

More information

Microsoft Excel 2010 Part 3: Advanced Excel

Microsoft Excel 2010 Part 3: Advanced Excel CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Excel 2010 Part 3: Advanced Excel Winter 2015, Version 1.0 Table of Contents Introduction...2 Sorting Data...2 Sorting

More information

How To Use Excel With A Calculator

How To Use Excel With A Calculator Functions & Data Analysis Tools Academic Computing Services www.ku.edu/acs Abstract: This workshop focuses on the functions and data analysis tools of Microsoft Excel. Topics included are the function

More information

Introduction to Excel

Introduction to Excel Introduction to Excel This material has been reprinted, with permission, from the Excel Tutorial on the TRIO program webpage of the University of South Dakota. A series of "screencast" videos covering

More information

Microsoft Excel 2007 Critical Data Analysis Using Functions

Microsoft Excel 2007 Critical Data Analysis Using Functions V O L U M E 4 Microsoft Excel 007 Critical Data Analysis Using Functions DASH DESIGNS CONSULTING Technology Training and Consulting Services Excel 007 Critical Data Analysis Using Functions For The Haas

More information

ECDL. European Computer Driving Licence. Spreadsheet Software BCS ITQ Level 2. Syllabus Version 5.0

ECDL. European Computer Driving Licence. Spreadsheet Software BCS ITQ Level 2. Syllabus Version 5.0 European Computer Driving Licence Spreadsheet Software BCS ITQ Level 2 Using Microsoft Excel 2010 Syllabus Version 5.0 This training, which has been approved by BCS, The Chartered Institute for IT, includes

More information

Formulas & Functions in Microsoft Excel

Formulas & Functions in Microsoft Excel Formulas & Functions in Microsoft Excel Theresa A Scott, MS Biostatistician II Department of Biostatistics Vanderbilt University theresa.scott@vanderbilt.edu Table of Contents 1 Introduction 1 1.1 Using

More information

2015 County Auditors Institute. May 2015. Excel Workshop Tips. Working Smarter, Not Harder. by David Scott, SpeakGeek@att.net

2015 County Auditors Institute. May 2015. Excel Workshop Tips. Working Smarter, Not Harder. by David Scott, SpeakGeek@att.net 2015 County Auditors Institute May 2015 Excel Workshop Tips Working Smarter, Not Harder by David Scott, SpeakGeek@att.net Note: All examples in this workshop and this tip sheet were done using Excel 2010

More information

Excel 2007 Basic knowledge

Excel 2007 Basic knowledge Ribbon menu The Ribbon menu system with tabs for various Excel commands. This Ribbon system replaces the traditional menus used with Excel 2003. Above the Ribbon in the upper-left corner is the Microsoft

More information

EXCEL FUNCTIONS MOST COMMON

EXCEL FUNCTIONS MOST COMMON EXCEL FUNCTIONS MOST COMMON This is a list of the most common Functions in Excel with a description. To see the syntax and a more in depth description, the function is a link to the Microsoft Excel site.

More information

Microsoft Access 3: Understanding and Creating Queries

Microsoft Access 3: Understanding and Creating Queries Microsoft Access 3: Understanding and Creating Queries In Access Level 2, we learned how to perform basic data retrievals by using Search & Replace functions and Sort & Filter functions. For more complex

More information

Q&As: Microsoft Excel 2013: Chapter 2

Q&As: Microsoft Excel 2013: Chapter 2 Q&As: Microsoft Excel 2013: Chapter 2 In Step 5, why did the date that was entered change from 4/5/10 to 4/5/2010? When Excel recognizes that you entered a date in mm/dd/yy format, it automatically formats

More information

Excel 2010: Create your first spreadsheet

Excel 2010: Create your first spreadsheet Excel 2010: Create your first spreadsheet Goals: After completing this course you will be able to: Create a new spreadsheet. Add, subtract, multiply, and divide in a spreadsheet. Enter and format column

More information

MS Excel as a Database

MS Excel as a Database Centre for Learning and Academic Development (CLAD) Technology Skills Development Team MS Excel as a Database http://intranet.birmingham.ac.uk/itskills Using MS Excel as a Database (XL2103) Author: Sonia

More information

Advanced Microsoft Excel 2013

Advanced Microsoft Excel 2013 Advanced Microsoft Excel 2013 Introduction Microsoft Excel is program designed to efficiently manage spreadsheets and analyze data. It contains both basic and advanced features that anyone can learn. Once

More information

Intro to Excel spreadsheets

Intro to Excel spreadsheets Intro to Excel spreadsheets What are the objectives of this document? The objectives of document are: 1. Familiarize you with what a spreadsheet is, how it works, and what its capabilities are; 2. Using

More information

Excel 2007 Tutorials - Video File Attributes

Excel 2007 Tutorials - Video File Attributes Get Familiar with Excel 2007 42.40 3.02 The Excel 2007 Environment 4.10 0.19 Office Button 3.10 0.31 Quick Access Toolbar 3.10 0.33 Excel 2007 Ribbon 3.10 0.26 Home Tab 5.10 0.19 Insert Tab 3.10 0.19 Page

More information

MS Excel. Handout: Level 2. elearning Department. Copyright 2016 CMS e-learning Department. All Rights Reserved. Page 1 of 11

MS Excel. Handout: Level 2. elearning Department. Copyright 2016 CMS e-learning Department. All Rights Reserved. Page 1 of 11 MS Excel Handout: Level 2 elearning Department 2016 Page 1 of 11 Contents Excel Environment:... 3 To create a new blank workbook:...3 To insert text:...4 Cell addresses:...4 To save the workbook:... 5

More information

ROUND(cell or formula, 2)

ROUND(cell or formula, 2) There are many ways to set up an amortization table. This document shows how to set up five columns for the payment number, payment, interest, payment applied to the outstanding balance, and the outstanding

More information

A User Manual for Benefit Cost Analysis Using Microsoft Excel

A User Manual for Benefit Cost Analysis Using Microsoft Excel A User Manual for Benefit Cost Analysis Using Microsoft Excel Canesio Predo National Abaca Research Center Leyte State University Baybay, Leyte, Philippines David James Ecoservices Pty Ltd NSW, Australia

More information

EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002

EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002 EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002 Table of Contents Part I Creating a Pivot Table Excel Database......3 What is a Pivot Table...... 3 Creating Pivot Tables

More information

Excel Intermediate. Table of Contents UPPER, LOWER, PROPER AND TRIM...28

Excel Intermediate. Table of Contents UPPER, LOWER, PROPER AND TRIM...28 Excel Intermediate Table of Contents Formulas UPPER, LOWER, PROPER AND TRM...2 LEFT, MID, and RIGHT...3 CONCATENATE...4 & (Ampersand)...5 CONCATENATE vs. & (Ampersand)...5 ROUNDUP, and ROUNDDOWN...6 VLOOKUP...7

More information

Microsoft Excel 2010

Microsoft Excel 2010 Microsoft Excel 2010 Special Topics PivotTable IF Function V-Lookup Function Information Technology Services Outreach and Distance Learning Technologies Copyright 2011 KSU Department of Information Technology

More information

Databases in Microsoft Access David M. Marcovitz, Ph.D.

Databases in Microsoft Access David M. Marcovitz, Ph.D. Databases in Microsoft Access David M. Marcovitz, Ph.D. Introduction Schools have been using integrated programs, such as Microsoft Works and Claris/AppleWorks, for many years to fulfill word processing,

More information

Almost all spreadsheet programs are based on a simple concept: the malleable matrix.

Almost all spreadsheet programs are based on a simple concept: the malleable matrix. MS EXCEL 2000 Spreadsheet Use, Formulas, Functions, References More than any other type of personal computer software, the spreadsheet has changed the way people do business. Spreadsheet software allows

More information

Microsoft Excel - XP Intermediate

Microsoft Excel - XP Intermediate Microsoft Excel - XP Intermediate Financial Functions Goal Seeking Variable Tables IF Statements AND & OR Functions Mathematical Operations Between Separate Sheets Mathematical Operations Between Separate

More information

Using Excel for Analyzing Survey Questionnaires Jennifer Leahy

Using Excel for Analyzing Survey Questionnaires Jennifer Leahy University of Wisconsin-Extension Cooperative Extension Madison, Wisconsin PD &E Program Development & Evaluation Using Excel for Analyzing Survey Questionnaires Jennifer Leahy G3658-14 Introduction You

More information

Excel 2010 Level 2. Computer Training Centre, UCC, tcentre@ucc.ie, 021-4903749/3751/3752

Excel 2010 Level 2. Computer Training Centre, UCC, tcentre@ucc.ie, 021-4903749/3751/3752 Excel 2010 Level 2 Computer Training Centre, UCC, tcentre@ucc.ie, 021-4903749/3751/3752 TABLE OF CONTENTS What s New in Excel 2010? 1 The File Menu 1 Enhanced Ribbon Toolbar 1 Sparklines 2 Slicer 2 Macro

More information

Lesson 4.3: Using the VLOOKUP Function

Lesson 4.3: Using the VLOOKUP Function Lesson 4.3: Using the VLOOKUP Function Excel 2003 provides two lookup functions that you can use to quickly retrieve information from a table. The functions are called HLOOKUP (horizontal lookup) and VLOOKUP

More information

How To Use Excel With A Computer Science Degree

How To Use Excel With A Computer Science Degree Formulas and Functions with Excel Kiruthika Ragupathi Assistant Director (Educational Technology) (CDTL) National University of Singapore email: kiruthika@nus.edu.sg TABLE OF CONTENTS Introduction... 4

More information

27 Spreadsheet. modelling. Learning outcomes. Credit value: 10

27 Spreadsheet. modelling. Learning outcomes. Credit value: 10 Credit value: 10 27 Spreadsheet modelling The spreadsheet and the word processor were the business applications that started the personal computer revolution, and they remain the most popular and useful

More information

Tommy B. Harrington 104 Azalea Drive Greenville, NC 27858 Email: tommy@tommyharrington.com

Tommy B. Harrington 104 Azalea Drive Greenville, NC 27858 Email: tommy@tommyharrington.com M o s t U s e f u l E x c e l C o m m a n d s Tommy B. Harrington 104 Azalea Drive Greenville, NC 27858 Email: tommy@tommyharrington.com Computer Training YOU Can Understand! Most Useful Excel Commands

More information

Preface of Excel Guide

Preface of Excel Guide Preface of Excel Guide The use of spreadsheets in a course designed primarily for business and social science majors can enhance the understanding of the underlying mathematical concepts. In addition,

More information

Creating A Grade Sheet With Microsoft Excel

Creating A Grade Sheet With Microsoft Excel Creating A Grade Sheet With Microsoft Excel Microsoft Excel serves as an excellent tool for tracking grades in your course. But its power is not limited to its ability to organize information in rows and

More information

Basic Excel Handbook

Basic Excel Handbook 2 5 2 7 1 1 0 4 3 9 8 1 Basic Excel Handbook Version 3.6 May 6, 2008 Contents Contents... 1 Part I: Background Information...3 About This Handbook... 4 Excel Terminology... 5 Excel Terminology (cont.)...

More information

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations.

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations. EXCEL Tutorial: How to use EXCEL for Graphs and Calculations. Excel is powerful tool and can make your life easier if you are proficient in using it. You will need to use Excel to complete most of your

More information

Excel 2003 Tutorials - Video File Attributes

Excel 2003 Tutorials - Video File Attributes Using Excel Files 18.00 2.73 The Excel Environment 3.20 0.14 Opening Microsoft Excel 2.00 0.12 Opening a new workbook 1.40 0.26 Opening an existing workbook 1.50 0.37 Save a workbook 1.40 0.28 Copy a workbook

More information

Participant Guide RP301: Ad Hoc Business Intelligence Reporting

Participant Guide RP301: Ad Hoc Business Intelligence Reporting RP301: Ad Hoc Business Intelligence Reporting State of Kansas As of April 28, 2010 Final TABLE OF CONTENTS Course Overview... 4 Course Objectives... 4 Agenda... 4 Lesson 1: Reviewing the Data Warehouse...

More information

EXCEL SPREADSHEET MANUAL

EXCEL SPREADSHEET MANUAL EXCEL SPREADSHEET MANUAL to accompany MATHEMATICS WITH APPLICATIONS, EIGHTH EDITION and MATHEMATICS WITH APPLICATIONS, FINITE VERSION, EIGHTH EDITION LIAL HUNGERFORD Paula Grafton Young Salem College J.

More information

USC Marshall School of Business Academic Information Services. Excel 2007 Qualtrics Survey Analysis

USC Marshall School of Business Academic Information Services. Excel 2007 Qualtrics Survey Analysis USC Marshall School of Business Academic Information Services Excel 2007 Qualtrics Survey Analysis DESCRIPTION OF EXCEL ANALYSIS TOOLS AVAILABLE... 3 Summary of Tools Available and their Properties...

More information

Below is a very brief tutorial on the basic capabilities of Excel. Refer to the Excel help files for more information.

Below is a very brief tutorial on the basic capabilities of Excel. Refer to the Excel help files for more information. Excel Tutorial Below is a very brief tutorial on the basic capabilities of Excel. Refer to the Excel help files for more information. Working with Data Entering and Formatting Data Before entering data

More information

Calc Guide Chapter 9 Data Analysis

Calc Guide Chapter 9 Data Analysis Calc Guide Chapter 9 Data Analysis Using Scenarios, Goal Seek, Solver, others Copyright This document is Copyright 2007 2011 by its contributors as listed below. You may distribute it and/or modify it

More information

What is Microsoft Excel?

What is Microsoft Excel? What is Microsoft Excel? Microsoft Excel is a member of the spreadsheet family of software. Spreadsheets allow you to keep track of data, create charts based from data, and perform complex calculations.

More information

Monte Carlo Simulation. SMG ITS Advanced Excel Workshop

Monte Carlo Simulation. SMG ITS Advanced Excel Workshop Advanced Excel Workshop Monte Carlo Simulation Page 1 Contents Monte Carlo Simulation Tutorial... 2 Example 1: New Marketing Campaign... 2 VLOOKUP... 5 Example 2: Revenue Forecast... 6 Pivot Table... 8

More information

This activity will guide you to create formulas and use some of the built-in math functions in EXCEL.

This activity will guide you to create formulas and use some of the built-in math functions in EXCEL. Purpose: This activity will guide you to create formulas and use some of the built-in math functions in EXCEL. The three goals of the spreadsheet are: Given a triangle with two out of three angles known,

More information

Microsoft Excel 2010 Tutorial

Microsoft Excel 2010 Tutorial 1 Microsoft Excel 2010 Tutorial Excel is a spreadsheet program in the Microsoft Office system. You can use Excel to create and format workbooks (a collection of spreadsheets) in order to analyze data and

More information

ACS Microcomputer Workshop Excel: Functions and Data Analysis Tools

ACS Microcomputer Workshop Excel: Functions and Data Analysis Tools ACS Microcomputer Workshop Excel: Functions and Data Analysis Tools Introduction The Excel software package consists of three basic parts: its electronic spreadsheet, graphics, and database utilities.

More information

MBA Quantitative Methods PC-Exercises Introductory Examples

MBA Quantitative Methods PC-Exercises Introductory Examples MBA Quantitative Methods PC-Exercises Introductory Examples intro.xls intro_with_output.xls intro.doc For all Examples you need the file intro.xls. The file intro_with_output.xls is the file with the results

More information

How To Analyze Data In Excel 2003 With A Powerpoint 3.5

How To Analyze Data In Excel 2003 With A Powerpoint 3.5 Microsoft Excel 2003 Data Analysis Larry F. Vint, Ph.D lvint@niu.edu 815-753-8053 Technical Advisory Group Customer Support Services Northern Illinois University 120 Swen Parson Hall DeKalb, IL 60115 Copyright

More information

MICROSOFT EXCEL 2010. Formulas, Functions, & Macros. Documented by Vincent J. Yanusauskas Computer Training Coordinator

MICROSOFT EXCEL 2010. Formulas, Functions, & Macros. Documented by Vincent J. Yanusauskas Computer Training Coordinator MICROSOFT EXCEL 2010 Formulas, Functions, & Macros Documented by Vincent J. Yanusauskas Computer Training Coordinator Introduction This handout was created to familiarize the user with the most common

More information

An introduction to using Microsoft Excel for quantitative data analysis

An introduction to using Microsoft Excel for quantitative data analysis Contents An introduction to using Microsoft Excel for quantitative data analysis 1 Introduction... 1 2 Why use Excel?... 2 3 Quantitative data analysis tools in Excel... 3 4 Entering your data... 6 5 Preparing

More information

Creating QBE Queries in Microsoft SQL Server

Creating QBE Queries in Microsoft SQL Server Creating QBE Queries in Microsoft SQL Server When you ask SQL Server or any other DBMS (including Access) a question about the data in a database, the question is called a query. A query is simply a question

More information

Excel 2007 A Beginners Guide

Excel 2007 A Beginners Guide Excel 2007 A Beginners Guide Beginner Introduction The aim of this document is to introduce some basic techniques for using Excel to enter data, perform calculations and produce simple charts based on

More information

Working with Data in Microsoft Excel 2003

Working with Data in Microsoft Excel 2003 Working with Data in Microsoft Excel 2003 Doc 5.94 Ver 2 March 2005 John Matthews Central Computing Services Abstract This document provides some examples of handling numeric data using the Microsoft Excel

More information

Microsoft Office 2010: Access 2010, Excel 2010, Lync 2010 learning assets

Microsoft Office 2010: Access 2010, Excel 2010, Lync 2010 learning assets Microsoft Office 2010: Access 2010, Excel 2010, Lync 2010 learning assets Simply type the id# in the search mechanism of ACS Skills Online to access the learning assets outlined below. Titles Microsoft

More information

Excel 2003 A Beginners Guide

Excel 2003 A Beginners Guide Excel 2003 A Beginners Guide Beginner Introduction The aim of this document is to introduce some basic techniques for using Excel to enter data, perform calculations and produce simple charts based on

More information

Microsoft Excel 2007 Consolidate Data & Analyze with Pivot Table Windows XP

Microsoft Excel 2007 Consolidate Data & Analyze with Pivot Table Windows XP Microsoft Excel 2007 Consolidate Data & Analyze with Pivot Table Windows XP Consolidate Data in Multiple Worksheets Example data is saved under Consolidation.xlsx workbook under ProductA through ProductD

More information

EXCEL 2007. Using Excel for Data Query & Management. Information Technology. MS Office Excel 2007 Users Guide. IT Training & Development

EXCEL 2007. Using Excel for Data Query & Management. Information Technology. MS Office Excel 2007 Users Guide. IT Training & Development Information Technology MS Office Excel 2007 Users Guide EXCEL 2007 Using Excel for Data Query & Management IT Training & Development (818) 677-1700 Training@csun.edu http://www.csun.edu/training TABLE

More information

Calculating Cash Flow Using Excel Data Lists

Calculating Cash Flow Using Excel Data Lists Calculating Cash Flow Using Excel Data Lists By: Curtis D. Frye 7/26/2006 Bank and credit card statements tell you where your money has gone, but they don t show you how much money you ll have on hand

More information

Excel 2007: Basics Learning Guide

Excel 2007: Basics Learning Guide Excel 2007: Basics Learning Guide Exploring Excel At first glance, the new Excel 2007 interface may seem a bit unsettling, with fat bands called Ribbons replacing cascading text menus and task bars. This

More information

Useful Microsoft Excel Functions & Formulas Theresa A Scott, MS Department of Biostatistics Vanderbilt University theresa.scott@vanderbilt.

Useful Microsoft Excel Functions & Formulas Theresa A Scott, MS Department of Biostatistics Vanderbilt University theresa.scott@vanderbilt. Useful Microsoft Excel Functions & s Theresa Scott, MS Department of Biostatistics Vanderbilt University theresa.scott@vanderbilt.edu This document contains a series of examples that illustrate some useful

More information

You will use these functions a moderate amount, much more so for due diligence and analysis of order/customer/other data than in financial models.

You will use these functions a moderate amount, much more so for due diligence and analysis of order/customer/other data than in financial models. What This Guide Covers and How to Use It Rather than re-explaining every single function here, we re mostly going to give you solid examples that demonstrate how to use each function. Note that this guide

More information

Differences in Use between Calc and Excel

Differences in Use between Calc and Excel Differences in Use between Calc and Excel Title: Differences in Use between Calc and Excel: Version: 1.0 First edition: October 2004 Contents Overview... 3 Copyright and trademark information... 3 Feedback...3

More information

Advanced Excel for Institutional Researchers

Advanced Excel for Institutional Researchers Advanced Excel for Institutional Researchers Presented by: Sandra Archer Helen Fu University Analysis and Planning Support University of Central Florida September 22-25, 2012 Agenda Sunday, September 23,

More information

Course Contents For All : Advance Excel & VBA Macros

Course Contents For All : Advance Excel & VBA Macros Pankaj Kumar Gupta: Trainer Advanced Excel & VBA Macros Ph. 8750676667, 9871076667, Email: info@advancedexcel.net, advancedexcel07@gmail.com www.advancedexcel.net, www.vbamacrosexcel.com Office Address:

More information

MICROSOFT ACCESS STEP BY STEP GUIDE

MICROSOFT ACCESS STEP BY STEP GUIDE IGCSE ICT SECTION 11 DATA MANIPULATION MICROSOFT ACCESS STEP BY STEP GUIDE Mark Nicholls ICT Lounge P a g e 1 Contents Task 35 details Page 3 Opening a new Database. Page 4 Importing.csv file into the

More information

Excel Working with Data Lists

Excel Working with Data Lists Excel Working with Data Lists Excel Working with Data Lists Princeton University COPYRIGHT Copyright 2001 by EZ-REF Courseware, Laguna Beach, CA http://www.ezref.com/ All rights reserved. This publication,

More information

2: Formulas and Functions

2: Formulas and Functions 2: Formulas and Functions Simple Formulas 1 Arithmetic Operators 1 Copying formulas 2 Cell References: Relative and Absolute Worksheet Functions 4 The AutoSum Tool The Paste Function and Formula Palette

More information

CIS300 - Study Guide for Test 3

CIS300 - Study Guide for Test 3 Coverage Management Information Systems Chapter 7: Databases and Data Warehouses (concepts only) Succeeding in Business with Microsoft Excel 2010 slides Chapter 7: Organizing Data for Effective Analysis

More information

Introduction to Microsoft Access 2013

Introduction to Microsoft Access 2013 Introduction to Microsoft Access 2013 A database is a collection of information that is related. Access allows you to manage your information in one database file. Within Access there are four major objects:

More information

Rows & Columns. Workbooks & Worksheets

Rows & Columns. Workbooks & Worksheets + O + N + P + S F12 + W + Q Esc + C + X + V + Z + Y + A + F Ctrl + H + Tab +, + Y The Fundamentals + Option + R Open File New File Print Save File Save File As Close File Close Excel Exit Dialog Copy Cut

More information

Sample- for evaluation only. Advanced Excel. TeachUcomp, Inc. A Presentation of TeachUcomp Incorporated. Copyright TeachUcomp, Inc.

Sample- for evaluation only. Advanced Excel. TeachUcomp, Inc. A Presentation of TeachUcomp Incorporated. Copyright TeachUcomp, Inc. A Presentation of TeachUcomp Incorporated. Copyright TeachUcomp, Inc. 2010 Advanced Excel TeachUcomp, Inc. it s all about you Copyright: Copyright 2010 by TeachUcomp, Inc. All rights reserved. This publication,

More information

ACADEMIC TECHNOLOGY SUPPORT

ACADEMIC TECHNOLOGY SUPPORT ACADEMIC TECHNOLOGY SUPPORT Microsoft Excel: Formulas ats@etsu.edu 439-8611 www.etsu.edu/ats Table of Contents: Overview... 1 Objectives... 1 1. How to Create Formulas... 2 2. Naming Ranges... 5 3. Common

More information

Microsoft Access Basics

Microsoft Access Basics Microsoft Access Basics 2006 ipic Development Group, LLC Authored by James D Ballotti Microsoft, Access, Excel, Word, and Office are registered trademarks of the Microsoft Corporation Version 1 - Revision

More information

EXCEL 2007 VLOOKUP FOR BUDGET EXAMPLE

EXCEL 2007 VLOOKUP FOR BUDGET EXAMPLE EXCEL 2007 VLOOKUP FOR BUDGET EXAMPLE 1 The primary reports used in the budgeting process, particularly for Financial Review, are the Quarterly Financial Review Reports. These expense and revenue reports

More information

Task Force on Technology / EXCEL

Task Force on Technology / EXCEL Task Force on Technology EXCEL Basic terminology Spreadsheet A spreadsheet is an electronic document that stores various types of data. There are vertical columns and horizontal rows. A cell is where the

More information

Data Analysis Tools. Tools for Summarizing Data

Data Analysis Tools. Tools for Summarizing Data Data Analysis Tools This section of the notes is meant to introduce you to many of the tools that are provided by Excel under the Tools/Data Analysis menu item. If your computer does not have that tool

More information

Search help. More on Office.com: images templates. Here are some basic tasks that you can do in Microsoft Excel 2010.

Search help. More on Office.com: images templates. Here are some basic tasks that you can do in Microsoft Excel 2010. Page 1 of 8 Excel 2010 Home > Excel 2010 Help and How-to > Getting started with Excel Search help More on Office.com: images templates Basic tasks in Excel 2010 Here are some basic tasks that you can do

More information

Introduction to Microsoft Excel 2010

Introduction to Microsoft Excel 2010 Introduction to Microsoft Excel 2010 Screen Elements Quick Access Toolbar The Ribbon Formula Bar Expand Formula Bar Button File Menu Vertical Scroll Worksheet Navigation Tabs Horizontal Scroll Bar Zoom

More information

Introduction to Microsoft Excel 1 Part I

Introduction to Microsoft Excel 1 Part I Introduction to Microsoft Excel 1 Part I Objectives When you complete this workshop you will be able to: Recognize Excel s basic operations and tools; Develop simple worksheets; Use formulas; Format worksheets;

More information