600 likes | 813 Views
Chapter 2. Microsoft Excel 2007 – Level 2. ADVANCED FUNCTIONS AND FORMULAS. Use named ranges in formulas Use functions COUNTA, COUNTIF, COUNTIFS Use functions AVERAGEIF, AVERAGEIFS Use functions SUMIF, SUMIFS Delete a range name Look up data using the lookup functions VLOOKUP and HLOOKUP
E N D
Chapter 2 Microsoft Excel 2007 – Level 2 ADVANCED FUNCTIONS AND FORMULAS
Use named ranges in formulas Use functions COUNTA, COUNTIF, COUNTIFS Use functions AVERAGEIF, AVERAGEIFS Use functions SUMIF, SUMIFS Delete a range name Look up data using the lookup functions VLOOKUP and HLOOKUP Analyze financial data using PPMT, PV and NPV Use conditional logic functions IF, AND, OR, NOT, and IFERROR Modify text using the text functions PROPER, UPPER, LOWER and SUBSTITUTE Performance Objectives
Assigning a name to a range of cells allows you to reference a range of cells by a descriptive label A name should describe the range of cells for example, January_Sales Names can be a combination of letters, numbers, underscore characters or periods up to 255 characters The first character must be a letter, an underscore or a backslash (\) Spaces are not allowed, use underscore character or period to separate the words A valid cell address cannot become a range name Range names are not case sensitive Naming a Range
Naming a Range…/2 Select the cell or range of cells to be named Click the Name box, type the name, and press Enter OR Click Type name and Click OK
Using a Named Range in a Formula Range names can be used in formulas instead of the references to the cells Using a range name in a formula makes the formula easier to understand
A function is a built-in formula Functions perform complex mathematical, financial, data-manipulation, and logical operations Functions include: The name of the function One or more arguments - (the data needed to perform the calculations or data manipulations, enclosed in parentheses) No spacebars unless part of a text string Text strings must be enclosed in quotations =function(argument1, argument2, etc.) Understanding Functions
Entering a Function Functionscan be keyed directly into a cell OR Functions can be entered using the Insert Function button on the formula bar OR Click and choose the desired formula
Insert Function Dialog Box Search for a function by typing a query OR Select a category and click the function A description of the currently selected function is displayed
Function Arguments Dialog Box Entering arguments for the function … Click to select cellsin the worksheet If an argument name is bold, data must be entered in its box The result of the formula will display Click for Help Function Arguments return box appears and is filled in as you select cells Click to return
Statistical Functions Excel's statistical functions are used on ranges of data
Using the COUNT and COUNTA Functions Counts the number of cells containing numbers in a given range =COUNT(range) Counts the number of cells containingtext or a combination of text and numbersin a given range =COUNTA(range)
Using the COUNT Function Make desired cell for result active Click Insert Function button Change category to Statistical Select ‘COUNT’, Click OK
Using the COUNTA Function Make desired cell for result active Click Insert Function button Change category to Statistical Select COUNTA, Click OK
COUNT and COUNTA Functions.../2 =COUNT(D8:D24) returns the incorrect result 0 =COUNTA(D8:D24) returns the correct result 17
Using the COUNTIF Function Counts the number of cells in a given range that meet a specific condition =COUNTIF(range,criteria) The condition that must be met in order for that cell to be counted can be a number, anexpression, or text The range of cells to be counted
Using the COUNTIF Function…/2 Make desired cell active Click Insert Function button Change category to Statistical Select COUNTIF, Click OK
Using the COUNTIF Function…/3 Enter range name or address Type criteria Click OK Found 4 cells in the range A6:A20 that contained the word ‘Pathfinder’
Using the COUNTIFS Function Counts the number of cells in a given range that meet multiple criteria The range of cells to be counted =COUNTIFS(range1,criteria1, range2,criteria2) The conditions that must be met
Using the COUNTIFS Function…/2 COUNTIFS formula Multiple ranges and criteria to count Result of formula
Using AVERAGEIF and AVERAGEIFS Functions Finds the Average within a specified range that meets a single criterion =AVERAGEIF(range, criteria,average_range) Finds the Average of cells with multiple criteria Conditions that must be met First range of cells to be tested First Range containing values to be averaged =AVERAGEIFS(average_range1, criteria1,average_range, range2,criteria2,average_range) Second set of arguments
Using the AVERAGEIF Function Make desired cell active Click Insert Function button Change category to Statistical Select AVERAGEIF Click OK
Using the AVERAGEIF Function…/2 Enter range to be tested Type criteria Enter range to be averaged Click OK Returns the average of those cells that meet the criteria
Using the AVERAGEIFS Function Make desired cell active Click Insert function button Change category to Statistical Select AVERAGEIFS Click OK
Using the AVERAGEIFs Function…/2 Enter range address or range name Enter range to scanand the criteria to meet Enter next range and condition Can enter up to 127 ranges and criteria; scroll to enter more Click OK
Math and Trig Functions Excel includes many math and trigonometric functions to perform a wide variety of calculations
Using the SUMIF Function Calculate the total of only those cells that meet a given condition or criteria =SUMIF(range,criteria,sum_range) the range of cells to be evaluated the range ofcells to sum • the condition or • criteria the cell is to • meet to be • included in the sum • can be a number, anexpression, or text
Using the SUMIF Function…/2 Add only those commissions on sales greater than or equal to $40,000
Using the SUMIFS Function Calculate the total of only those cells that meet multiple conditions or criteria the range ofcells to sum =SUMIFS(sum_range,criteria_range1,criteria1,criteria_range2,criteria2,…) the range of cells to be evaluated the condition or criteria the cell is to meet to be included in the sum
Managing Range Names Click Create a new name Select a name, then click to make changes or delete it
Lookup and Reference Functions Excel's Lookup and Reference functions provide a way to extract information from a list
Using the VLOOKUP Function Search for a value in the leftmost column of a table and return a value from a different column, from the same row as the value found the value to look up in the first column ofthe table =VLOOKUP(lookup_value,table_array,col_index_num[,range_lookup]) the lookup table or range of information the column number in the table that contains the value to be returned False for an exact matchTrue is default Brackets [ ] indicate an optional argument
Using the VLOOKUP Function…/2 This function scans down the first column for the largest value that is less than or equal to the lookup value Table’s first column must be inascending order Use an absolute reference if you enter a cell address and plan to copy the formula
Using the HLOOKUP Function Search for a value in the top row of a table and return a value from a different row, from the same column as the value found the value to look up in the first row ofthe table =HLOOKUP(lookup_value,table_array,row_index_num[,range_lookup]) the lookup table or range of information the row number in the table that contains the value to be returned False for an exact match Brackets [ ] indicate an optional argument
Using the HLOOKUP Function…/2 Same as VLookup, except that the table is set up so the scan is horizontal from left to right Table’s first row must be inascending order,left to right
Financial Functions Excel includes many financial functions used for calculating loan details, annuities, and investment analyses
Present value – PV - the current value of amounts to be received or paid in the future discounted at some interest rate OR the amount that must be invested today at some interest rate to accumulate to some specified future value Number of periods – NPer - the number of payments that will be made to an investment or loan Payment – PMT - the amount paid or collected for each period Future value – Fv - the value of a loan or investment at the end of all the periods Rate - the interest rate being charged or paid Type - payments can either be made in arrears (at the end of each period) or in advance Arguments Used in Financial Functions
Using the PMT Function Calculate the periodic payment of a loan based on constant payments and a constant interest rate =PMT(rate,nper,pv) interest rate per paymentperiod total number of payments to be made present value of the amount borrowed
Using the PMT Function…/2 annual rate of interest must be divided by 12 for monthly payments the number of years times 12 months (5 x 12 = 60) cash you pay out is represented by a negative number
Using the PPMT Function Calculate that portion of a loan payment used to reduce the principal, based on periodic, constant payments, and a constant interest rate =PPMT(rate,per,nper,pv,fv,type) in arrears or in advance interest rate per paymentperiod total number of payments to be made balance at the end of the loan- usually 0 period for which the principalpayment is made present value of the amount borrowed
Using the PPMT Function…/2 annual rate of interest must be divided by 12 for monthly payments period of payment the number of years times 12 months (5 x 12 = 60) amount of money borrowed balance at theend of the loan-0 if blank
PMT and PPMT Examples Compare two loans … =PMT(E4/12,E5*12,E6) =PMT(C4/12,C5*12,C6) =PPMT(E4/12,1,E5*12,E6) =PPMT(C4/12,1,C5*12,C6)
Using the PV Function Calculate the present value that the total of a series of constant future payment amounts is worth today, assuming a constant interest rate over the life of the annuity =PV(rate,nper,pmt,fv,type) interest rate per period payment made each period in arrears or in advance total number of payments to be made future value
Using the PV Function…/2 the Formula bar displays the function as it is being entered functions may include cell references
Using the NPV Function Calculate the value of an investment today using a discount rate and incorporating a series of cash inflows or outflows related to the investment =NPV(rate,nper,pmt,fv,type) interest rate per period payment made each period in arrears or in advance total number of payments to be made future value
Using the NPV Function…/2 the Formula bar displays the function entered
Logical Functions Excel's logical functions perform logical tests to return a result, based on whether a condition is true or false
Using the IF Function Set up a conditional statement to test data =IF(logical_test,value_if_true,value_if_false) condition that can be evaluated as being true or false that returned if the logical test is true that returned if the logical test is false
Using the IF Function…/2 calculate commission, based on the Commission code You may enter values or cell references
Examples of IF Functions Simple conditions: =if(C6="FT","Salaried","Part-Time") =if(D6>50000,“High",“Low") Must be both full-time and make over $50,000: =if(and(C6=“FT”,D6>50000),“Bonus",“") May either be full-time or make over $50,000: =if(or(C6=“FT”,D6>50000),“Bonus",“") Must not be full-time: =if(not(C6=“FT”),“Bonus",“") Shows nothing if false