Excel Functions
Excel Functions
Excel Functions
Mathematical Functions
Sum function (Adds up all the
values in a range)
Sum if (Adds all the values in a The syntax for SUMIF is:
range that meet specific =SUMIF(range, criteria, [sum_range])
criteria)
Range: The range of cells to evaluate.
Criteria: The condition that defines which cells are to be
added.
Sum range :The actual cells to sum.
Sumifs(Adds values in a range he syntax for the SUMIFS function is:
based on multiple criteria) =SUMIFS(sum_range, criteria_range1, criteria1, ...)
1
Excel Functions
Statistical functions
Count (Counts all the values in The syntax for the Count function is:
a range) =COUNT(value1, [value2], ...)
CountA (Counts all non-empty The syntax for the COUNTA function is:
cells in a range) =COUNTA(value1,value2,...)
Countblank(Counts all blank The syntax for the COUNTBLANK function is:
cells in a range) =COUNTBLANK(range)
Countif(Counts all the cells in a The syntax for COUNTIF is:
range that meet specific critera) =COUNTIF(range, criteria)
2
Excel Functions
Averageif (Calculates the The syntax for the AVERAGEIF function is:
average of a range of values =AVERAGEIF(range, criteria, [average_range])
that meet specific criteria)
Range: The range of cells you want to test.
Criteria: The criteria the records have to meet to be
included.
RANGE OF CELLS
Max (Finds the maximum value in a The syntax for the Max function is:
range) =MAX(number1, [number2], ...)
Min (Finds the minimum value in a The syntax for the Min function is:
range) =MIN(number1, [number2], ...)
MaxIFS(max_range, criteria_range1, Max range is: the actual range of cells in which
criteria1,..) the maximum value will be determined.
3
Excel Functions
MinIFS(min_range, criteria_range1, Min range is: the actual range of cells in which
criteria1,..) the minimum value will be determined.
String Functions
LEFT (displays a specified number of Syntax:
characters from the left-hand side of a =LEFT(Text,Number of characters required)
piece of text)
RIGHT (displays a specified number of Syntax:
characters from the right hand side of =RIGHT(Text,Number of characters required
a piece of text)
MID ( returns the characters from the = MID ( Text , Start_num , Num_chars )
middle of a text string, given a starting
position and length ) Text - the string containing the desired data.
Start_num - specifies the starting character
from the left of the string to be kept.
Num_chars - specifies the number of
characters to the right of the Start_num to be
retained.
SEARCH (Locates the position of a SEARCH( search_text, within_text, [start_num] )
character within a string)
search_text -The character or text string that
you wish to search for. (write it between “”)
NOT CASE SENSETIVE
within_text -The text string that is to be
searched
[start_num] -
An optional argument that specifies the position
of the character from which the search should
begin
Find(Locates the position of a Same as Search
character within a string)
CASE SENSETIVE
LEN (Returns the number of characters LEN(a string of text)
in a text string)
CONCATENATE ( Joins separate pieces CONCATENATE(text1, [text2], ...)
of text into one item)
&( Joins separate pieces of text into =text1&text2..&text4
one item)
4
Excel Functions
5
Excel Functions
6
Excel Functions
WEEKDAY(serial_number, =WEEKDAY(A2)
[returntype])
Returns the day of the week
corresponding to a date. The day is
given as an integer, ranging from 1
(Sunday) to 7 (Saturday), by default
Note: we can subtract two dates and it will give the interval in days.
To find the difference in months we find difference in years multiplied by 12 then
add to it the difference in months.
Date value (date_text) Use DATEVALUE to convert a date
represented by text to a serial
number.
YEARFRAC(start_date,end_date,basis) YEARFRAC(start_date,end_date,basis)
7
Excel Functions
actual time)
=hour(serial number) =hour(A2)
serial number is the time
HOUR(Show the hour of the day based upon
a time or a number)
=MINUTE(A2) =MINUTE(A2)
MINUTE(Show the minute based upon a
time or number)
=SECOND(A2)
SECOND(Show the second based upon a
time or number)
=now() =now()
NOW(Shows the current date and time)
1 minute=60 seconds
1hour=60 minute= (60*60) seconds
Always add minutes with minutes, seconds with seconds
Never use inhomogeneous time units
To find a time interval subtract the start time from the finish time.
Logical Functions (Conditional)
IF(logical test, [value if true], [value if This is simple if statement with one condition
false]) to test
8
Excel Functions
IFERROR(value, value if error) Returns value if error if expression is an error, and the
value of the expression itself otherwise
ISNONTEXT(value) Checks whether a value is not text (blank cells are not
text), and returns true or false
BIN2HEX(number,[places])
HEX2BIN(number,[places])
DEC2HEX(number,[places])
HEX2DEC(number) Notice that conversion to decimal places does
not need number of places
Code(text) returns a numeric code for the first character in a
given text string
e.g code(“A”) will result in 65
Char(number) returns the character with the given ASCII decimal
code.
Char(65) will result in A
Rank(number,ref,[order]) returns the statistical rank of a given value within
a supplied array of values
9
Excel Functions
10
Excel Functions
#DIV/0 Division by zero The division operation in your formula refers to a cell
that contains the value 0 or is blank.
#N/A No value available Especially generated when using lookup functions and
values are not found
#NAME? Excel doesn’t recognize a This error value appears when you incorrectly type the
name range name, refer to a deleted range name, or forget
to put quotation marks around a text string in a
formula.
#NULL! You specified an intersection It is usually the result of a typo where a space
of two cell ranges whose cells character is used instead of a comma (,) or colon (:)
don’t actually intersect between two cell references.
#NUM! Problem with a number in the when you've entered a numeric value using a data
formula type or a number format that's not supported in the
argument section of the formula
#REF! Invalid cell reference This error occurs when you delete a cell referred to in
the formula or if you paste cells over the ones referred
to in the formula.
#VALUE! Wrong type of argument in a This error is most often the result of specifying a
function or wrong type of mathematical operation with one or more cells that
operator contain text.
11
Excel Functions
Wild cards
Filtering
Original data:
Find/replace
12
Excel Functions
13
Excel Functions
14