CIS 100 Test #2 Review 1 EXCEL Functions on Test SUM, COUNT, COUNTA, MAX, MIN, MEDIAN, MODE, AVERAGE, ROUND, and IF Possibly Others http://reach.louisville.edu/tut oring/computer/cistestreviews .html 2 Absolute, Mixed and Relative For a formula being copied: If the reference is: It changes to: $A$1 (absolute $A$1 (the reference column and absolute is absolute) row) A$1 (relative column C$1 (the reference is and absolute row) mixed) $A1 (absolute column and relative row) $A3 (the reference is mixed) A1 (relative column and relative row) C3 (the reference is relative) The function Syntax: =IF(logical_test, [value_if_true], [value_if_false]) Arguments: •logical_test Required Any value or expression that can be evaluated to TRUE or FALSE. •value_if_true Optional •The value that you want to be returned if the logical_test argument evaluates to TRUE. •If logical_test evaluates to TRUE and the value_if_true argument is omitted (that is, there is only a comma following the logical_test argument), the IF function returns 0 (zero). •To display the word TRUE, use the logical value TRUE for the value_if_true argument. 4 The function Syntax: =IF(logical_test, [value_if_true], [value_if_false]) Arguments: •value_if_false Optional The value that you want to be returned if the logical_test argument evaluates to FALSE. If logical_test evaluates to FALSE and the value_if_false argument is omitted, (that is, there is no comma following the value_if_true argument), the IF function returns the logical value FALSE. If logical_test evaluates to FALSE and the value of the value_if_false argument is omitted (that is, in the IF function, there is a comma following the value_if_true argument), the IF function returns the value 0 (zero). 5 The function Description: •The IF function returns one value if a condition you specify evaluates to TRUE, and another value if that condition evaluates to FALSE. Remarks: •Up to 7 IF functions can be nested as value_if_true and value_if_false arguments to construct more elaborate tests. (2003) •Up to 64 IF functions can be nested as value_if_true and value_if_false arguments to construct more elaborate tests. (2007) •If any of the arguments to IF are arrays, every element of the array is evaluated when the IF statement is carried out. Errors: None 6 The function value_if_true [value_if_false ] 7 The function Syntax: =SUM(number1, [number2], [number3], [number4], ...) Arguments: •number1 Required The first item that you want to add. •number2, number3, number4, ... Optional The remaining items that you want to add, up to a total of 255 items. 8 The function 9 The function Syntax: =ROUND(number, num_digits) Arguments: •number Required The number that you want to round. •num_digits Required The number of digits to which you want to round the number argument. 10 The function Description: •Rounds a number to a specified number of digits. Remarks: •If num_digits is greater than 0 (zero), then number is rounded to the specified number of decimal places. •If num_digits is 0, the number is rounded to the nearest integer. •If num_digits is less than 0, the number is rounded to the left of the decimal point. Errors: None 11 The function =ROUND(-1.475,2) Rounds -1.475 to two decimal places 12 The function Syntax: =AVERAGE(number1, [number2],...) Arguments: •number1 Required The first number, cell reference, or range for which you want the average. •number2, ... Optional Additional numbers, cell references or ranges for which you want the average, up to a maximum of 255. 13 The function 14 The function Syntax: =COUNT(value1, [value2],...) Arguments: •value1 Required The first item, cell reference, or range within which you want to count numbers. •value2, ... Optional Up to 255 additional items, cell references, or ranges within which you want to count numbers. 15 The function Description: •Counts the number of cells that contain numbers, and counts numbers within the list of arguments. Remarks: •Arguments that are numbers, dates, or a text representation of numbers (for example, a number enclosed in quotation marks, such as "1") are counted. •Logical values and text representations of numbers that you type directly into the list of arguments are counted. •Arguments that are error values or text that cannot be translated into numbers are not counted. •If an argument is an array or reference, only numbers in that array or reference are counted. Empty cells, logical values, text, or error values in the array or reference are not counted. Errors: None 16 The function 17 The function Syntax: =COUNTA(value1, [value2],...) Arguments: •value1 Required The first argument representing the values that you want to count. •value2, ... Optional Additional arguments representing the values that you want to count, up to a maximum of 255 arguments. 18 The function Description: •Counts the number of cells that are not empty in a range. Remarks: •Counts cells containing any type of information, including error values and empty text ("“). •The COUNTA function does not count empty cells. Errors: None 19 The function =COUNTA(A1:A8) =7 20 The function Syntax: =MAX(number1,[number2],...) Arguments: •number1, number2, ... Required 1 to 255 numbers for which you want to find the maximum value. 21 The function 22 The function Syntax: =MIN(number1,[number2],...) Arguments: •number1, number2, ... Required 1 to 255 numbers for which you want to find the minimum value. 23 The function 24 Mean- Same as AVG Function Median-Numbers in chronological order, middle number. (If two middle numbers, average of the two) Mode- Number that occurs most frequently in set of numbers (Returns lowest of values if two or more numbers occur equally) 25 EXCEL PRACTICE Question (Excel) Consider the following five values: -3, 0, 6, 7, and 10 The arithmetic mean of these values is ____ Answer 1 3.94 4 6 None of the answers provided are correct EXCEL PRACTICE Question (Excel) Assume that cell E4 in a spreadsheet has the following formula: =AB$4 + $C44 What formula will result from copying it into cell D8? Answer =AA$4 + $C48 What is the result of evaluating the following formulas? (a) =IF(SUM(B4:B7)>=MIN(B6,C5,D4,E7),E4,"Goodbye") Hello (b) =IF(E6=MAX(C4:C8),SUM(E5:E8),IF(D4>C7,B7,D6)) Coffee (c) =IF(D4=16,SUM(B5:C6)-MAX(C5:D6),MIN(D5:E8)) -25 (d) =COUNT(C4:D8) 8 (e) =(AVERAGE(B4:B6)-2)/C6 1 What is the result of evaluating the following formula? =IF(MAX(D5:D9)>MIN(C5:C9),"D5",D7) A. 9 B. 16 C. D5 D. D7 E. None of the answers provided is correct (a) Write a formula to determine the highest legal speed limit listed in Column C. (b) Write a formula to count the number of drivers listed in the table. (c) Write a formula to calculate the average speed of all drivers listed in the table. (d) What formula should be entered in cell E5 to show (6 points): • "No Fine" if the driver was not speeding, • A fine of $50 plus $5 for each MPH over the stated speed limit otherwise. (Note: Your formula will need to work properly for all of the other drivers when copied down column E.) (a) Write a formula to determine the highest legal speed limit listed in Column C. =MAX(C5:C9) (b) Write a formula to count the number of drivers listed in the table. =COUNTA(B5:B9) (c) Write a formula to calculate the average speed of all drivers listed in the table. =AVERAGE(D5:D9) (d) What formula should be entered in cell E5 to show (6 points): • "No Fine" if the driver was not speeding, • A fine of $50 plus $5 for each MPH over the stated speed limit otherwise. (Note: Your formula will need to work properly for all of the other drivers when copied down column E.) =IF(D5<=C5, “No Fine”, 50+5*(D5-C5))