MIS: Chapter 7: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new...

84

Transcript of MIS: Chapter 7: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new...

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

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

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

•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

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

Microsoft® Excel® Date Functions

Syntax:

=TODAY()

Arguments:None

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

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

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

Microsoft® Excel® Date Functions

=TODAY()

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

Microsoft® Excel® Date Functions

Syntax:

=NOW()

Arguments:

None

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

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

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

Microsoft® Excel® Date Functions

=NOW()

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

=NOW()

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

Microsoft® Excel® Date Functions

Syntax:

=YEARFRAC(start_date,end_date,[basis])

Arguments:•start_date Required

A date that represents the start date.

•end_date RequiredA date that represents the end date.

•basis OptionalThe type of day count basis to use.

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

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

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

Microsoft® Excel® Date Functions

=YEARFRAC(A2,A3,A4)

What is the fraction of the year between the two dates?

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

Microsoft® Excel® Date Functions

=YEARFRAC(A2,A3,A4)=0.583333333

What is the fraction of the year between the two dates?

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

Microsoft® Excel® Date Functions

Syntax:

=DATE(year,month,day)

Arguments:•year Required

The year of the date you want to output.

•month RequiredThe month of the date you want to output.

•day RequiredThe day of the date you want to output.

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

Microsoft® Excel® Date Functions

=DATE (B1,B2,B3)=2/20/2012

What is the date using the information give below?

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

Microsoft® Excel® Date Functions

Syntax:

=YEAR(serial_number)

Arguments:•year Required

The date you wish to find the year of.

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

Microsoft® Excel® Date Functions

Syntax:

=MONTH(serial_number)

Arguments:•serial_number Required

The date you wish to find the month of.

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

Microsoft® Excel® Date Functions

Syntax:

=DAY(serial_number)

Arguments:•year Required

The date you wish to find the day of.

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

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

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

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.

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

Microsoft® Excel® Date Functions

=HOUR(A6)=12

What is the number that will be displayed in A7?

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

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.

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

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.

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

Microsoft® Excel® Date Functions

Syntax:

=DATEDIF(startdate,enddate,interval)

Arguments:•startdate Required

A date that represents the start date.

•enddate RequiredA date that represents the end date.

•interval RequiredThe type of day count basis to use.

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

Microsoft® Excel® Date Functions

Syntax:

=DATEDIF(startdate,enddate,interval)

Arguments:•interval Required

The type of day count basis to use.

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

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

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

Microsoft® Excel® Date Functions

=DATEDIF(A2,A3,”d”)

What is the difference in days between the two dates?

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

Microsoft® Excel® Date Functions

=DATEDIF(A2,A3,”d”)=210

What is the difference in days between the two dates?

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

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)

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

Microsoft® Excel® Text Functions

Syntax:

=FIND(find_text,within_text,[start_num])

Arguments:•find_text Required

The text you want to find.

•within_text RequiredThe text string containing the text you want to find.

•start_num OptionalSpecifies the character at which to start the search.

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

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).

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

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

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

Microsoft® Excel® Text Functions

A

11 Miriam McGovern

=FIND(“M”,A11)=1

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

Microsoft® Excel® Text Functions

A

11 Miriam McGovern

=FIND(“M”,A11,3)=8

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

Microsoft® Excel® Text Functions

A

11 Miriam McGovern

=FIND(“m”,A11)=6

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

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 OptionalSpecifies the number of characters you want LEFT to extract.

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

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.

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

Microsoft® Excel® Text Functions

A

1 Data

2 Sale Price

=LEFT(A2,4)=Sale

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

Microsoft® Excel® Text Functions

A

1 Data

2 Sale Price

3 Sweden

=LEFT(A3)=S

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

Microsoft® Excel® Text Functions

Syntax:

=LEN(text)

Arguments:•text Required

The text whose length you want to find.

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

Microsoft® Excel® Text Functions

Description:•Returns the number of characters in a text string.

Remarks:•Spaces count as characters.

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

Microsoft® Excel® Text Functions

A

1 Data

2 Phoenix, AZ

3

4

5

6 One

=LEN(A2)=11

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

Microsoft® Excel® Text Functions

A

1 Data

2 Phoenix, AZ

3

4

5

6 One

=LEN(A4)=0

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

Microsoft® Excel® Text Functions

A

1 Data

2 Phoenix, AZ

3

4

5

6 One

=LEN(A6)=8

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

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 OptionalSpecifies the number of characters you want RIGHT to extract.

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

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.

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

Microsoft® Excel® Text Functions

A

1 Data

2 Sale Price

3

4 Stock Number

=RIGHT(A2,5)=Price

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

Microsoft® Excel® Text Functions

A

1 Data

2 Sale Price

3

4 Stock Number

=RIGHT(A2,LEN(A2)-FIND(“ “,A2))=RIGHT(A2,10-5)=RIGHT(A2,5)=Price

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

Microsoft® Excel® Text Functions

A

1 Data

2 Sale Price

3

4 Stock Number

=RIGHT(A4)=r

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

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 RequiredSpecifies the number of character you want to start extracting from.

•text RequiredSpecifies the number of characters you want to extract.

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

Microsoft® Excel® Text Functions

=MID(A1,11,6)=string

=MID(A3,4,2)=is

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

Microsoft® Excel® Text Functions

Syntax:

=UPPER(text)

Arguments:•text Required

The text you want converted to uppercase.

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

Microsoft® Excel® Text Functions

Description:•Converts text to uppercase.

Remarks:•Text can be a reference or text string.

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

Microsoft® Excel® Text Functions

=UPPER(A2)=TOTAL

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

Microsoft® Excel® Text Functions

=UPPER(A3)=YIELD

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

Microsoft® Excel® Text Functions

Syntax:

=LOWER(text)

Arguments:•text Required

The text you want converted to lowercase.

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

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.

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

Microsoft® Excel® Text Functions

=LOWER(A2)=e.e. cummings

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

Microsoft® Excel® Text Functions

=LOWER(A3)=apt. 2b

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

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.

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

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.

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

Microsoft® Excel® Text Functions

=PROPER(A2)=This Is A Title

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

Microsoft® Excel® Text Functions

=PROPER(A3)=2-Cent’S Worth

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

Microsoft® Excel® Text Functions

=PROPER(A4)=76Budget

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

Microsoft® Excel® Text Functions

Syntax:

=REPLACE(old_text,start_num,num_chars,new_text)

Arguments:

•old_text RequiredText for which some portion is to be replaced.

•start_num RequiredStarting position of the replacement in the old text.

•num_chars RequiredHow many characters from the starting position to replace in the old text.

•new_text RequiredText to replace the defined portion of the old text.

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

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!

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

Microsoft® Excel® Text Functions

Syntax:

=TRIM(text)

Arguments:•text Required

text is the text value to remove the leading and trailing spaces from.

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

Microsoft® Excel® Text Functions

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

Microsoft® Excel® Text Functions

Syntax:

=CLEAN(text)

Arguments:•text Required

is the value that has all nonprintable characters removed from.

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

Microsoft® Excel® Text Functions

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

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.

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

Microsoft® Excel® Text Functions

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

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.

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

Example:

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

Example: Substitute “4” for the second “t” in A2.

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

PMT=FIND(find_text,within_text,[start_num])

NPER=LEFT(text,[num_chars])

RATE=LEN(text)

FV=RIGHT(text,[num_chars])

PV=UPPER(text)

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

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.

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

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.

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

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.

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

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 Requiredis 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.

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

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 Requiredis 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.

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

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

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

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