Presentation is loading. Please wait.

Presentation is loading. Please wait.

MIS: Chapter 7: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS All assigned.

Similar presentations


Presentation on theme: "MIS: Chapter 7: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS All assigned."— Presentation transcript:

1

2 MIS: Chapter 7: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS All assigned course Homework and Lab Assignments plus BCS- Part 1

3 Financial Functions PMT NPER RATE FV PV Text Functions FIND LEFT LEN RIGHT CONCATENATE UPPER LOWER PROPER ISTEXT MID EXACT REPLACE TRIM CLEAN REPLACE Date & Time Functions DATEDIF TODAY NOW YEARFRAC DATE YEAR MONTH DAY WEEKDAY HOUR MINUTE SECOND

4 Microsoft ® Excel ® Date Functions Syntax: =TODAY() Arguments: None

5 Microsoft ® Excel ® Date Functions Description: Returns the serial number of the current date. Remarks: If the cell format was General before the function was entered, Excel changes the cell format to Date. If you want to view the serial number, you must change the cell format to General or Number. The TODAY function is useful when you need to have the current date displayed on a worksheet, regardless of when you open the workbook. The TODAY function is dependent on your computer’s system clock being correct. Errors: None

6 Microsoft ® Excel ® Date Functions =TODAY()

7 Microsoft ® Excel ® Date Functions Syntax: =NOW() Arguments: None

8 Microsoft ® Excel ® Date Functions Description: Returns the serial number of the current date and time. Remarks: If the cell format was General before the function was entered, Excel changes the cell format to the same date and time format that is specified in the regional date and time settings in Control Panel. The NOW function is useful when you need to display the current date and time on a worksheet or calculate a value based on the current date and time, and have that value updated each time you open the worksheet. Numbers to the right of the decimal point in the serial number represent the time; numbers to the left represent the date. The results of the NOW function change only when the worksheet is calculated or when a macro that contains the function is run. It is not updated continuously. Errors: None

9 Microsoft ® Excel ® Date Functions =NOW()

10

11 Microsoft ® Excel ® Date Functions Syntax: =YEARFRAC(start_date,end_date,[basis]) Arguments: start_date Required  A date that represents the start date. end_date Required  A date that represents the end date. basis Optional  The type of day count basis to use.

12 Microsoft ® Excel ® Date Functions Description: Calculates the fraction of the year represented by the number of whole days between two dates (the start_date and the end_date). Remarks: Use the YEARFRAC worksheet function to identify the proportion of a whole year's benefits or obligations to assign to a specific term. Dates should be entered by using the DATE function, or as results of other formulas or functions. All arguments are truncated to integers. Errors: #VALUE – If start_date or end_date are not valid dates #NUM! – If basis < 0 #NUM! – If basis > 4

13 Microsoft ® Excel ® Date Functions =YEARFRAC(A2,A3,A4) What is the fraction of the year between the two dates?

14 Microsoft ® Excel ® Date Functions =YEARFRAC(A2,A3,A4) =0.583333333 What is the fraction of the year between the two dates?

15 Microsoft ® Excel ® Date Functions Syntax: =DATE(year,month,day) Arguments: year Required  The year of the date you want to output. month Required  The month of the date you want to output. day Required  The day of the date you want to output.

16 Microsoft ® Excel ® Date Functions =DATE (B1,B2,B3) =2/20/2012 What is the date using the information give below?

17 Microsoft ® Excel ® Date Functions Syntax: =YEAR(serial_number) Arguments: year Required  The date you wish to find the year of.

18 Microsoft ® Excel ® Date Functions Syntax: =MONTH(serial_number) Arguments: serial_number Required  The date you wish to find the month of.

19 Microsoft ® Excel ® Date Functions Syntax: =DAY(serial_number) Arguments: year Required  The date you wish to find the day of.

20 Microsoft ® Excel ® Date Functions =YEAR(A1) =2035 What is the year, month, and day of the date below? =MONTH(A1) =5 =DAY(A1) =29 CELL A1 - 5/29/2035

21 Microsoft ® Excel ® Date Functions Syntax: =HOUR(serial_number) Arguments: Serial_number Required  the time value to extract the hour from. It may be expressed as a string value, a decimal number, or the result of a formula.

