143

MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Embed Size (px)

Citation preview

Page 1: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate
Page 2: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

MIS: Chapter 6,7,8,10: Data Base and Data Warehouses

Cumulative concepts, features and functions, plus new functions

COUNTIFS, SUMIFS, AVERAGEIFS (Separate ppt on REACH.louisville.edu)

All assigned course Homework and Lab Assignments

Page 3: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

•Lookup Functions•VLOOKUP•HLOOKUP•INDEX-MATCH

•Text Functions•FIND•LEFT•LEN•RIGHT•MID•UPPER•LOWER•PROPER•TRIM •CONCATENATE

•Date & Time Functions•YEARFRAC•DATE•YEAR•MONTH•DAY•DATEDIF

•Database Functions•DAVERAGE•DCOUNT•DMAX•DMIN•DSUM

•Error Functions•IFERROR

Page 4: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 5: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 6: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Date Functions

=YEARFRAC(A2,A3,A4)

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

Page 7: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Date Functions

=YEARFRAC(A2,A3,A4)=0.583333333

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

Page 8: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 9: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Date Functions

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

What is the date using the information give below?

Page 10: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Date Functions

Syntax:

=YEAR(serial_number)

Arguments:•year Required

The date you wish to find the year of.

Page 11: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Date Functions

Syntax:

=MONTH(serial_number)

Arguments:•serial_number Required

The date you wish to find the month of.

Page 12: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Date Functions

Syntax:

=DAY(serial_number)

Arguments:•year Required

The date you wish to find the day of.

Page 13: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 14: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 15: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Date Functions

Syntax:

=DATEDIF(startdate,enddate,interval)

Arguments:•interval Required

The type of day count basis to use.

Page 16: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 17: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Date Functions

=DATEDIF(A2,A3,”d”)

What is the difference in days between the two dates?

Page 18: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Date Functions

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

What is the difference in days between the two dates?

Page 19: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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)

