0% found this document useful (0 votes)
4 views16 pages

ENGR 111 Lecture 15 - Excel 6

The document provides an overview of built-in functions in Excel, emphasizing the definition and usage of functions, including categories such as financial, statistical, and math functions. It details specific useful math and trig functions, as well as referencing functions like VLOOKUP and logical functions such as IF. The content encourages users to explore Excel's functions for effective data manipulation and analysis.

Uploaded by

sps23lab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views16 pages

ENGR 111 Lecture 15 - Excel 6

The document provides an overview of built-in functions in Excel, emphasizing the definition and usage of functions, including categories such as financial, statistical, and math functions. It details specific useful math and trig functions, as well as referencing functions like VLOOKUP and logical functions such as IF. The content encourages users to explore Excel's functions for effective data manipulation and analysis.

Uploaded by

sps23lab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

ENGR 111 Lecture 15: Excel, Part 6

Built-In Functions
Referencing
=IF()

1
Functions in Excel

• We’ve already been exposed to some fundamental functions in Excel:


– SUM(), AVERAGE(), SIN(), COS(), etc.

• Let’s now formally define what a function is:

– “A function is a process or procedure that computes an output value based on


one or more input values.”
• These inputs are sometimes called arguments or parameters.

x y = f(x)
Process

2
Functions in Excel (cont’d)

• To use a function in Excel, you need to know:

– The function's name


– The number and type of input parameters
– The order of the input parameters
– The output type and value

• Fortunately, Excel provides a means to lookup functions with detailed


information on how to appropriately use them

3
Functions in Excel (cont’d)

• There are a number of function categories in


Excel:

– Financial
– Date and time
– Math and trig
– Statistical
– Lookup and reference
– Database
– Text
– Etc.

4
Functions in Excel (cont’d)

• We can use this interface if we want to use a given function:

– For example, if we want to place a formula in cell A2 to take the natural logarithm
of the contents of cell A1:

5
Functions in Excel (cont’d)

• Useful “Math & Trig” Functions:


ABS Returns the absolute value of a number
ACOS Returns the arccosine of a number
ACOSH Returns the inverse hyperbolic cosine of a number
ASIN Returns the arcsine of a number
ASINH Returns the inverse hyperbolic sine of a number
ATAN Returns the arctangent of a number
ATAN2 Returns the arctangent from x- and y-coordinates
ATANH Returns the inverse hyperbolic tangent
CEILING Rounds a number to the nearest

6
Functions in Excel (cont’d)

• Useful “Math & Trig” Functions (cont’d):


COMBIN Returns the number of combinations for a given number of
objects
COS Returns the cosine of a number
COSH Returns the hyperbolic cosine of a number
DEGREES Converts radians to degrees
EVEN Rounds a number up to the nearest even integer
EXP Returns e raised to the power of a given number
FACT Returns the factorial of a number
FACTDOUBLE Returns the double factorial of a number
FLOOR Rounds a number down, toward zero

7
Functions in Excel (cont’d)

• Useful “Math & Trig” Functions (cont’d):


GCD Returns the greatest common divisor
INT Rounds a number down to the nearest integer
LCM Returns the least common multiple
LN Returns the natural logarithm of a number
LOG Returns the logarithm of a number to a specified base
LOG10 Returns the base-10 logarithm of a number
MDETERM Returns the matrix determinant of an array
MINVERSE Returns the matrix inverse of an array
MMULT Returns the matrix product of two arrays
MOD Returns the remainder from division

8
Functions in Excel (cont’d)

• Useful “Math & Trig” Functions (cont’d):


MROUND Returns a number rounded to the desired multiple
MULTINOMIAL Returns the multinomial of a set of numbers
ODD Rounds a number up to the nearest odd integer
PI Returns the value of pi
POWER Returns the result of a number raised to a power
PRODUCT Multiplies its arguments
QUOTIENT Returns the integer portion of a division
RADIANS Converts degrees to radians
RAND Returns a random number between 0 and 1
RANDBETWEEN Returns a rand. number between the values specified

9
Functions in Excel (cont’d)

• Useful “Math & Trig” Functions (cont’d):


ROMAN Converts an Arabic numeral to Roman, as text
ROUND Rounds a number to a specified number of digits
ROUNDDOWN Rounds a number down, toward zero
ROUNDUP Rounds a number up, away from zero
SERIESSUM Returns the sum of a power series based
SIGN Returns the sign of a number
SIN Returns the sine of the given angle
SINH Returns the hyperbolic sine of a number
SQRT Returns a positive square root
SQRTPI Returns the square root of (number * pi)

10
Functions in Excel (cont’d)

• Useful “Math & Trig” Functions (cont’d):


SUBTOTAL Returns a subtotal in a list or database
SUM Adds its arguments
SUMIF Adds the cells specified by a given criteria
SUMPRODUCT Returns the sum of the products of arrays
SUMSQ Returns the sum of the squares of the arguments
SUMX2MY2 Returns the sum of the difference of squares of corresponding
values in two arrays
SUMX2PY2 Returns the sum of the sum of squares of corresponding values
in two arrays

11
Functions in Excel (cont’d)

• Useful “Math & Trig” Functions (cont’d):


SUMXMY2 Returns the sum of squares of differences of corresponding
values in two arrays
TAN Returns the tangent of a number
TANH Returns the hyperbolic tangent of a number
TRUNC Truncates a number to an integer

12
Reference Functions

• We can’t cover all of the available functions in one course.


– Many of the available built-in functions are pretty easy to learn and employ.
– You’re encouraged to take some time and review the available functions in Excel.

• Some, such as referencing functions, require a bit more discussion:


– For example, consider =VLOOKUP()

=VLOOKUP( lookup_value , table_array , col_index_num, range_lookup )

– While it may look daunting, it’s actually not so bad.

13
Reference Functions (cont’d)
=VLOOKUP( lookup_value , table_array , col_index_num )

– lookup_value:
• Value you’re searching for in Column 1 (leftmost column in a given table)
• Excel finds the row containing the largest entry in Column 1 that’s ≤ lookup_value

– table_array:
• Range of cells in your table (can reference range or a Name)
• Data in the table must be sorted such that Column 1 is ascending!

– col_index_num:
• Column containing data to be returned.

14
Reference Functions (cont’d)

• Let’s do a quick example looking at how VLOOKUP works:


– Specifically, we’ll lookup some grade information for a given class.

• We’ll also demonstrate the use of the Table Formatting tools in Excel
– This will allow us to quickly sort tables based on the data presented.

• Note that we’ll add to this later using the =IF() command
15
Logical Functions

• Another set of useful functions are logical functions, such as =IF()

=VLOOKUP( logital_test , value_if_true , value_if_false )

– logical_test:
• Any value of expression that can be evaluated to TRUE or FALSE

– value_if_true: We can also use


• Value returned if logical_test is TRUE! “nested” IF statements
(IF statements inside
of IF statements).
– value_if_false: We’ll use these
• Value returned if logical_test is FALSE! shortly...

16

You might also like