22 Microsoft ® Excel ® Date Functions =HOUR(A6) =12 What is the number that will be displayed in A7?

23 Microsoft ® Excel ® Date Functions Syntax: =MINUTE(serial_number) Arguments: Serial_number Required  the time value to extract the hour from. It may be expressed as a string value, a decimal number, or the result of a formula.

24 Microsoft ® Excel ® Date Functions Syntax: =SECOND(serial_number) Arguments: Serial_number Required  the time value to extract the hour from. It may be expressed as a string value, a decimal number, or the result of a formula.

25 Microsoft ® Excel ® Date Functions Syntax: =DATEDIF(startdate,enddate,interval) Arguments: startdate Required  A date that represents the start date. enddate Required  A date that represents the end date. interval Required  The type of day count basis to use.

26 Microsoft ® Excel ® Date Functions Syntax: =DATEDIF(startdate,enddate,interval) Arguments: interval Required  The type of day count basis to use.

27 Microsoft ® Excel ® Date Functions Description: Computes the difference between two dates in a variety of different intervals. Remarks: If you have the interval in another cell referenced by the formula, that cell should not have quotes around the interval string. When calculating date intervals, DATEDIF uses the year of startdate, not enddate when calculating the yd, ym and md intervals Errors: #VALUE – If start_date or end_date are not valid dates #NUM! – If start date is not less than or equal to the end date

28 Microsoft ® Excel ® Date Functions =DATEDIF(A2,A3,”d”) What is the difference in days between the two dates?

29 Microsoft ® Excel ® Date Functions =DATEDIF(A2,A3,”d”) =210 What is the difference in days between the two dates?

30 FIND =FIND(find_text,within_text,[start_num]) LEFT =LEFT(text,[num_chars]) LEN =LEN(text) RIGHT =RIGHT(text,[num_chars]) UPPER =UPPER(text) LOWER =LOWER(text) PROPER =PROPER(text)

31 Microsoft ® Excel ® Text Functions Syntax: =FIND(find_text,within_text,[start_num]) Arguments: find_text Required  The text you want to find. within_text Required  The text string containing the text you want to find. start_num Optional  Specifies the character at which to start the search.

32 Microsoft ® Excel ® Text Functions Description: Locates one text string within a second text string, and returns the number of the starting position of the first text string from the first character of the second text string Remarks: FIND always counts each character. The first character in within_text is character number 1. If you omit start_num, it is assumed to be 1. FIND is case sensitive. If find_text is "" (empty text), FIND matches the first character in the search string (that is, the character numbered start_num or 1).

33 Microsoft ® Excel ® Text Functions Errors: #VALUE! – If find_text does not appear in within_text #VALUE! – If start_num is not greater than zero #VALUE! – If start_num is greater than the length of within_text

34 Microsoft ® Excel ® Text Functions A 11Miriam McGovern =FIND(“M”,A11) =1

35 Microsoft ® Excel ® Text Functions A 11Miriam McGovern =FIND(“M”,A11,3) =8

36 Microsoft ® Excel ® Text Functions A 11Miriam McGovern =FIND(“m”,A11) =6

37 Microsoft ® Excel ® Text Functions Syntax: =LEFT(text,[num_chars]) Arguments: text Required  The text string that contains the characters you want to extract. num_chars Optional  Specifies the number of characters you want LEFT to extract.

38 Microsoft ® Excel ® Text Functions Description: Returns the first character or characters in a text string, based on the number of characters you specify Remarks: LEFT always counts each character. Num_chars must be => 0.

39 Microsoft ® Excel ® Text Functions A 1Data 2Sale Price =LEFT(A2,4) =Sale

40 Microsoft ® Excel ® Text Functions A 1Data 2Sale Price 3Sweden =LEFT(A3) =S

41 Microsoft ® Excel ® Text Functions Syntax: =LEN(text) Arguments: text Required  The text whose length you want to find.

42 Microsoft ® Excel ® Text Functions Description: Returns the number of characters in a text string. Remarks: Spaces count as characters.

43 Microsoft ® Excel ® Text Functions A 1Data 2Phoenix, AZ 3 4 5 6 One =LEN(A2) =11

