You are on page 1of 101

01 03 04 05

WORKING
02 DATA DATA DATA
WITH EXTRACTION ANALYSIS MODELLING
SPREADSHEET BASIC AND
MANAGEMENT
FUNCTION
IN EXCEL

2
2.1. DATE AND TIME FUNCTION

2.2. LOGICAL FUNCTION

2.3. TEXT FUNCTION

2.4. MATH FUNCTION

2.5. STATISTICAL FUNCTION

2.6. LOOKUP AND REFERENCE FUNCTION


3
4
5
6
7
8
9
10
11
12
13
Days = C1 – B1

14
15
16
17
IF Test one condition; direct logical flow

Test multiple conditions, return TRUE if all are


AND
TRUE

Test multiple conditions, return TRUE if at least


OR one is TRUE

NOT Reverse criteria or results

18
19
=AND(B5>3,B5<9)
=OR(B5=3,B5=9)
=NOT(B5=2)
20
=IF (logical_test, [value_if_true], [value_if_false])

21
 Example:
= IF(C6<70,"F",IF(C6<75,"D",IF(C6<85,"C",IF(C6<95,"B","A"))))
22
23
 Example:

=IF(C6<70,"F",IF(C6<75,"D",IF(C6<85,"C",IF(C6<95,"B","A"))))

=IFS(C6<70,"F",C6<75,"D",C6<85,"C",C6<95,"B",C6>=95,"A")

24
Function Purpose Function Purpose

LEFT Extract text from the left of a FIND Get the location of text in a
string string
RIGHT Extract text from the Right of a SEARCH Get the location of text in a
string string
MID Extract text from inside a string REPLACE Replace text based on
location
TRIM Remove extra spaces from text SUBSTITUTE Replace text based on
content
LOWER Convert text to lower case TEXT Convert a number to text
in a number format
UPPER Convert text to upper case VALUE Convert text to a number

PROPER Capitalize the first letter in each CONCATENATE Join text together
word /CONCAT
LEN Get the length of text TEXTJOIN Join text values with a
delimiter
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
=

40
41
Wildcard

42
Wildcard
Usage Behavior Will match
? Any one character "A", "B", "c", "z", .
?? Any two characters "AA", "AZ", "zz", .
??? Any three characters "Jet", "AAA", "ccc", .
* Any characters "apple", "APPLE", "A100", .
*th Ends in "th" "bath", "fourth", .”??th”=bath, tath
c* Starts with "c" "Cat", "CAB", "cindy", "candy", .
?* At least one character "a", "b", "ab", "ABCD", .
???-?? 5 characters with hypen "ABC-99","100-ZT", .
*~? Ends in question mark "Hello?", "Anybody home?", .
*xyz* Contains "xyz" "code is XYZ", "100-XYZ", "XyZ90", .

43
Wildcard
Not all functions allow wildcards. Here is a list of the most common functions that
do:
• AVERAGEIF, AVERAGEIFS
• COUNTIF, COUNTIFS
• SUMIF, SUMIFS
• VLOOKUP, HLOOKUP
• MATCH
• SEARCH

44
Math Operators

45
Order of Operations

46
Math function PURPOSE
ABS Find the absolute value of a number
MOD Get the remainder from division
PRODUCT Get the product of supplied numbers
RAND Get a random number between 0 and 1
RANDBETWEEN Get a random integer between two values
ROMAN Converts numbers to Roman numerals
SUM Add numbers together
SUMIF Sum numbers in a range that meet supplied criteria
SUMIFS Sum cells that match multiple criteria
SUBTOTAL Get a subtotal in a list or database
ROUND Round a number to a given number of digits
ROUNDDOWN Round down to given number of digits
ROUNDUP Round a number up to a given number of digits
TRUNC Truncate a number to a given precision
INT Get the integer part of a number by rounding down
47
48
49
50
51
=SUM(F5:F12) // everything

=SUMIF(C5:C12,"red",F5:F12) // red only

=SUMIF(F5:F12,">50") // over 50

=SUMIFS(F5:F12,C5:C12,"red",D5:D12,"tx")
// red & tx

=SUMIFS(F5:F12,C5:C12,"blue",F5:F12,">50") // blue & >50

52
53
54
55
56
57
58
59
60
61
62
63
64
Statistical function Explanation
AVERAGE Get the average of a group of numbers
AVERAGEIF Get the average of numbers that meet criteria.
AVERAGEIFS Average cells that match multiple criteria
COUNT Count numbers
COUNTA Count the number of non-blank cells
COUNTBLANK Count cells that are blank
COUNTIF Count cells that match criteria
COUNTIFS Count cells that match multiple criteria
FREQUENCY Get the frequency of values in a data set
LARGE Get the nth largest value
SMALL Get the nth smallest value
MAX Get the largest value
MIN Get the smallest value.
MAXIFS Get maximum value with criteria
MINIFS Get minimum value with criteria
MEDIAN Get the median of a group of numbers
MODE Get most frequently occurring number
QUARTILE Get the quartile in a data set
RANK Rank a number against a range of numbers
RANK.AVG Rank a number against a range of numbers
RANK.EQ Rank a number against a range of numbers
65
Example:
=MAX(data) // largest
=MIN(data) // smallest

=LARGE(data,1) // 1st largest


=LARGE(data,2) // 2nd largest
=LARGE(data,3) // 3rd largest

=SMALL(data,1) // 1st smallest


=SMALL(data,2) // 2nd smallest
=SMALL(data,3) // 3rd smallest

66
67
68
69
70
=AVERAGEIFS(F5:F12,C5:C12,"red",D5:D12,"tx")

71
=COUNT(B5:F5) // count numbers
=COUNTA(B5:F5) //
count numbers and text
=COUNTIF(B5:F5,"") // count blanks

72
=COUNTIFS(C5:C12,"red",D5:D12,"TX") // red and tx
=COUNTIFS(C5:C12,"blue",F5:F12,">50") // blue > 50

73
74
75
76
Mid-term Exam Rank Rank.EQ Rank.AVG Consecutive Rank
5 11 11 11 11
7 8 8 8.5 8
7.5 7 7 7 7
8 5 5 5.5 5
8 5 5 5.5 6
6 10 10 10 10
7 8 8 8.5 9
8.5 3 3 3.5 3
8.5 3 3 3.5 4
9 1 1 1.5 1
9 1 1 1.5 2
77
78
=VLOOKUP(H3,B4:E13,3,FALSE) // last
=VLOOKUP(H3,B4:E13,4,FALSE) // email

79
80
Use HLOOKUP when lookup values are located in the first row of a table.
Use VLOOKUP when lookup values are located in the first column of a table.

81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101

You might also like