CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

94
© 2010 REACH All Rights Reserved. Microsoft Excel Logical Functions Mathematical Functions Information Function

description

Cell Referencing Reference (Description)Changes to $A$1 (absolute column and absolute row)$A$1 A$1 (relative column and absolute row)C$1 $A1 (absolute column and relative row)$A3 A1 (relative column and relative row)C3

Transcript of CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

Page 1: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

Microsoft Excel

• Logical Functions• Mathematical Functions• Information Function

Page 2: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

Cell Referencing

Reference (Description) Changes to $A$1 (absolute column and absolute row)

$A$1

A$1 (relative column and absolute row) C$1

$A1 (absolute column and relative row) $A3

A1 (relative column and relative row) C3

Page 3: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

Microsoft Excel Logical Functions

AND=AND(logical1, [logical2], ...)

OR=OR(logical1, [logical2], ...)

NOT=NOT(logical)

IF=IF(logical_test, [value_if_true], [value_if_false])

Page 4: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The AND function

Microsoft® Excel® Logical Functions

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.

Page 5: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The AND function

Microsoft® Excel® Logical Functions

Description:• 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

Page 6: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The AND function – EXAMPLE 1

Microsoft® Excel® Logical Functions

Page 7: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The AND function – EXAMPLE 2

Microsoft® Excel® Logical Functions

Q. Find which conferences had at least a 10% increase from 2010 to 2011. Use the AND function.

A. =AND(C2>B2, ((C2-B2)/B2)>=0.1), etc.

Page 8: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The OR function

Microsoft® Excel® Logical Functions

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.

Page 9: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The OR function

Microsoft® Excel® Logical Functions

Description:• 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

Page 10: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The OR function – EXAMPLE 1

Microsoft® Excel® Logical Functions

Page 11: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The OR function – EXAMPLE 2

Microsoft® Excel® Logical Functions

Q. Use the OR function to decide whether the employee gets overtime pay. The employee will receive overtime if they worked over 40 hours or worked on a holiday.A. =OR(B2>40, C2=“Yes”), etc.

Page 12: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The NOT function

Microsoft® Excel® Logical Functions

Syntax:

=NOT(logical)

Arguments:•logical Required

A value or expression that can be evaluated to TRUE or FALSE.

Page 13: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The NOT function

Microsoft® Excel® Logical Functions

Description:• Reverses the value of its argument.

Remarks:• If logical is FALSE, NOT returns TRUE• if logical is TRUE, NOT returns FALSE

Errors:None

Page 14: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The NOT function

Microsoft® Excel® Logical Functions

Page 15: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The IF function

Microsoft® Excel® Logical Functions

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.

Page 16: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The IF function

Microsoft® Excel® Logical Functions

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

Page 17: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The IF function

Microsoft® Excel® Logical Functions

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

Page 18: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The IF function – EXAMPLE 1

Microsoft® Excel® Logical Functions

value_if_true

[value_if_false]

Page 19: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The IF function – EXAMPLE 2

Microsoft® Excel® Logical Functions

Q. Which students will receive the Dean’s List Award for the semester? The award is given to students with a 3.5 or better GPA.

A. =IF(B2>=3.5, “Dean’s List”, “No Award”), etc.

Page 20: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

Microsoft ExcelInformation Functions

ISBLANK=ISBLANK(value)

ISNUMBER=ISNUMBER(value)

Page 21: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The ISBLANK function

Microsoft® Excel® Information Functions

Syntax:

=ISBLANK(value)

Arguments:•value Required

The value that you want tested

Page 22: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The ISBLANK function

Microsoft® Excel® Information Functions

Description:• Returns TRUE if value refers to a blank cell.

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

Page 23: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The ISBLANK function-Example

A B C1 Data2 Gold

3 Region1

4 #REF!5 330.926 #N/A7 Formula Description Result8 =ISBLANK(A2) Checks whether cell A2 is blank. FALSE

Page 24: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The ISNUMBER function

Microsoft® Excel® Information Functions

Syntax:

=ISNUMBER(value)

Arguments:•value Required

The value that you want tested

Page 25: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The ISNUMBER function

Microsoft® Excel® Information Functions

Description:• Returns TRUE if value refers to a number.

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

Page 26: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The ISNUMBER function-Example

