Presentation is loading. Please wait.

Presentation is loading. Please wait.

REACH-CRC © 2012 REACH-CRC. All Rights Reserved.FALL 2012.

Similar presentations


Presentation on theme: "REACH-CRC © 2012 REACH-CRC. All Rights Reserved.FALL 2012."— Presentation transcript:

1 REACH-CRC © 2012 REACH-CRC. All Rights Reserved.FALL 2012

2 Lookup Functions VLOOKUP HLOOKUP INDEX-MATCH Information Functions ISERROR ISNA Database Functions DSUM DMIN DMAX DCOUNT DAVERAGE

3 VLOOKUP =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]) HLOOKUP =HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

4 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 Optional  A logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match.

5 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 exact or approximate match is returned. If range_lookup is FALSE, an exact match will be attempted, sorting not required

6 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

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

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

9 (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)

10 (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)

11 (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)

12 (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)

13 (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)

14 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 Optional  A logical value that specifies whether you want HLOOKUP to find an exact match or an approximate match.

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

16 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

17 ABC 1AxlesBearingBolts 2449 35710 46811 Formula Description (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)

18 ISERROR =ISERROR(value) ISNA =ISNA(value)

19 Microsoft ® Excel ® Information Functions Syntax: =ISERROR(value) Arguments: value Required  The value that you want tested

20 Microsoft ® Excel ® Information Functions Description: Returns TRUE if value refers to any error value: #N/A#VALUE!#REF!#DIV/0! #NUM!#NAME?#NULL! Remarks: The value arguments of the IS functions are not converted Any numeric values that are enclosed in double quotation marks are treated as text. The IS functions are useful in formulas for testing the outcome of a calculation Errors: None

21 Microsoft ® Excel ® Information Functions Syntax: =ISNA(value) Arguments: value Required  The value that you want tested

22 Microsoft ® Excel ® Information Functions Description: Returns TRUE if value refers to the #N/A (value not available) error value. Remarks: The value arguments of the IS functions are not converted Any numeric values that are enclosed in double quotation marks are treated as text. The IS functions are useful in formulas for testing the outcome of a calculation Errors: None

23 Microsoft ® Excel ® Information Functions

24

25 Lookup Functions

26 Microsoft ® Excel ® Lookup Functions Syntax: =INDEX(array,row_num,[column_num]) Arguments: array Required  A range of cells or an array constant. row_num Optional  Selects the row in array from which to return a value. o If row_num is omitted, column_num is required. column_num Optional  Selects the column in array from which to return a value. o If column_num is omitted, row_num is required.

27 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

28 Microsoft ® Excel ® Lookup Functions

29 Syntax: =MATCH(lookup_value, lookup_array, [match_type]) Arguments: lookup_value Required  The value that you want to match in lookup_array. lookup_array Required  The range of cells being searched. match_type Optional  Specifies how Excel matches lookup_value with values in lookup_array. o The number -1, 0, or 1

30 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

31 Microsoft ® Excel ® Lookup Functions ValueBehaviorRestrictions 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. 0 MATCH finds the first value that is exactly equal to lookup_value. None 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

32 Microsoft ® Excel ® Lookup Functions

33 Microsoft ® Excel ® Information Functions Description: A combination of INDEX and MATCH can be used as a form of table lookup. It is similar to the VLOOKUP and HLOOKUP function but more flexible. It is usually of the form: =INDEX(some_array, MATCH(some_value, some_array, criteria), [MATCH(some_value, some_array, criteria)])

34 Microsoft ® Excel ® Information Functions =INDEX(A1:B5,MATCH("Oranges",A1:A5,0),MATCH ("Count",A1:B1,0)) OR =INDEX(B1:B5, MATCH("Oranges",A1:A5,0)) How would you find the count of oranges using INDEX and MATCH?

35 Database Functions

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

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

38 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

39 Microsoft ® Excel ® Database Functions =DAVERAGE(A4:E10,"Yield",A1:B2) The average yield of apple trees over 10 feet in height.

40 Microsoft ® Excel ® Database Functions =DAVERAGE(A4:E10,"Yield",A1:B2) The average yield of apple trees over 10 feet in height.

41 Microsoft ® Excel ® Database Functions =DAVERAGE(A4:E10,"Yield",A1:B2) The average yield of apple trees over 10 feet in height.