CONCATENATE ((including &)=CONCATENATE(text1, [text2], ...)

Page 20: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 21: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 22: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 23: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

A

11 Miriam McGovern

=FIND(“M”,A11)=1

Page 24: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

A

11 Miriam McGovern

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

Page 25: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

A

11 Miriam McGovern

=FIND(“m”,A11)=6

Page 26: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 27: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 28: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

A

1 Data

2 Sale Price

=LEFT(A2,4)=Sale

Page 29: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

A

1 Data

2 Sale Price

3 Sweden

=LEFT(A3)=S

Page 30: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

Syntax:

=LEN(text)

Arguments:•text Required

The text whose length you want to find.

Page 31: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

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

Remarks:•Spaces count as characters.

Page 32: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

A

1 Data

2 Phoenix, AZ

3

4

5

6 One

=LEN(A2)=11

Page 33: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

A

1 Data

2 Phoenix, AZ

3

4

5

6 One

=LEN(A4)=0

Page 34: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

A

1 Data

2 Phoenix, AZ

3

4

5

6 One

=LEN(A6)=8

Page 35: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 36: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 37: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

A

1 Data

2 Sale Price

3

4 Stock Number

=RIGHT(A2,5)=Price

Page 38: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 39: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

A

1 Data

2 Sale Price

3

4 Stock Number

=RIGHT(A4)=r

Page 40: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 41: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

=MID(A1,11,6)=string

=MID(A3,4,2)=is

Page 42: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

Syntax:

=UPPER(text)

Arguments:•text Required

The text you want converted to uppercase.

Page 43: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

Description:•Converts text to uppercase.

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

Page 44: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

=UPPER(A2)=TOTAL

Page 45: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

=UPPER(A3)=YIELD

Page 46: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

Syntax:

=LOWER(text)

Arguments:•text Required

The text you want converted to lowercase.

Page 47: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 48: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

=LOWER(A2)=e.e. cummings

Page 49: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

=LOWER(A3)=apt. 2b

Page 50: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 51: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

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 52: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

=PROPER(A2)=This Is A Title

Page 53: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

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

Page 54: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

=PROPER(A4)=76Budget

Page 55: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

Syntax:

=TRIM(text)

Arguments:•text Required

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

Page 56: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

Page 57: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

Syntax:

=CONCATENATE(text1, [text2], ...)

Arguments:•text1 Required

The first text item to be concatenated.

•text2 OptionalAdditional text items, up to a maximum of 255 items, which must be separated by commas.

Page 58: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

Description:• Joins up to 255 text strings into one text string.

Remarks:•The joined items can be text, numbers, cell references, or a combination of those items.

Page 59: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

A B C

1 Data Data Data

2 Brook trout

Andreas

Hauser

3 species Fourth Pine

4 32

=CONCATENATE(“Stream Population for “,A2,” “,A3, “ is “,A4,”/mile”)=Stream Population for Brook trout species is 32/mile

Page 60: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

A B C

1 Data Data Data

2 Brook trout

Andreas

Hauser

3 species Fourth Pine

4 32

=CONCATENATE(B2, “ “, C2)=Andreas Hauser

Page 61: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

A B C

1 Data Data Data

2 Brook trout

Andreas

Hauser

3 species Fourth Pine

4 32

=CONCATENATE(C2, “, “ , B2)=Hauser, Andreas

Page 62: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

A B C

1 Data Data Data

2 Brook trout

Andreas

Hauser

3 species Fourth Pine

4 32

=CONCATENATE(B3, “ & “ , C3)=Fourth & Pine

Page 63: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Text Functions

A B C

1 Data Data Data

2 Brook trout

Andreas

Hauser

3 species Fourth Pine

4 32

=B3& “ & “ &C3 =Fourth & Pine

Page 64: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

DAVERAGE=DAVERAGE(database,field,criteria)

DCOUNT=DCOUNT(database,field,criteria)

DMAX=DMAX(database,field,criteria)

DMIN=DMIN(database,field,criteria)

DSUM=DSUM(database,field,criteria)

Page 65: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

Syntax:

=DAVERAGE(database,field,criteria)

Arguments:•database Required

The range of cells that makes up the list or database.•field Required

Indicates which column is used in the function.•criteria Required

The range of cells that contains the conditions you specify.

Page 66: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

Description:•Averages the values in a field (column) of records in a list or database that match conditions you specify.

Remarks:•You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label for specifying the condition•Although the criteria range can be located anywhere on the worksheet, do not place the criteria range below the list•Make sure the criteria range does not overlap the list•To perform an operation on an entire column in a database, enter a blank line below the column labels in the criteria range.

Errors:None specified

Page 67: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DAVERAGE(A4:E10,"Yield",A1:B2)

The average yield of apple trees over 10 feet in height.

Page 68: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DAVERAGE(A4:E10,"Yield",A1:B2)

The average yield of apple trees over 10 feet in height.

Page 69: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DAVERAGE(A4:E10,"Yield",A1:B2)

The average yield of apple trees over 10 feet in height.

Page 70: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DAVERAGE(A4:E10,"Yield",A1:B2)

The average yield of apple trees over 10 feet in height.

Page 71: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DAVERAGE(A4:E10,"Yield",A1:B2)=12

The average yield of apple trees over 10 feet in height.

Page 72: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DAVERAGE(A4:E10,3,A4:E10)

The average age of all trees in the database.

Page 73: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DAVERAGE(A4:E10, 3,A4:E10)

The average age of all trees in the database.

Page 74: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DAVERAGE(A4:E10, 3,A4:E10)

The average age of all trees in the database.

Page 75: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DAVERAGE(A4:E10, 3,A4:E10)

The average age of all trees in the database.

Page 76: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DAVERAGE(A4:E10, 3,A4:E10)=13

The average age of all trees in the database.

Page 77: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DMAX(A4:E10,"Profit",A1:A3)

The maximum profit of apple and pear trees.

Page 78: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DMAX(A4:E10,"Profit",A1:A3)

The maximum profit of apple and pear trees.

Page 79: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DMAX(A4:E10,"Profit",A1:A3)

The maximum profit of apple and pear trees.

Page 80: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DMAX(A4:E10,"Profit",A1:A3)

The maximum profit of apple and pear trees.

Page 81: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DMAX(A4:E10,"Profit",A1:A3)=105

The maximum profit of apple and pear trees.

Page 82: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DMIN(A4:E10,"Profit",A1:B2)

The minimum profit of apple trees over 10 in height.

Page 83: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DMIN(A4:E10,"Profit",A1:B2)

The minimum profit of apple trees over 10 in height.

Page 84: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DMIN(A4:E10,"Profit",A1:B2)

The minimum profit of apple trees over 10 in height.

Page 85: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DMIN(A4:E10,"Profit",A1:B2)

The minimum profit of apple trees over 10 in height.

Page 86: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DMIN(A4:E10,"Profit",A1:B2)=75

The minimum profit of apple trees over 10 in height.

Page 87: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DCOUNT(A4:E10,"Age",A1:F2)

This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Age fields in those records contain numbers.

Page 88: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DCOUNT(A4:E10,"Age",A1:F2)

This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Age fields in those records contain numbers.

Page 89: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DCOUNT(A4:E10,"Age",A1:F2)

This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Age fields in those records contain numbers.

Page 90: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DCOUNT(A4:E10,"Age",A1:F2)

This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Age fields in those records contain numbers.

Page 91: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DCOUNT(A4:E10,"Age",A1:F2)=1

This function looks at the records of apple trees between a height of 10 and 16 and counts how many of the Age fields in those records contain numbers.

Page 92: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DSUM(A4:E10,"Profit",A1:A2)

The total profit from apple trees.

Page 93: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DSUM(A4:E10,"Profit",A1:A2)

The minimum profit of apple trees over 10 in height.

Page 94: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DSUM(A4:E10,"Profit",A1:A2)

The minimum profit of apple trees over 10 in height.

Page 95: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DSUM(A4:E10,"Profit",A1:A2)

The minimum profit of apple trees over 10 in height.

Page 96: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Database Functions

=DSUM(A4:E10,"Profit",A1:A2)=225

The minimum profit of apple trees over 10 in height.

Page 97: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

VLOOKUP=VLOOKUP(lookup_value, table_array, col_index_num,

[range_lookup])

INDEX=INDEX(array,row_num,[column_num])

MATCH=MATCH(lookup_value, lookup_array,

[match_type])

Page 98: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Lookup Functions

Syntax:=VLOOKUP(lookup_value,table_array,col_index_num,[range_lookup])

Arguments:•lookup_value Required

The value to search in the first column of the table or range.•table_array Required

The range of cells that contains the data. •col_index_num Required

The column number in the table_array argument from which the matching value must be returned.

•range_lookup OptionalA logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match.

Page 99: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Lookup Functions

Description:•Searches the first column of a range of cells, and then returns a value from any cell on the same row of the range.

Remarks:•The values in the first column of table_array can be text, numbers, or logical values.

•Uppercase and lowercase text are equivalent.

•If range_lookup is TRUE, the values in the first column of table_array must be placed in ascending order.

•If range_lookup is TRUE or omitted, an approximate match is returned.

•If range_lookup is FALSE, an exact match will be attempted.

Page 100: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Lookup Functions

Errors:#VALUE! – If col_index_num is less than 1

#REF! – If col_index_num is greater than the number of columns in the table_array

#N/A – If range_lookup is FALSE and an exact match cannot be found

#N/A – If lookup_value is less than the smallest value in the first column of table_array

Page 101: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(1) =VLOOKUP(C11*2, $B$8:$G$24, G18/E6, TRUE)

(2) =VLOOKUP(IF(MIN(B6:F18)<>MAX(D3:G5), 38, 83), E11:G22,3)

(3) =VLOOKUP(MAX(B3:G4)*B6/G3, $C$8:$F$20, 3, FALSE)

(4) =VLOOKUP(C3*E3, C8:F20, IF(SUM(B3:B24)>SUM(F3:F24), 2, 4))

(5) =VLOOKUP(LARGE(D10:G17,4), $C$8:$F$20, 5, FALSE)

Page 102: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(1) =VLOOKUP(C11*2, $B$8:$G$24, G18/E6, TRUE)

Page 103: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(1) =VLOOKUP(C11*2, $B$8:$G$24, G18/E6, TRUE)

=VLOOKUP(44*2, $B$8:$G$24, G18/E6, TRUE)

Page 104: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(1) =VLOOKUP(C11*2, $B$8:$G$24, G18/E6, TRUE)

=VLOOKUP(44*2, $B$8:$G$24, G18/E6, TRUE)

=VLOOKUP(88, $B$8:$G$24, G18/E6, TRUE)

Page 105: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(1) =VLOOKUP(C11*2, $B$8:$G$24, G18/E6, TRUE)

=VLOOKUP(44*2, $B$8:$G$24, G18/E6, TRUE)

=VLOOKUP(88, $B$8:$G$24, G18/E6, TRUE)

Page 106: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(1) =VLOOKUP(C11*2, $B$8:$G$24, G18/E6, TRUE)

=VLOOKUP(44*2, $B$8:$G$24, G18/E6, TRUE)

=VLOOKUP(88, $B$8:$G$24, G18/E6, TRUE)

=VLOOKUP(88, $B$8:$G$24, 66/E6, TRUE)

Page 107: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(1) =VLOOKUP(C11*2, $B$8:$G$24, G18/E6, TRUE)

=VLOOKUP(44*2, $B$8:$G$24, G18/E6, TRUE)

=VLOOKUP(88, $B$8:$G$24, G18/E6, TRUE)

=VLOOKUP(88, $B$8:$G$24, 66/E6, TRUE)

=VLOOKUP(88, $B$8:$G$24, 66/11, TRUE)

Page 108: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(1) =VLOOKUP(C11*2, $B$8:$G$24, G18/E6, TRUE)

=VLOOKUP(44*2, $B$8:$G$24, G18/E6, TRUE)

=VLOOKUP(88, $B$8:$G$24, G18/E6, TRUE)

=VLOOKUP(88, $B$8:$G$24, 66/E6, TRUE)

=VLOOKUP(88, $B$8:$G$24, 66/11, TRUE)

=VLOOKUP(88, $B$8:$G$24, 6, TRUE)

Page 109: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(2) =VLOOKUP(IF(MIN(B6:F18)<>MAX(D3:G5), 38, 83), E11:G22,3)

Page 110: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(2) =VLOOKUP(IF(MIN(B6:F18)<>MAX(D3:G5), 38, 83), E11:G22,3)

=VLOOKUP(IF(11<>MAX(D3:G5), 38, 83), E11:G22,3)

Page 111: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(2) =VLOOKUP(IF(MIN(B6:F18)<>MAX(D3:G5), 38, 83), E11:G22,3)

=VLOOKUP(IF(11<>MAX(D3:G5), 38, 83), E11:G22,3)

=VLOOKUP(IF(11<>11, 38, 83), E11:G22,3)

Page 112: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(2) =VLOOKUP(IF(MIN(B6:F18)<>MAX(D3:G5), 38, 83), E11:G22,3)

=VLOOKUP(IF(11<>MAX(D3:G5), 38, 83), E11:G22,3)

=VLOOKUP(IF(11<>11), 38, 83), E11:G22,3)