A B C1 Data2 Gold

3 Region1

4 #REF!5 330.926 #N/A7 Formula Description Result13=ISNUMBER(A5) Checks whether the value in cell A5, 330.92, is a number. TRUE

Page 27: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The ISERR function

Microsoft® Excel® Information Functions

Syntax:

=ISERR(value)

Arguments:•value Required

The value that you want tested

Page 28: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The ISERR function

Microsoft® Excel® Information Functions

Description:• Returns TRUE if value refers to any error value except #N/A.

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

Page 29: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The ISERROR function

Microsoft® Excel® Information Functions

Syntax:

=ISERROR(value)

Arguments:•value Required

The value that you want tested

Page 30: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The ISERROR function

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

Page 31: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The ISNA function

Microsoft® Excel® Information Functions

Syntax:

=ISNA(value)

Arguments:•value Required

The value that you want tested

Page 32: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The ISNA function

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

Page 33: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The ISNA function

Microsoft® Excel® Information Functions

Page 34: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The ISNA function

Microsoft® Excel® Information Functions

Page 35: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The SUMIF function

Microsoft® Excel® Mathematical Functions

Syntax:

=SUMIF(range, criteria, [sum_range])

Arguments:•range Required

The range of cells that you want evaluated by criteria.o Cells in each range must be numbers or names, arrays, or references that contain

numbers.o Blank and text values are ignored.

criteria Required The criteria in the form of a number, expression, a cell reference, text, or a function that

defines which cells will be added.o Criteria can be expressed as 32, ">32", B5, "32", "apples", or TODAY().

•sum_range Optional The actual cells to add, if you want to add cells other than those specified in the range

argument.o Excel adds the cells that are specified in the range argument (the same cells to which

the criteria is applied).

Page 36: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The SUMIF function

Microsoft® Excel® Mathematical Functions

Description:• Sums the values in a range that meet criteria that you specify.

Remarks:• See the Microsoft® Excel® help for additional remarks.

Errors:None

Page 37: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The SUMIF function – EXAMPLE 1

Microsoft® Excel® Mathematical Functions

Page 38: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The SUMIF function – EXAMPLE 2

Microsoft® Excel® Mathematical Functions

Q. What is the total amount spent over budget for all the groups? What is the total amount spent under budget for all the groups?

A. =SUMIF(D2:D8, “>0”, D2:D8) (for over budget) =-SUMIF(D2:D8, “<0”, D2:D8) (for under budget)

Page 39: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

Microsoft ExcelStatistical Functions

AVERAGEIF=AVERAGEIF(range, criteria, [average_range])

COUNTIF=AVERAGEIF(range, criteria, [average_range])

COUNTA=COUNTA(value1, [value2],...)

MAX=MAX(number1,[number2],...)

MIN=MIN(number1,[number2],...)

LARGE =LARGE(array,k)

SMALL =LARGE(array,k)

Page 40: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The AVERAGEIF function

Microsoft® Excel® Statistical Functions

Syntax:

=AVERAGEIF(range, criteria, [average_range])

Arguments:•range Required

One or more cells to average, including numbers or names, arrays, or references that contain numbers.

•criteria Required The criteria in the form of a number, expression, cell reference, or text that

defines which cells are averaged.•average_range Optional

The actual set of cells to average.

Page 41: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The AVERAGEIF function

Microsoft® Excel® Statistical Functions

Description:• Returns the average (arithmetic mean) of all the cells in a range that meet

a given criteria.

Remarks:• If average_range is omitted, range is used.• Cells in range that contain TRUE or FALSE are ignored.• If a cell in average_range is an empty cell, AVERAGEIF ignores it.• If a cell in criteria is empty, AVERAGEIF treats it as a 0 value.

Errors:#DIV/0 – If range is a blank or text value.

#DIV/0 – If no cells in the range meet the criteria.

Page 42: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The AVERAGEIF function

Microsoft® Excel® Statistical Functions

=AVERAGEIF(B2:B5,"<23000")

Page 43: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The AVERAGEIF function

Microsoft® Excel® Statistical Functions

=AVERAGEIF(B2:B5,"<23000")=14000

Page 44: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The AVERAGEIF function

Microsoft® Excel® Statistical Functions

=AVERAGEIF(A2:A5,"<95000")