44 Microsoft ® Excel ® Text Functions A 1Data 2Phoenix, AZ 3 4 5 6 One =LEN(A4) =0

45 Microsoft ® Excel ® Text Functions A 1Data 2Phoenix, AZ 3 4 5 6 One =LEN(A6) =8

46 Microsoft ® Excel ® Text Functions Syntax: =RIGHT(text,[num_chars]) Arguments: text Required  The text string that contains the characters you want to extract. num_chars Optional  Specifies the number of characters you want RIGHT to extract.

47 Microsoft ® Excel ® Text Functions Description: Returns the last character or characters in a text string, based on the number of characters you specify. Remarks: RIGHT always counts each character. Num_chars must be => 0.

48 Microsoft ® Excel ® Text Functions A 1Data 2Sale Price 3 4Stock Number =RIGHT(A2,5) =Price

49 Microsoft ® Excel ® Text Functions A 1Data 2Sale Price 3 4Stock Number =RIGHT(A2,LEN(A2)-FIND(“ “,A2)) =RIGHT(A2,10-5) =RIGHT(A2,5) =Price

50 Microsoft ® Excel ® Text Functions A 1Data 2Sale Price 3 4Stock Number =RIGHT(A4) =r

51 Microsoft ® Excel ® Text Functions Syntax: =MID(text,start_num,num_chars) Arguments: text Required  The text string that contains the characters you want to extract. start_num Required  Specifies the number of character you want to start extracting from. text Required  Specifies the number of characters you want to extract.

52 Microsoft ® Excel ® Text Functions =MID(A1,11,6) =string =MID(A3,4,2) =is

53 Microsoft ® Excel ® Text Functions Syntax: =UPPER(text) Arguments: text Required  The text you want converted to uppercase.

54 Microsoft ® Excel ® Text Functions Description: Converts text to uppercase. Remarks: Text can be a reference or text string.

55 Microsoft ® Excel ® Text Functions =UPPER(A2) =TOTAL

56 Microsoft ® Excel ® Text Functions =UPPER(A3) =YIELD

57 Microsoft ® Excel ® Text Functions Syntax: =LOWER(text) Arguments: text Required  The text you want converted to lowercase.

58 Microsoft ® Excel ® Text Functions Description: Converts all uppercase letters in a text string to lowercase. Remarks: LOWER does not change characters in text that are not letters.

59 Microsoft ® Excel ® Text Functions =LOWER(A2) =e.e. cummings

60 Microsoft ® Excel ® Text Functions =LOWER(A3) =apt. 2b

61 Microsoft ® Excel ® Text Functions Syntax: =PROPER(text) Arguments: text Required  Text enclosed in quotation marks, a formula that returns text, or a reference to a cell containing the text you want to partially capitalize.

62 Microsoft ® Excel ® Text Functions Description: Capitalizes the first letter in a text string and any other letters in text that follow any character other than a letter. Remarks: PROPER converts all other letters to lowercase letters.

63 Microsoft ® Excel ® Text Functions =PROPER(A2) =This Is A Title

64 Microsoft ® Excel ® Text Functions =PROPER(A3) =2-Cent’S Worth

65 Microsoft ® Excel ® Text Functions =PROPER(A4) =76Budget

66 Microsoft ® Excel ® Text Functions Syntax: =REPLACE(old_text,start_num,num_chars,new_text) Arguments: old_text Required  Text for which some portion is to be replaced. start_num Required  Starting position of the replacement in the old text. num_chars Required  How many characters from the starting position to replace in the old text. new_text Required  Text to replace the defined portion of the old text.

67 Microsoft ® Excel ® Text Functions =REPLACE(A1,10,7,B1) =I made a passing grade in the class! =REPLACE(A3,3,4,B3) =I love learning about Excel!

68 Microsoft ® Excel ® Text Functions Syntax: =TRIM(text) Arguments: text Required  text is the text value to remove the leading and trailing spaces from.

69 Microsoft ® Excel ® Text Functions =TRIM(A1) =“Tech on the Net” =TRIM(A2) =“1234”

70 Microsoft ® Excel ® Text Functions Syntax: =CLEAN(text) Arguments: text Required  is the value that has all nonprintable characters removed from.