42 Microsoft ® Excel ® Database Functions =DAVERAGE(A4:E10,"Yield",A1:B2) The average yield of apple trees over 10 feet in height.

43 Microsoft ® Excel ® Database Functions =DAVERAGE(A4:E10,"Yield",A1:B2) =12 The average yield of apple trees over 10 feet in height.

44 Microsoft ® Excel ® Database Functions =DAVERAGE(A4:E10,3,A4:E10) The average age of all trees in the database.

45 Microsoft ® Excel ® Database Functions =DAVERAGE(A4:E10, 3,A4:E10) The average age of all trees in the database.

46 Microsoft ® Excel ® Database Functions =DAVERAGE(A4:E10, 3,A4:E10) The average age of all trees in the database.

47 Microsoft ® Excel ® Database Functions =DAVERAGE(A4:E10, 3,A4:E10) The average age of all trees in the database.

48 Microsoft ® Excel ® Database Functions =DAVERAGE(A4:E10, 3,A4:E10) =13 The average age of all trees in the database.

49 Microsoft ® Excel ® Database Functions =DMAX(A4:E10,"Profit",A1:A3) The maximum profit of apple and pear trees.

50 Microsoft ® Excel ® Database Functions =DMAX(A4:E10,"Profit",A1:A3) The maximum profit of apple and pear trees.

51 Microsoft ® Excel ® Database Functions =DMAX(A4:E10,"Profit",A1:A3) The maximum profit of apple and pear trees.

52 Microsoft ® Excel ® Database Functions =DMAX(A4:E10,"Profit",A1:A3) The maximum profit of apple and pear trees.

53 Microsoft ® Excel ® Database Functions =DMAX(A4:E10,"Profit",A1:A3) =105 The maximum profit of apple and pear trees.

54 Microsoft ® Excel ® Database Functions =DMIN(A4:E10,"Profit",A1:B2) The minimum profit of apple trees over 10 in height.

55 Microsoft ® Excel ® Database Functions =DMIN(A4:E10,"Profit",A1:B2) The minimum profit of apple trees over 10 in height.

56 Microsoft ® Excel ® Database Functions =DMIN(A4:E10,"Profit",A1:B2) The minimum profit of apple trees over 10 in height.

57 Microsoft ® Excel ® Database Functions =DMIN(A4:E10,"Profit",A1:B2) The minimum profit of apple trees over 10 in height.

58 Microsoft ® Excel ® Database Functions =DMIN(A4:E10,"Profit",A1:B2) =75 The minimum profit of apple trees over 10 in height.

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

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

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

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

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

64 Microsoft ® Excel ® Database Functions =DSUM(A4:E10,"Profit",A1:A2) The total profit from apple trees.

65 Microsoft ® Excel ® Database Functions =DSUM(A4:E10,"Profit",A1:A2) The minimum profit of apple trees over 10 in height.

66 Microsoft ® Excel ® Database Functions =DSUM(A4:E10,"Profit",A1:A2) The minimum profit of apple trees over 10 in height.

67 Microsoft ® Excel ® Database Functions =DSUM(A4:E10,"Profit",A1:A2) The minimum profit of apple trees over 10 in height.

68 Microsoft ® Excel ® Database Functions =DSUM(A4:E10,"Profit",A1:A2) =225 The minimum profit of apple trees over 10 in height.

69  Access creates __________ databases ◦ Data is stored in various separate tables by subject or task ◦ The data is related and can be brought together in ways that you specify

70  _______ are the most important parts of a database.  ______ store your data in rows and columns. All databases contain one or more of these.  _______ retrieve and process your data. They can combine data from different tables, update your data, and perform calculations on your data.  _____ control data entry and data views. They provide visual cues that make data easier to work with.  _______ summarize and print your data. They turn the data in your tables and queries into documents for communicating ideas.

71  To distinguish one record from another, tables can contain a primary key field. ◦ The primary key is an identifier—such as a part number, a product code, or an employee ID—that's unique to each record. ◦ The primary key should be a piece of information that won't change frequently. ◦ When tables relate, the primary key of one table becomes a foreign key of the other table.


Download ppt "REACH-CRC © 2012 REACH-CRC. All Rights Reserved.FALL 2012."

Similar presentations


Ads by Google