Page 45: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The AVERAGEIF function

Microsoft® Excel® Statistical Functions

=AVERAGEIF(A2:A5,"<95000")=#DIV/0

Page 46: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The AVERAGEIF function

Microsoft® Excel® Statistical Functions

=AVERAGEIF(A2:A5,">250000",B2:B5)

Page 47: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The AVERAGEIF function

Microsoft® Excel® Statistical Functions

=AVERAGEIF(A2:A5,">250000",B2:B5)=24500

Page 48: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The AVERAGEIF function – EXAMPLE

Microsoft® Excel® Statistical Functions

Q. What is the average earnings of employees making more than 50,000?

A. =AVERAGEIF(B2:B5, “>50000”)

Page 49: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The COUNTIF function

Microsoft® Excel® Statistical Functions

Syntax:

=COUNTIF(range, criteria)

Arguments:•range Required

One or more cells to count, including numbers or names, arrays, or references that contain numbers.o Blank and text values are ignored.

criteria Required A number, expression, cell reference, or text string that defines which cells

will be counted.o Criteria can be expressed as 32, ">32", B4, "apples", or "32".

Page 50: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The COUNTIF function

Microsoft® Excel® Statistical Functions

Description:• Counts the number of cells within a range that meet a single criterion that

you specify.

Remarks:• See the Microsoft® Excel® help for additional remarks.• Criteria are case insensitive

Errors:None

Page 51: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The COUNTIF function – EXAMPLE 1

Microsoft® Excel® Statistical Functions

Page 52: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The COUNTIF function – EXAMPLE 2

Microsoft® Excel® Statistical Functions

Q. How many C’s were earned in the class?

A. =COUNTIF(A2:A21, “C”) = 4

Page 53: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The COUNTA function

Microsoft® Excel® Statistical Functions

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.

Page 54: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The COUNTA function

Microsoft® Excel® Statistical Functions

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

Page 55: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The COUNTA function

Microsoft® Excel® Statistical Functions

=COUNTA(A1:A8)

= 6

Page 56: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The MAX function

Microsoft® Excel® Statistical Functions

Syntax:

=MAX(number1,[number2],...)

Arguments:•number1, number2, ... Required

1 to 255 numbers for which you want to find the maximum value.

Page 57: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The MAX function

Microsoft® Excel® Statistical Functions

Description:• Returns the largest value in a set of values.

Remarks:• Arguments can either be numbers or names, arrays, or references that contain

numbers. • Logical values and text representations of numbers that you type directly into the list

of arguments are counted. • If an argument is an array or reference, only numbers in that array or reference are

used. Empty cells, logical values, or text in the array or reference are ignored.• If the arguments contain no numbers, MAX returns 0 (zero).

Errors:Arguments that are error values or text that cannot be translated into numbers cause errors.

Page 58: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The MAX function

Microsoft® Excel® Statistical Functions

Page 59: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The MIN function

Microsoft® Excel® Statistical Functions

Syntax:

=MIN(number1,[number2],...)

Arguments:•number1, number2, ... Required

1 to 255 numbers for which you want to find the minimum value.

Page 60: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The MIN function

Microsoft® Excel® Statistical Functions

Description:• Returns the smallest value in a set of values.

Remarks:• Arguments can either be numbers or names, arrays, or references that contain

numbers. • Logical values and text representations of numbers that you type directly into the list

of arguments are counted. • If an argument is an array or reference, only numbers in that array or reference are

used. Empty cells, logical values, or text in the array or reference are ignored.• If the arguments contain no numbers, MIN returns 0 (zero).

Errors:Arguments that are error values or text that cannot be translated into numbers cause errors.

Page 61: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The MIN function

Microsoft® Excel® Statistical Functions

Page 62: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The LARGE function

Microsoft® Excel® Statistical Functions

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.

Page 63: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The LARGE function

Microsoft® Excel® Statistical Functions

Description:• 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

Page 64: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=LARGE(array,k)

3rd largest number in the numbers in columns A and B