71 Microsoft ® Excel ® Text Functions =CLEAN(A1) =“hi there” =CLEAN(A2) =“this is a test”

72 Microsoft ® Excel ® Text Functions Syntax: =ISTEXT(value) Arguments: value Required  the value that you want to test. If value is a text value, this function will return TRUE. Otherwise, it will return FALSE.

73 Microsoft ® Excel ® Text Functions =ISTEXT(A1) =FALSE =ISTEXT(A2) =TRUE =ISTEXT(A3) =FALSE

74 Microsoft ® Excel ® Text Functions Syntax: =ISTEXT(text, old_text, new_text, [nth_appearance]) Arguments: text Required  the original string to use to perform the substitution. old text Required  the existing characters to replace. new text Required  the new characters to replace old_text with. nth_apprenace Optional  the new characters to replace old_text with.

75  Example: =SUBSTITUTE(A1, “bet”, “con”, 1) =Alphacon Soup

76  Example:  Substitute “4” for the second “t” in A2. =SUBSTITUTE(A2, “t”, “4”, 2) =techon4henet.com

77 PMT =FIND(find_text,within_text,[start_num]) NPER =LEFT(text,[num_chars]) RATE =LEN(text) FV =RIGHT(text,[num_chars]) PV =UPPER(text)

78 Microsoft ® Excel ® Text Functions Syntax: =PMT(rate, nper, pv, [fv], [type]) Arguments: rate Required  is the interest rate for the loan. nper Required  is the total number of payments for the loan. pv Required  is the present value, or the total amount that a series of future payments is worth now; also known as the principal. fv Optional  is the future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (zero), that is, the future value of a loan is 0. Type Optional  is the number 0 (zero) (at the end) or 1(at the beginning) and indicates when payments are due.

79 Microsoft ® Excel ® Text Functions Syntax: =NPER(rate, pmt, pv, [fv], [type]) Arguments: rate Required  is the interest rate for the loan. pmt Required  is the payment made each period; it cannot change over the life of the annuity. Typically, pmt contains principal and interest but no other fees or taxes. pv Required  is the present value, or the total amount that a series of future payments is worth now; also known as the principal. fv Optional  is the future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (zero), that is, the future value of a loan is 0. Type Optional  is the number 0 (zero) (at the end) or 1(at the beginning) and indicates when payments are due.

80 Microsoft ® Excel ® Text Functions Syntax: =RATE(nper, pmt, pv, [fv], [type]) Arguments: nper Required  is the total number of payments for the loan. pmt Required  is the payment made each period; it cannot change over the life of the annuity. Typically, pmt contains principal and interest but no other fees or taxes. pv Required  is the present value, or the total amount that a series of future payments is worth now; also known as the principal. fv Optional  is the future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (zero), that is, the future value of a loan is 0. Type Optional  is the number 0 (zero) (at the end) or 1(at the beginning) and indicates when payments are due.

81 Microsoft ® Excel ® Text Functions Syntax: =PV(nper, pmt, rate, [fv], [type]) Arguments: nper Required  is the total number of payments for the loan. pmt Required  is the payment made each period; it cannot change over the life of the annuity. Typically, pmt contains principal and interest but no other fees or taxes. rate Required  is the interest rate for the loan. fv Optional  is the future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (zero), that is, the future value of a loan is 0. Type Optional  is the number 0 (zero) (at the end) or 1(at the beginning) and indicates when payments are due.

82 Microsoft ® Excel ® Text Functions Syntax: =FV(nper, pmt, rate, [pv], [type]) Arguments: nper Required  is the total number of payments for the loan. pmt Required  is the payment made each period; it cannot change over the life of the annuity. Typically, pmt contains principal and interest but no other fees or taxes. rate Required  is the interest rate for the loan. pv Optional  is the present value, or the total amount that a series of future payments is worth now; also known as the principal. Type Optional  is the number 0 (zero) (at the end) or 1(at the beginning) and indicates when payments are due.

83  Example: You bought a car for $16,000. You were given a loan for 3 years at 6.25%. Calculate the monthly payment.

84 =PMT(B3/12,B2*12,-B1) =488.57


Download ppt "MIS: Chapter 7: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS All assigned."

Similar presentations


Ads by Google