Dr. Henry Frere Business & Relationship Management: service innovation and customer management i n cooperative banks. Fourth Edition Summary lesson Microsoft Excel: Functions Use of the main functions
Financial functions and reference functions Date and Time Functions Text Functio ns Database Microsoft Excel functions - advanced Excel 2.5 Henry Frere Microsoft EXCEL The functions of Excel General A function, in the terminology of Excel, a formula is identified with a default name, which performs a calculation of common or complex. E ' consists of two elements: - the function name and, in most cases - a list of arg uments enclosed in parentheses, containing the information required by the funct ion to give the result. According to the function, the arguments may be constant s, references to individual cells, cell ranges (if known) or even other function s. If you have more of an argument are separated by semicolons. Henry Frere Eg SUM function Microsoft Excel functions - advanced Excel 5.3 = SUM (B5: B10) Microsoft EXCEL Excel functions A special feature: AutoSum The characteristic AutoSum Excel offers a quick way to set a SUM function to a dd ranges of cells. Making AutoSum click on the Standard toolbar, Excel sum cells located immediately above or left of that contains the formula. Henry Frere Microsoft Excel functions - advanced Excel 5.4 Microsoft EXCEL Inserting Excel functions functions: Window of the formula To insert a function within a cell, you can type directly into the cell or the Formula Bar, but Excel offers a third possibility which is often more appropria te, particularly for complex functions: the Window Wizard functions. The Window functions wizard lists the function and its arguments, describing their u se. Henry Frere Microsoft Excel functions - advanced Excel 5.5 Microsoft EXCEL Excel functions Inserting functions To insert a function using the Windows wizard to work, you can use the Paste F unction button on the Standard toolbar. It Paste Function dialog box, where you can select the function from the list of al l those provided by Excel, divided into categories. Henry Frere Microsoft Excel functions - advanced Excel 6.5 Microsoft EXCEL Excel functions Mathematical functions Examples of mathematical functions: Sum Mean = SUM (B5: B10) Sum up the numeric arguments Calculate the average number of numeric arguments = AVERAGE (B5: B10) Min = MIN (B5: B10) Returns the minimum number of subjects within Max = MAX (B5: B10) Returns the maximum number of arguments within Henry Frere Microsoft Excel functions - advanced Excel 7.5 Microsoft EXCEL The functions of Excel Statistical Functions Examples of statistical functions: COUNT Within a list of topics, has only cells that contain numbers = COUNT (B5: B10) COUNTA CONTA.VUOTE Count the number of cells not empty and the list of values = COUNTA (B5: B10) ar guments. Use the COUNTA to count the number of cells containing Within a list of topics, data has only empty cells = CONTA.VUOTE (B5: B10) a range or an array. Henry Frere Microsoft Excel functions - advanced Excel 8.5 Microsoft EXCEL Excel functions Logical functions (1) The SE IF function formulas can provide the ability to make decisions. • It has three a rguments: a logical test (an expression that can be evaluated to TRUE or FALSE), the result that the function needs to see if the first argument is true, and th e result must show whether the first argument is FALSE. • Ex IF (A1> 0; "Positiv e" "Negative") • Ex IF (C8> = Val_Rif; Val_1 C8 *, C8 * Val_2) Henry Frere Microsoft Excel functions - advanced Excel 5.9 Microsoft EXCEL Excel functions Logical functions (2) The E And function returns a logical value, TRUE or FALSE, depending on the logical va lue of its arguments. If all arguments are TRUE, the function and returns true, but if at least one of its arguments returns FALSE, and returns FALSE. • Ex = AN D (A1 <0, A2 <0, A3 <0) • Ex combination with IF = IF (AND (A1 <0, A2 <0, A3 <0); "all bad", "not all bad) Henry Frere Microsoft Excel functions - advanced Excel 05:10 Microsoft EXCEL Excel functions Logical functions (3) The O O function is similar to the function E, but returns TRUE if at least one of its arguments is TRUE, otherwise returns FALSE. • Ex = OR (A1 <0, A2 <0, A3 <0) The NOT NOT function reverses the logical value of the subject. • Ex = NOT (condition) r eturns FALSE if the condition = TRUE and vice versa Henry Frere Microsoft Excel functions - advanced Excel 05:11 Microsoft EXCEL The functions of Excel Functions "conditional" (1) SOMMA.SE The (Contained in the category Mathematics) function SOMMA.SE sum the values in cells that satisfy a criterion specified by the user. • The full syntax is: • SOMMA.SE (intervallo_verifica; criteria; inter vallo_somma) • Intervallo_verifica is the range of cells that must be analyzed a ccording to the criteria defined by the second parameter. Eg B5: B10 • The param eter criteria can be expressed as a value (numeric or text) or condition. 32 Eg, "32", "> 32", "apples" • Intervallo_somma represents the range of cells to be a dded (when the cells Intervallo_verifica meet the criteria). • Ex SOMMA.SE (A1: A20, "> 0", C1: C20) Microsoft Excel functions - advanced Excel 05:12 Henry Frere Microsoft EXCEL The functions of Excel Functions "conditional" (2) CONTA.SE The (Contained in the Statistics category) CONTA.SE function counts the cells within a range that meet a criteria you speci fy. • The full syntax is: • CONTA.SE (range, criteria) • Range is the range of c ells to be tested • The parameter criteria can be expressed as a value (numeric or text) or condition. • Ex CONTA.SE (A1: A20, "> 0") Henry Frere Microsoft Excel functions - advanced Excel 05:13 Microsoft EXCEL Excel functions and search functions reference (1) The Excel search functions allow you to identify the values stored in the worksheet, the functions of reference, however, possible to identify the addresses of the cells. In particular, the search functions allow HLOOKUP and VLOOKUP to find values in a t able. Henry Frere Microsoft Excel functions - advanced Excel 05:14 Microsoft EXCEL Excel functions and search functions reference (2) HLOOKUP The VLOOKUP function returns the value of a cell, the information sought is identifi ed by a value to search in a row (the first table), the table where to search an d a line of reference determined by the number of line. The full syntax is: • HL OOKUP (cerca_valore; table; num_rows; correspondence) • cerca_valore is the valu e to find the line • the table is the table where you search for data. • num_row s is the numerical position of the line must be sought determines the type of ma tch required = 0 (FALSE) if you want a perfect match (default) = 1 (TRUE) if you want an approximate match • Eg VLOOKUP ("Address", A1: D5, 4, FALSE) Microsoft Excel functions - advanced Excel 05:15 • Correspondence Henry Frere Microsoft EXCEL Excel functions and search functions reference HLOOKUP Examples: (3) Suppose you have a spreadsheet containing an inventory of spare parts for cars. VLOOKUP ("Axis", A1: C4, 2, TRUE) equals 4 VLOOKUP ("Bearings", A1: C4, 3, FALSE ) equals 5 VLOOKUP ("Bearings", A1: C4, 3, TRUE) is equal to 7 VLOOKUP ("Bolts", A1: C4, 4,) is equal to 11 Henry Frere Microsoft Excel functions - advanced Excel 05:16 Microsoft EXCEL Excel functions for research and reference functions (4) VLOOKUP VLOOKUP searches for a value in the leftmost column of a table and returns the c orresponding value found in a specified column and row. The full syntax is: VL OOKUP (valore_ricerca; table; num_col; correspondence) • valore_ricerca is the v alue to find the first column of the table. It can be a value, a reference or a text string. • table is the table where you search for data. • num_col is no. column in the table to which to return the val ue • correspondence determines the type of match required = 0 (FALSE) if you wan t a perfect match (this is the default if you omit the argument). If no match is not found, returns the error code # N / A = 1 (TRUE) if you want an approximate match (ie the largest value that is less than valore_ricerca. Henry Frere Microsoft Excel functions - advanced Excel 05:17 Microsoft EXCEL Excel functions for research and reference functions (5) VLOOKUP Example In worksheet above, where the range A4: C12 is called Range: equal to 0.946 equal to 2.17 equal to 100 equal to 200 equal to # N / A because 0.1 is less than the smallest value in column A equal to 1.71 VLOOKUP (1; Range, 1, TRUE) VLOOKUP (1; range, 2) VLOOKUP (1; Range, 3, TRUE) VL OOKUP (0.746; Range, 3, FALSE), VLOOKUP ( 0.1, range, 2, TRUE) VLOOKUP (2, Inter val, 2, TRUE) Henry Frere Microsoft Excel functions - advanced Excel 05:18 Microsoft EXCEL Excel functions Financial functions (1) FV () Calculates the future value of an investment based on periodic constant payments and a constant interest rate. • The full syntax is: • FV (tasso_int; periods, p ayment valore_att type) • tasso_int represents the interest rate per pay period • time defines the total number of payments • Payment means the payment made eac h period • valore_att represents the current value of the investment • type defi nes the schedule of payments and can take the values: 0 (default) is for payment at the end of a period for payments to be made at the beginning of the period. Henry Frere Microsoft Excel functions - advanced Excel 05:19 Microsoft EXCEL The functions of Excel Financial Functions (2) FV () Example: The future value of the investment is calculated based on the parameters grouped in the cell range C2: C6. C8 is the function: = FV (C2/12, C3 C4, C5, C6) or: = FV (5% / 12, 12, -150, -400, 1) => € 2,269, 97 Henry Frere Microsoft Excel functions - advanced Excel 05:20 Microsoft EXCEL Excel functions Financial functions (3) PMT () Calculate the payment for the installment of a loan based on payments and intere st rates constant. • The full syntax is: • PMT (tasso_int; periods; valore_attua le; valore_fut type) • tasso_int represents the interest rate per period times • defines the total number of payments for the loan valore_attuale • • valore_fut indicates the initial capital is the balance Final to be reached and if it is o mitted, considered equal to 0 • type defines the schedule of payments and can take the v alues: 0 (default) is for payment at the end of a period for payments to be made at the beginning of the period. Henry Frere Microsoft Excel functions - advanced Excel 05:21 Microsoft EXCEL Excel functions Financial functions (4) PMT () Note: be sure to use the same units to specify the values of Rate is periods. If a four-year loan payments are made monthly with an annual interest rate of 12%, use 12% / 2 4 * Rate is 12 periods. If payments are made for the same period ev ery year, using 12% Rate is for 4 periods. Henry Frere Microsoft Excel functions - advanced Excel 05:22 Microsoft EXCEL Excel functions Financial functions (5) PMT () Calculate Examples: the monthly payment on a loan of € 10,000 which includes an annual interest rate of 8% and that will be extinct in 10 months: PMT (8% / 12, 10, 10000) What equal to - € 1,037.03 it must be paid monthly by the borrower for a loan of € 5,000 to be repaid in 5 months at an interest rate of 12%: PMT (12% / 12, 5, -5000) initial) The equal to € 1,030.20 (NB -5000 is the capital PMT function can be used to determine annuity payments. If, for example. you wan t to accumulate a capital of € 50,000 in a period of 18 years by the monthly sav ings of a constant sum of money, PMT to determine how much to save. Assuming a y ield of 6%, you can use PMT to determine the amount to save each month: PMT (6% / 12, 18 * 12, 0, 50000) equal to - € 129.08 ie monthly rate of € Frere functions - insights Henry pours unaMicrosoft Excel: 129.08 for the 18 years in a bank account that Excel provides an annual return o f 6%, you will get a capital of € 05.23 Microsoft EXCEL Excel functions Financial functions (6) INTERESTS () Calculate the amount of interest on an investment of which are given interest ra te (constant), periodic payment (constant) and duration. • The full syntax is: • INTEREST (tasso_int, period, periods, val_att, fv, type) • tasso_int represents the interest rate per pay period • time defines the total number of payments • valore_att represents the current value (main) • iniz_per loan is the first pay period of calculation (eg.the first period of a series of payments is the numbe r 1) • fine_per is the last pay period of the calculation (can be any period exc eeding iniz_per) • type defines the schedule of payments and can take the values : 0 (default) payment is at end of period Henry Frere payments to be made at the beginning of the period. Microsoft Excel functions - one for Excel depth 05:24 Microsoft EXCEL Excel functions Financial functions (6) INTERESTS () Examples: The following formula calculates the interest to be paid in the first month for a th ree-year loan of L. 8,000,000 with an annual interest of 10%: INTEREST (0.1 / 12, 1, 36, 8000000) is equal to-L. 66,670 The following formula calculates the interest paid last year for a three-year lo an of L. 8,000,000 with an annual interest of 10%, in which payments are made ev ery year: INTEREST (0.1, 3, 3, 8000000) is equal to-L. 292,450 Henry Frere Microsoft Excel functions - advanced Excel 05:25 Microsoft EXCEL Excel functions Financial functions (7) INT.CUMUL () Calculate the total amount of interest paid on a series of payments for a loan. • The full syntax is: • INT.CUMUL (tasso_int; periods; valore_att; iniz_per; fin e_per type) • tasso_int represents the interest rate per pay period • time defin es the total number of payments • valore_att represents the current value (the m ain) of the loan • iniz_per is the first pay period of calculation (eg. the firs t period of a series of payments is the number 1) • fine_per is the last pay per iod of the calculation (can be any period exceeding iniz_per ) • type defines th e schedule of payments and can take the values: 0 (default) is for payment at th e end of a period for payments to be made at the beginning of the period. Henry Frere Microsoft Excel functions - advanced Excel 05:26 Microsoft EXCEL Excel functions Financial functions (8) INT.CUMUL () Important note: The INT.CUMUL function () is part of the package of Excel analys is tools. If your PC has installed this package, the function will appear in the Add-in that can be accessed from the Tools menu. If the package is not installe d, is installed from the installation CD of Microsoft Office. Once activated the add, the function will appear in the list of financial functions. Henry Frere Microsoft Excel functions - advanced Excel 05:27 Microsoft EXCEL Excel functions Financial functions (8) INT.CUMUL () Examples: A mortgage on a house has the following terms: Intere st rate: 9% annually (tasso_int = 9% ÷ 12 = 0.0075) Term: 30 years (periods = 30 × 12 = 360) Present value: L. 125,000,000 The total interest paid in year two ( periods 13 to 24) is calculated as follows: INT.CUMUL (0.0075, 360, 125,000,000, 13, 24, 0) -11135230 equal to Interest paid in one payment in the first month are calculated as follows: INT.CUMUL (0.0075, 360, 125,000,000, 1, 1, 0) -937 500 equal to Henry Frere Microsoft Excel functions - advanced Excel 05:28 Microsoft EXCEL The functions of Excel Functions Date and Time (1) Excel handles (inside) the dates and times the same way as real numbers, the integer p art of number identifies the date, time defines the decimal part. The numbering starts from 1 January 1900. Examples Date and Time functions: TODAY () NOW () DAY () NOW () MONTH () MINU TE () YEAR () SECOND () DATE () TIME () Microsoft Excel functions - advanced Excel 05:29 Henry Frere Microsoft EXCEL The functions of Excel Functions Date and Time (2) TODAY () syntax: TODAY () This function takes no arguments, returns the current date. If the size of cell function is associated with the date, Excel displays the value in the form of time, or (if the format is numeric) is the number that Excel uses to store the data internally. NB By default, if you set the function TODAY () ( writing = TODAY () and pressing ENTER) in an empty cell that uses the standard f ormat (General), Excel automatically applies the Date format to the selected cel l and then displays the result as form of date. syntax: NOW () This function tak es no arguments, returns the current date and time. The same considerations made for the function TODAY (), Henry Frere Microsoft Excel functions - advanced Exc el except that in this case we will also have the decimal part, 05:30 NOW () Microsoft EXCEL The functions of Excel Functions Date and Time (3) TODAY () and NOW () Observation important function now provides the date and time at which the function was inse rted into the worksheet. The TODAY function provides only the date. Every time y ou open a worksheet that uses one of these functions, the date and time set auto matically updated. Henry Frere Microsoft Excel functions - advanced Excel 05:31 Microsoft EXCEL The functions of Excel Functions Date and Time (4) DAY () Syntax: DAY (number) or DAY (date) This function (first syntax) returns a number representing the day of the month associated with the value (serial) passed as an argument. Eg. The expression = DAY (37649) returns 28 because the serial number 37649 repr esents the date January 28, 2003. And 'possible (second syntax) passed as an argument even a date expressed in the form day / month / year or in another format such date. Eg. If after entering the value in cell D1 May 13, 1969 you wrote in another cel l expression = DAY (D1) Henry Frere dandoapprofondimenti associated with Microso ft Excel functions - ENTER, the cell Excel formula would appear the value 13. 05 :32 Microsoft EXCEL The functions of Excel Functions Date and Time (5) MONTH () Syntax: MONTH (number) or MONTH (date) This function (first syntax) returns a number representing the month associated with the value (serial) passed as an argument. Eg. The expression = DAY (37649) returns 1 because the serial number 37649 repre sents the date January 28, 2003. And 'possible (second syntax) passed as an argument even a date expressed in the form day / month / year or in another format such date. Eg. If after entering the value in cell D1 May 13, 1969 you wrote in another cel l expression = MONTH (D1) giving ENTER, the cell associated with Henry Frere Mic rosoft Excel functions - advanced Excel formula would be receive the value 5. 05 :33 Microsoft EXCEL The functions of Excel Functions Date and Time (6) YEAR () Syntax: YEAR (number) or YEAR (date) This function (first syntax) returns a number representing the year associated w ith the value (serial) passed as an argument. Eg. The expression = YEAR (37,649) returns 2003 because the serial number 37649 represents the date January 28, 2003. And 'possible (second syntax) passed as an argument even a date expressed in the form day / month / year or in another format such date. Eg. If after entering the value in cell D1 May 13, 1969 you wrote in another cel l expression = YEAR (D1) giving - Henry Frere approfondimentiassociata to Micros oft Excel functions ENTER, the cell Excel formula would appear the value 1969. 0 5:34 Microsoft EXCEL The functions of Excel Functions Date and Time (7) NOW () syntax: HOUR (number) This function returns a number representing the time value associated with the ( serial) passed as an argument. The number is between 0 (12 AM) and 23 (11 PM). MINUTE () Syntax: MIN (number) This function returns a number representing the minute asso ciated with the value (serial) passed as an argument. The number is between 0 an d 59. SECOND () syntax: SECOND (number) This function returns a number that represents the no. a ssociated with the value of seconds (serial) passed as an argument. The number i s between 0 and 59. Henry Frere Microsoft Excel functions - advanced Excel 05:35 Microsoft EXCEL The functions of Excel Functions Date and Time (8) The Date and Time functions in Excel allow you to use date and time in the formulas. To perform calculations on these values, Excel converts any date and time seria l number. The date () function returns the number (serial) associated with a date by which 'th e combination of year, month and day (as function arguments) function syntax: DA TE (year, month, day) The Function TIME () returns the number (serial), which represents a specific time g iven by the combination hour, minute and second supplied in the arguments. It 's a decimal fraction between 0 and 0.99999999 for an hour between 0:00:00 (12:00: 00 AM) and 23:59:59 (11:59:59 PM). Function syntax: TIME (hour, minute, second) Henry Frere Microsoft Excel functions - advanced Excel 05:36 Microsoft EXCEL Excel functions Text functions Examples functions of text: Shift (string) Converts all uppercase characters in the text string in the argument. LOWER (string) Converts all lowercase characters in the text string in the argument. CONCATENATE (string1; string2, ...) Allow merge into a single string two or more text strings. Henry Frere Microsoft Excel functions - advanced Excel 05:37 Microsoft EXCEL The functions of Excel Functions End of argument Henry Frere Microsoft Excel functions - advanced Excel 05:38