Page 65: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=LARGE(array,k)=LARGE(A2:B6

3rd largest number in the numbers in columns A and B

Page 66: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=LARGE(array,k)=LARGE(A2:B6,3)

3rd largest number in the numbers in columns A and B

Page 67: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=LARGE(array,k)=LARGE(A2:B6,3)

3rd largest number in the numbers in columns A and B

List the numbers in descending order:

7655444332

=5

Page 68: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=LARGE(array,k)

7th largest number in the numbers in columns A and B

Page 69: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=LARGE(array,k)=LARGE(A2:B6

7th largest number in the numbers in columns A and B

Page 70: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=LARGE(array,k)=LARGE(A2:B6,7)

7th largest number in the numbers in columns A and B

Page 71: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=LARGE(array,k)=LARGE(A2:B6,7)

7th largest number in the numbers in columns A and B

List the numbers in descending order:

7655444332

Page 72: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=LARGE(array,k)=LARGE(A2:B6,7)

7th largest number in the numbers in columns A and B

List the numbers in descending order:

7655444332

=4

Page 73: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The SMALL function

Microsoft® Excel® Statistical Functions

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.

Page 74: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The SMALL function

Microsoft® Excel® Statistical Functions

Description:• 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

Page 75: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=SMALL(array,k)

4th smallest number in first column

Page 76: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=SMALL(array,k)=SMALL(A2:A10

4th smallest number in first column

Page 77: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=SMALL(array,k)=SMALL(A2:A10,4)

4th smallest number in first column

List the numbers in ascending order:

233444567

Page 78: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=SMALL(array,k)=SMALL(A2:A10,4)

4th smallest number in first column

List the numbers in ascending order:

233444567

=4

Page 79: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=SMALL(array,k)

2nd smallest number in second column

Page 80: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=SMALL(array,k)=SMALL(B2:B10

2nd smallest number in second column

Page 81: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=SMALL(array,k)=SMALL(B2:B10,2)

2nd smallest number in second column

List the numbers in ascending order:

134788

122354

Page 82: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

=SMALL(array,k)=SMALL(B2:B10,2)

2nd smallest number in second column

=3

List the numbers in ascending order:

134788

122354

Page 83: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

Microsoft Excel Lookup Functions

VLOOKUP=VLOOKUP(lookup_value, table_array, col_index_num,

[range_lookup])

Page 84: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The VLOOKUP function

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.

Page 85: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The VLOOKUP function

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 86: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The VLOOKUP function

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 87: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The VLOOKUP function – Example 1

=VLOOKUP(“CPU”,A1:F9,5,FALSE)=VLOOKUP(“CPU”,A1:F9,5,FALSE)

=VLOOKUP(“CPU”,A1:F9,5,FALSE)=VLOOKUP(“CPU”,A1:F9,5,FALSE)

1 2 3 4 5

Page 88: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The VLOOKUP function – Example 2

Q. How much total profit was made on the item that costs $40.00?

A. =VLOOKUP(40,C2:F7,4,FALSE)

Page 89: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The HLOOKUP function

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 column of the table or range.•table_array Required

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

The row 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.

Page 90: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The HLOOKUP function

Microsoft® Excel® Lookup Functions

Description:• Searches the first row of a range of cells, and then returns a value from

any cell on the same column 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 91: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The HLOOKUP function – Example 1

=VLOOKUP(“Retail Value”,A1:F9,7,FALSE)=VLOOKUP(“Retail Value”,A1:F9,7,FALSE)

=VLOOKUP(“Retail Value”,A1:F9,7,FALSE)=VLOOKUP(“Retail Value”,A1:F9,7,FALSE)

Page 92: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

The HLOOKUP function – Example 2

Q. How many motherboards did they sell?

A. =VLOOKUP(“Quantity”,A1:F9,6,FALSE)

Page 93: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

Some More Practice – EXAMPLE 1

Microsoft® Excel® Lookup Functions

Q. In the month with the most rainfall, how much damage did the rain cause?

A. =VLOOKUP(MAX(B2:B13),B2:D13,3)

= $250,000.00

Page 94: CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.

© 2010 REACH All Rights Reserved.

Some More Practice – EXAMPLE 2

Microsoft® Excel® Lookup Functions

Q. If flooding occurred and the damages exceeded $100,000, the state will receive natural disaster funding. Which months will the state receive natural disaster funding.

A. =IF(C2=“Yes”,IF(D2>100000, “Funds”, “No Funds”), “No Funds”)

OR =IF(AND(C2=“Yes,D2>100000),

“Funds”, “No Funds”)