4 Advanced Functions in MS Excel 2
4 Advanced Functions in MS Excel 2
File Tab
Ribbon
Zoom Controls
View Buttons
New Tabs
Data
View
Sheets Tab
Create New
Sheet
Columns
Cells
Rows
DATA TYPES
TEXT
Consists of letters, numbers with symbol except comma (,) and
symbols
Left aligned when entered in a cell
Example: “Etech”, 890-2346
NUMBER
Consists of numbers from 0 to 9
Right aligned when entered in a cell
300,000
DATA TYPES
FORMULA
an expression which calculates the value of a
cell.
FUNCTION
are predefined formulas and are already
available in Excel.
The Anatomy of a Formula
Operator
Asterisk (*) = Reference
Multiplication Name of specific
cell to use
=(1 * A8)
Constants
Built-in Formulas Values entered
directly into a
formula
The Anatomy of a Formula
=SUM(A8:A12)
Function Reference
Name Name of specific
Built-in Formulas cell to use
How to Create Formulas
=FUNCTION(Cells)
Function Formula Cell Formula
Sum =SUM( ) , Separated cells
Average =AVERAGE( ) : Range of consecutive cells
Today() =TODAY() () [} Enclosure of cells
Concatenate =CONCAT( ) *-/x Basic Operations
TEXT FUNCTION
BAHTTEXT function
Converts a number to text, using the ß (baht) currency
format
CHAR function
Returns the character specified by a number. Use CHAR
to translate code page numbers you might get from files
on other types of computers into characters.
CODE function
Returns a numeric code for the first character in a text string. The
returned code corresponds to the character set used by your computer.
CONCATENATE function
to join two or more text strings into one string.
CONCATENATE function
to join two or more text
strings into one string.
DOLLAR function
converts a number to text using currency format, with
the decimals rounded to the number of places you
specify.
EXACT function
Compares two text
strings and returns
TRUE if they are
exactly the same,
FALSE otherwise.
EXACT is case-
sensitive but ignores
formatting
differences. Use
EXACT to test text
being entered into a
LEFT functions
LEFT returns the
first character or
characters in a
text string, based
on the number of
characters you
specify.
LEN function
returns the number of characters in a text string.
LOWER function
Converts all uppercase letters in a text string to lowercase.
MID function
MID returns a
specific number
of characters
from a text
string, starting at
the position you
specify, based on
the number of
characters you
specify.
PROPER function
Capitalizes the first
letter in a text string
and any other
letters in text that
follow any character
other than a letter.
Converts all other
letters to lowercase
letters.
REPLACE function
replaces part
of a text string,
based on the
number of
characters you
specify, with a
different text
string.
REPT function
Repeats text a given number of times. Use REPT to fill a
cell with a number of instances of a text string.
RIGHT function
returns the
last character
or characters
in a text
string, based
on the number
of characters
you specify.
SUBSTITUTE function
Substitutes new_text for
old_text in a text string.
Use SUBSTITUTE when
you want to replace
specific text in a text
string; use REPLACE
when you want to
replace any text that
occurs in a specific
location in a text string.
TRIM function
Removes all spaces from text except for single spaces
between words. Use TRIM on text that you have received
from another application that may have irregular spacing.
UPPER function
Converts text to uppercase.
MATH AND
TRIGONOMETRIC
FUNCTION
ABS function
Returns the
absolute value of a
number. The
absolute value of a
number is the
number without its
sign.
EVEN function
Returns number rounded up to the nearest even integer.
FACT function
Returns the
factorial of a
number. The
factorial of a
number is
equal to
1*2*3*...*
number.
GCD function
Returns the
greatest common
divisor of two or
more integers.
The greatest
common divisor
is the largest
integer that
divides both
number1 and
number2 without
a remainder.
LCM function
Returns the least common multiple of integers. The least
common multiple is the smallest positive integer that is a
multiple of all integer arguments number1, number2, and
so on. Use LCM to add fractions with different
denominators.
MOD function
Returns the remainder after number is divided by divisor.
The result has the same sign as divisor.
ODD function
Returns number rounded up to the nearest odd integer.
POWER function
Returns the result of a number raised to a power.
PRODUCT function
The PRODUCT
function multiplies
all the numbers
given as arguments
and returns the
product.
QOUTIENT function
Returns the integer portion of a division. Use this function
when you want to discard the remainder of a division.
ROMAN function
Converts an arabic numeral to roman, as text.
function
Determines the sign of a number. Returns 1 if the
number is positive, zero (0) if the number is 0, and -1 if
the number is negative.
SUM function
The SUM function adds values. You can add individual
values, cell references or ranges or a mix of all three.
For example:
• =SUM(A2:A10) Adds the values in cells A2:10.
• =SUM(A2:A10, C2:C10) Adds the values in cells A2:10,
as well as cells C2:C10.
DATE FUNCTION
DAY function
Returns the day of a date, represented by a serial number. The day is
given as an integer ranging from 1 to 31.
MONTH function
Returns the month of a date represented by a serial
number. The month is given as an integer, ranging from 1
(January) to 12 (December)
YEAR function
Returns the year corresponding to a date. The year is
returned as an integer in the range 1900-9999.
NOW function
turns the serial number of the current date and time.
TODAY function
The TODAY function returns the serial number of the
current date
LOGICAL
FUNCTION
AND function
Use
the AND function
, one of
the logical
functions, to
determine if all
conditions in a
test are TRUE.
IF function
the IF function is one of the most popular
functions in Excel, and it allows you to make
logical comparisons between a value and
what you expect.
So an IF statement can have two results. The
first result is if your comparison is True, the
second if your comparison is False.
How to Use the IF Function
1. Create the table with rows & columns of
data.
2. Determine the IF Criteria or Conditions.
3. Select the desired cell to put the results in.
4. Go to the HOME/FORMULA tab, find the
AUTOSUM Command.
How to Use the IF Function
Cell Returned
Reference Values
=IF(B12>=75, “PASSED”,”FAILED”)
IF Function
Criterion
Formula
VLOOKUP / HLOOKUP Function
VLOOKUP – Vertical
HLOOKUP - Horizontal
How to Use the VLOOKUP
Function
1. Create the table with rows & columns of data.
2. Create the LookUp Table (your criteria). Values
must be in ASCENDING ORDER.
3. Select the desired cell to put the results in.
4. Go to the HOME/FORMULA tab, find the
AUTOSUM Command.
How to Use the VLOOKUP
Function
5. Click the MORE FUNCTIONS.
6. Search VLOOKUP in the dialogue
box and select the function.
7. Click OK.
How to Use the VLOOKUP
Function
8. In the LOOKUP_VALUE box, type or select the
reference cell.
9. In the TABLE_ARRAY, select the entire LOOKUP
TABLE. Make it ABSOLUTE (Press F4).
10. In the COL_INDEX_NUM, type 2.
11. In the RANGE_LOOKUP, type TRUE (closest
match)or FALSE (exact match).
VLOOKUP / HLOOKUP Function
=VLOOKUP(B12,$N$3:$P$7,2,TRUE)
IF Function Vlookup
Formula Table