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 300 Test 1 Review- EXCEL REACH Computer Resource Center

2 Excel Functions Boolean Values IF and Nested IF ISBlank and IS Number
ROUND

3 Boolean values In computer science, Boolean data has two values: TRUE or FALSE. Boolean Values and Excel's Logical Functions Boolean values are used by Excel's Logical Functions, such as the IF function, AND function, and the OR function. For example, the first argument of the IF function is required to return a Boolean value as an answer

4 Boolean values That is to say the argument must always be a condition that is either TRUE or FALSE. If TRUE the function will perform one action. If FALSE the function will perform a different action. Sometimes, Boolean values are represented by the numbers " 1 " and " 0 ", with TRUE equaling 1 and FALSE equaling 0.

5 Boolean values Even though they can be read as numbers, many of Excel's functions, such as the SUM function, the MAX function and the MIN function, still ignore Boolean values. For example, the SUM function shown in the image above returns an answer of zero since it considers cells B1 to B4 to be blank.

6 =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.

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

8 The IF function Description: Remarks: Errors:
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

9 The IF function value_if_true [value_if_false]

10 Nested IF in Excel A nested IF statement says something like...
"If the answer is yes, do this. If the answer is no do this or this (depending on...“ Syntax: IF( condition1, value_if_true, IF( condition2, value_if_true, value_if_false ))

11 Nested IF 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

12 =ROUND(number, num_digits)
The ROUND 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.

13 The ROUND function Description: Remarks: Errors:
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

14 The ROUND function

15 =COUNTIF(range, criteria)
The COUNTIF function Syntax: =COUNTIF(range, criteria) Arguments: range Required One or more cells to count, including numbers or names, arrays, or references that contain numbers. Blank and text values are ignored. criteria Required A number, expression, cell reference, or text string that defines which cells will be counted. Criteria can be expressed as 32, ">32", B4, "apples", or "32".

16 The ISBLANK and ISNUMBER Functions
Syntax ISBLANK(cell_reference) Returns TRUE logical value if the cell is blank and FALSE otherwise ISNUMBER(cell_reference) Returns TRUE logical value if the cell contains a number and FALSE otherwise

17 =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

18 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

19 The NOT function Syntax: =NOT(logical) Arguments: logical Required
A value or expression that can be evaluated to TRUE or FALSE.

20 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

21 The NOT function

22 The CONCATENATE function
Syntax: =CONCATENATE(text1, [text2],…) Arguments: Logical1 Required The first item to join. The item can be a text value, number, or cell reference. Logical2,… Optional Additional text items to join. You can have up to 255 items, up to a total of 8,192 characters

23 The CONCATENATE function
Example 1 Formula:=CONCATENATE("Stream population for ", A2, " ", A3, " is ", A4, "/mile.") What text string will you end up with? Answer: Stream population for brook trout species is 32/mile Example 2 Formula: =CONCATENATE(B2, " ", C2) Answer: Andreas Hauser


Download ppt "REACH Computer Resource Center"

Similar presentations


Ads by Google