=VLOOKUP(IF(FALSE, 38, 83), E11:G22,3)

Page 113: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(2) =VLOOKUP(IF(MIN(B6:F18)<>MAX(D3:G5), 38, 83), E11:G22,3)

=VLOOKUP(IF(11<>MAX(D3:G5), 38, 83), E11:G22,3)

=VLOOKUP(IF(11<>11), 38, 83), E11:G22,3)

=VLOOKUP(IF(FALSE, 38, 83), E11:G22,3)

=VLOOKUP(83, E11:G22,3)

Page 114: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(2) =VLOOKUP(IF(MIN(B6:F18)<>MAX(D3:G5), 38, 83), E11:G22,3)

=VLOOKUP(IF(11<>MAX(D3:G5), 38, 83), E11:G22,3)

=VLOOKUP(IF(11<>11), 38, 83), E11:G22,3)

=VLOOKUP(IF(FALSE, 38, 83), E11:G22,3)

=VLOOKUP(83, E11:G22,3)

Page 115: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(3) =VLOOKUP(MAX(B3:G4)*B6/G3, $C$8:$F$20, 3, FALSE)

Page 116: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(3) =VLOOKUP(MAX(B3:G4)*B6/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(17*B6/G3, $C$8:$F$20, 3, FALSE)

Page 117: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(3) =VLOOKUP(MAX(B3:G4)*B6/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(17*B6/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(17*18/G3, $C$8:$F$20, 3, FALSE)

Page 118: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(3) =VLOOKUP(MAX(B3:G4)*B6/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(17*B6/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(17*18/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(306/G3, $C$8:$F$20, 3, FALSE)

Page 119: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(3) =VLOOKUP(MAX(B3:G4)*B6/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(17*B6/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(17*18/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(306/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(306/6, $C$8:$F$20, 3, FALSE)

Page 120: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(3) =VLOOKUP(MAX(B3:G4)*B6/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(17*B6/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(17*18/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(306/6, $C$8:$F$20, 3, FALSE)

=VLOOKUP(51, $C$8:$F$20, 3, FALSE)

Page 121: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(3) =VLOOKUP(MAX(B3:G4)*B6/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(17*B6/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(17*18/G3, $C$8:$F$20, 3, FALSE)

=VLOOKUP(306/6, $C$8:$F$20, 3, FALSE)

=VLOOKUP(51, $C$8:$F$20, 3, FALSE)

#N/A

Page 122: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(4) =VLOOKUP(C3*E3, C8:F20, IF(SUM(B3:B24)>SUM(F3:F24), 2, 4))

Page 123: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(4) =VLOOKUP(C3*E3, C8:F20, IF(SUM(B3:B24)>SUM(F3:F24), 2, 4))

=VLOOKUP(11*E3, C8:F20, IF(SUM(B3:B24)>SUM(F3:F24), 2, 4))

Page 124: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(4) =VLOOKUP(C3*E3, C8:F20, IF(SUM(B3:B24)>SUM(F3:F24), 2, 4))

=VLOOKUP(11*E3, C8:F20, IF(SUM(B3:B24)>SUM(F3:F24), 2, 4))

=VLOOKUP(11*5, C8:F20, IF(SUM(B3:B24)>SUM(F3:F24), 2, 4))

Page 125: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(4) =VLOOKUP(C3*E3, C8:F20, IF(SUM(B3:B24)>SUM(F3:F24), 2, 4))

=VLOOKUP(11*E3, C8:F20, IF(SUM(B3:B24)>SUM(F3:F24), 2, 4))

=VLOOKUP(11*5, C8:F20, IF(SUM(B3:B24)>SUM(F3:F24), 2, 4))

=VLOOKUP(55, C8:F20, IF(1000>SUM(F3:F24), 2, 4))

Page 126: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(4) =VLOOKUP(C3*E3, C8:F20, IF(SUM(B3:B24)>SUM(F3:F24), 2, 4))

=VLOOKUP(11*E3, C8:F20, IF(SUM(B3:B24)>SUM(F3:F24), 2, 4))

=VLOOKUP(11*5, C8:F20, IF(SUM(B3:B24)>SUM(F3:F24), 2, 4))

=VLOOKUP(55, C8:F20, IF(1000>SUM(F3:F24), 2, 4))

=VLOOKUP(55, C8:F20, IF(1000>924, 2, 4))

Page 127: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(4) =VLOOKUP(C3*E3, C8:F20, IF(SUM(B3:B24)>SUM(F3:F24), 2, 4))

=VLOOKUP(55, C8:F20, IF(1000>924, 2, 4))

=VLOOKUP(55, C8:F20, IF(TRUE, 2, 4))

=VLOOKUP(55, C8:F20, 2)

Page 128: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(4) =VLOOKUP(C3*E3, C8:F20, IF(SUM(B3:B24)>SUM(F3:F24), 2, 4))

=VLOOKUP(55, C8:F20, 2)

Page 129: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(5) =VLOOKUP(LARGE(D10:G17,4), $C$8:$F$20, 5, FALSE)

Page 130: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(5) =VLOOKUP(LARGE(D10:G17,4), $C$8:$F$20, 5, FALSE)

=VLOOKUP(58, $C$8:$F$20, 5, FALSE)

Page 131: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

(5) =VLOOKUP(LARGE(D10:G17,4), $C$8:$F$20, 5, FALSE)

=VLOOKUP(58, $C$8:$F$20, 5, FALSE)

#REF!

Page 132: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Lookup Functions

Syntax:= HLOOKUP(lookup_value,table_array,row_index_num,range_lookup)

Arguments:•lookup_value Required

The value to search in the first row of the table or range.•table_array Required

The range of cells that contains the data. •row_index_num Required

The row number in table_array from which the matching value will be returned

range_lookup OptionalA logical value that specifies whether you want HLOOKUP to find an exact match or an approximate match.

Page 133: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Lookup Functions

Description:• Searches for a value in the top row of a table or an array of values, and then returns a value in the same column from a row you specify in the table or array.

Remarks:• If HLOOKUP can't find lookup_value, and range_lookup is TRUE, it uses the largest value that is less than lookup_value.

• If lookup_value is smaller than the smallest value in the first row of table_array, HLOOKUP returns the #N/A error value.

Page 134: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Lookup Functions

Errors:#VALUE! – If row_index_num is less than 1

#REF! – If row_index_num is greater than the number of rows in the table_array

#N/A – If range_lookup is FALSE and an exact match cannot be found

#N/A – If lookup_value is less than the smallest value in the first row of table_array

Page 135: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

  A B C1 Axles Bearing Bolts2 4 4 93 5 7 104 6 8 11

FormulaDescription (Result)Looks up Axles in row 1, and returns the value from row 2 that's in the same column. (4)=HLOOKUP("Axles",A1:C4,2,TRUE)

=HLOOKUP("Bearings",A1:C4,3,FALSE)Looks up Bearings in row 1, and returns the value from row 3 that's in the same column. (7)

=HLOOKUP("B",A1:C4,3,TRUE)Looks up B in row 1, and returns the value from row 3 that's in the same column. Because B is not an exact match, the next largest value that is less than B is used: Axles. (5)

=HLOOKUP("Bolts",A1:C4,4)Looks up Bolts in row 1, and returns the value from row 4 that's in the same column. (11)

Page 136: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Lookup Functions

Syntax:

=INDEX(array,row_num,[column_num])

Arguments:•array Required

A range of cells or an array constant.

•row_num OptionalSelects the row in array from which to return a value.

oIf row_num is omitted, column_num is required.

•column_num OptionalSelects the column in array from which to return a value.

oIf column_num is omitted, row_num is required.

Page 137: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Lookup Functions

Description:•Returns the value of an element in a table or an array, selected by the row and column number indexes.

Remarks:• If both the row_num and column_num arguments are used, INDEX returns the value in the cell at the intersection of row_num and column_num.

Errors:#REF! – If row_num and column_num do not point to a cell within array

Page 138: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Lookup Functions

Syntax:

=MATCH(lookup_value, lookup_array, [match_type])

Arguments:•lookup_value Required

The value that you want to match in lookup_array.

•lookup_array RequiredThe range of cells being searched.

•match_type OptionalSpecifies how Excel matches lookup_value with values in lookup_array.

oThe number -1, 0, or 1

Page 139: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Lookup Functions

Description:•Searches for a specified item in a range of cells, and then returns the relative position of that item in the range

Remarks:•The lookup_value argument can be a value (number, text, or logical value) or a cell reference to a number, text, or logical value.

•MATCH returns the position of the matched value within lookup_array, not the value itself.

•MATCH does not distinguish between uppercase and lowercase letters when matching text values.

Errors:#N/A – If MATCH is unsuccessful in finding a match

Page 140: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Lookup Functions

Value

Behavior Restrictions

1

MATCH finds the largest value that is less than or equal to lookup_value.

The values in the lookup_array argument must be placed in ascending order.

0MATCH finds the first value that is exactly equal to lookup_value.

None

-1

MATCH finds the smallest value that is greater than or equal to lookup_value.

The values in the lookup_array argument must be placed in descending order.

Default

Page 141: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Lookup Functions

Page 142: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate

Microsoft® Excel® Lookup Functions

Syntax:

=IFERROR(value,value_if_error)

Arguments:•value Required

 is the argument that is checked for an error.

•value_if_error Requiredis the value to return if the formula evaluates to an error. The following error types are evaluated: #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!

Page 143: MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate