Presentation is loading. Please wait.

Presentation is loading. Please wait.

REACH Computer Resource Center

Similar presentations


Presentation on theme: "REACH Computer Resource Center"— Presentation transcript:

1 REACH Computer Resource Center
CIS 100 Test #3 Review REACH Computer Resource Center

2 PowerPoint Is currently available on the REACH website: er/cistestreviews.html

3 =AND(logical1, [logical2], ...)
The AND function Syntax: =AND(logical1, [logical2], ...) Arguments: logical1 Required The first condition that you want to test that can evaluate to either TRUE or FALSE. logical2, ... Optional Additional conditions that you want to test that can evaluate to either TRUE or FALSE, up to a maximum of 255 conditions. Microsoft® Excel® Logical Functions

4 The AND function Description: Remarks: Errors:
Returns FALSE if one or more arguments is FALSE Otherwise, all arguments must evaluate TRUE Remarks: Arguments must evaluate to logical values Arguments must be arrays or references that contain logical values Text and empty cells are ignored in arrays or references Errors: #VALUE – If no logical values exist in a specified range Microsoft® Excel® Logical Functions

5 The AND function – EXAMPLE 1
Microsoft® Excel® Logical Functions

6 The AND function – EXAMPLE 2
Microsoft® Excel® Logical Functions

7 =OR(logical1, [logical2], ...)
The OR function Syntax: =OR(logical1, [logical2], ...) Arguments: logical1 Required The first condition that you want to test that can evaluate to either TRUE or FALSE. logical2, ... Optional Additional conditions that you want to test that can evaluate to either TRUE or FALSE, up to a maximum of 255 conditions. Microsoft® Excel® Logical Functions

8 The OR function Description: Remarks: Errors:
Returns TRUE if one or more arguments is TRUE Otherwise, all arguments must evaluate FALSE Remarks: Arguments must evaluate to logical values Arguments must be arrays or references that contain logical values Text and empty cells are ignored in arrays or references Errors: #VALUE – If no logical values exist in a specified range Microsoft® Excel® Logical Functions

9 The OR function Microsoft® Excel® Logical Functions

10 The NOT function Syntax: =NOT(logical) Arguments: logical Required
A value or expression that can be evaluated to TRUE or FALSE. Microsoft® Excel® Logical Functions

11 The NOT function Description: Remarks: Errors:
Reverses the value of its argument. Remarks: If logical is FALSE, NOT returns TRUE if logical is TRUE, NOT returns FALSE Errors: None Microsoft® Excel® Logical Functions

12 The NOT function Microsoft® Excel® Logical Functions

13 AND/OR/NOT Follow the Parentheses as a Guide!
If several nested functions exist, try starting in the middle, working your way out, then read from left to right. (Assume A4=50) NOT(AND(A4>50, A4<70)) =True

14 =IF(logical_test, [value_if_true], [value_if_false])
The IF 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. Microsoft® Excel® Logical Functions

15 =IF(logical_test, [value_if_true], [value_if_false])
The IF 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. Microsoft® Excel® Logical Functions

16 =IF(logical_test, [value_if_true], [value_if_false])
The IF 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). Microsoft® Excel® Logical Functions

17 The LARGE function Syntax: =LARGE(array,k) Arguments: array Required
The array or range of data for which you want to determine the k-th largest value. k Required The position (from the largest) in the array or cell range of data to return. Microsoft® Excel® Statistical Functions

18 The LARGE function Description: Remarks: Errors:
Returns the k-th largest value in a data set. Remarks: If n is the number of data points in a range, then LARGE(array,1) returns the largest value. If n is the number of data points in a range, then LARGE(array,n) returns the smallest value. Errors: #NUM! – If array is empty #NUM! – If k ≤ 0 #NUM! – If k is greater than the number of data points Microsoft® Excel® Statistical Functions

19 3rd largest number in the numbers in columns A and B
=LARGE(array,k)

20 3rd largest number in the numbers in columns A and B
=LARGE(array,k) =LARGE(A2:B6

21 3rd largest number in the numbers in columns A and B
=LARGE(array,k) =LARGE(A2:B6,3)

22 3rd largest number in the numbers in columns A and B
List the numbers in descending order: 7 6 5 4 3 2 =LARGE(array,k) =LARGE(A2:B6,3) =5

23 7th largest number in the numbers in columns A and B
=LARGE(array,k)

24 7th largest number in the numbers in columns A and B
=LARGE(array,k) =LARGE(A2:B6

25 7th largest number in the numbers in columns A and B
=LARGE(array,k) =LARGE(A2:B6,7)

26 7th largest number in the numbers in columns A and B
List the numbers in descending order: 7 6 5 4 3 2 =LARGE(array,k) =LARGE(A2:B6,7)

27 7th largest number in the numbers in columns A and B
List the numbers in descending order: 7 6 5 4 3 2 =LARGE(array,k) =LARGE(A2:B6,7) =4

28 The SMALL function Syntax: =SMALL(array,k) Arguments: array Required
The array or range of data for which you want to determine the k-th smallest value. k Required The position (from the smallest) in the array or cell range of data to return. Microsoft® Excel® Statistical Functions

29 The SMALL function Description: Remarks: Errors:
Returns the k-th smallest value in a data set. Remarks: If n is the number of data points in a range, then SMALL(array,1) returns the smallest value. If n is the number of data points in a range, then SMALL(array,n) returns the largest value. Errors: #NUM! – If array is empty #NUM! – If k ≤ 0 #NUM! – If k is greater than the number of data points Microsoft® Excel® Statistical Functions

30 4th smallest number in first column
=SMALL(array,k)

31 4th smallest number in first column
=SMALL(array,k) =SMALL(A2:A10

32 4th smallest number in first column
List the numbers in ascending order: 2 3 4 5 6 7 =SMALL(array,k) =SMALL(A2:A10,4)

33 4th smallest number in first column
List the numbers in ascending order: 2 3 4 5 6 7 =SMALL(array,k) =SMALL(A2:A10,4) =4

34 2nd smallest number in second column
=SMALL(array,k) =SMALL(B2:B10

35 2nd smallest number in second column
List the numbers in ascending order: 1 3 4 7 8 12 23 54 =SMALL(array,k) =SMALL(B2:B10,2)

36 2nd smallest number in second column
List the numbers in ascending order: 1 3 4 7 8 12 23 54 =SMALL(array,k) =SMALL(B2:B10,2) =3

37 Sorting and Filtering Sorting Filtering
You can sort data by text (A to Z or Z to A), numbers (smallest to largest or largest to smallest), and dates and times (oldest to newest and newest to oldest) in one or more columns.  Filtering Filtered data displays only the rows that meet criteria that you specify and hides rows that you do not want displayed. 

38 Custom Sorting You can create a custom list to define your own sorting order if you aren’t able sort data in the order you need.

39 Things to Remember…. If the question asks for the 2nd, 3rd, 4th…. Biggest or smallest, what function? Rounding to the nearest dollar? If a condition requires “Any” or “All”, what function will you most likely use? If the questions says your answer “must be copied down” what is that referring to? When nesting an IF statement with AND/OR/NOT, which goes first? Be careful: Is the questions asking for a formula or the actual answer?

40 Practice Question Question (Excel) A suburban gas company gives a discount on propane heating fuel to residential customers based on the quantity purchased. Write a formula which calculates the correct price to charge a customer based on the following conditions: · no discount (zero dollars off the total amount due) if the customer purchases less than 500 gallons of propane · a five percent discount on all fuel purchased if the customer buys less than 2,000 gallons of propane · a ten percent discount on all fuel purchased if the customer buys 2,000 gallons or more of propane Assume that cell A1 shows the total quantity (in gallons) of propane purchased and cell B1 is the price per gallon. The formula should calculate the total amount that the customer should pay, after discount (if any) has been applied. Answer =IF(A1<500,A1*B1,IF(A1<2000,A1*B1*.95,A1*B1*.90)) =IF(A1<500, A1*B1, IF(A1<2000, A1*B1*.95, A1*B1*.90)) =A1*IF(A1<500,B1,IF(A1<2000,B1*0.95,B1*0.90))

41 Practice Question Question (Excel) Review the accompanying workheet image containing employee information and then provide an answer in the blank space below. Salespeople who have been employed for more than six years and have annual sales of more than $22,000 are to be assigned a job level code of 2. All other employees should be assigned a job level code of 1. Without using a nested IF statement, create a formula in cell E2 that will assign an appropriate job level for Linda. The formula must then be copied down the entire column so that it will work for all of the other employees. Answer =IF(AND(C2>22000,D2>6),2,1)

42 Practice Question Question (Excel) Carefully examine the accompanying worksheet image. Airline passengers may have to pay a separate fee for checked bags at the time they obtain a boarding pass for their initial flight. If cell A1 contains the number of checked bags, provide a formula using only the cell references in the accompanying table that will correctly determine any baggage handling fee(s) that passengers must pay for their luggage. Note: The fee for the second bag is in addition to that charged for the first piece of checked luggage. Answer =IF(A1=B4,C4,IF(A1=B5,C4+C5,C3))

43 Practice Question Question (Excel) What value is returned in a worksheet when the following formula is evaluated? =OR(25 < 24, MIN(1, 10) < 2, 3 <=  2 + 1) Answer   TRUE FALSE   numeric   error None of the answers provided are correct

44 None of the answers provided is correct
Question (Excel) Open the attached template file and examine the data closely. What would be the result of the following Excel formula? =IF(LARGE(D5:D9, 2) < SMALL(C5:C9, 2), "D5", D7) Answer   55   65   D5   D7   None of the answers provided is correct

45 Practice Question What is the result of evaluating the following formulas? (a) =IF(AND(6>3,3>8,2>7),"Access","Excel") Excel (b) =IF(OR(1>3,8>2),"yes",5) Yes (c) =IF(OR(AND(4>2,2>3),OR(8>7,4>5)),7,9) 7 (d) =IF(AND(6>3,4>7),IF(5>2,8,7),IF(5>3,3,9)) 3

46 Practice Question A) $545,000 B) 82 C) 1862
Note: Each of your answers must be expressed as a positive whole number. A) Sort by Area (alphabetically) then by List Price in descending order. What is the list price of the most expensive home in the N. County? B) How many single family homes are for sale? C) Sort by Area (reverse alphabetical) then by List Price (large to small). Filter to show only Single Family homes with a pool. What is the Square Footage of the home at the bottom of the list? A) $545,000 B) 82 C) 1862


Download ppt "REACH Computer Resource Center"

Similar presentations


Ads by Google