0% found this document useful (0 votes)
3 views

Mathematical and Logical Function (4)

The document contains exercises related to data analysis using functions in spreadsheets, including logical functions (AND, OR, NOT), conditional statements (IF), and statistical functions (SUM, AVERAGE, COUNT). It provides examples of student data, their scores, and how to rank them based on performance, as well as instructions for calculating totals and averages for specific groups. Additionally, it includes exercises for data lookup and manipulation techniques such as VLOOKUP and INDEX.

Uploaded by

nhungkc29072006
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Mathematical and Logical Function (4)

The document contains exercises related to data analysis using functions in spreadsheets, including logical functions (AND, OR, NOT), conditional statements (IF), and statistical functions (SUM, AVERAGE, COUNT). It provides examples of student data, their scores, and how to rank them based on performance, as well as instructions for calculating totals and averages for specific groups. Additionally, it includes exercises for data lookup and manipulation techniques such as VLOOKUP and INDEX.

Uploaded by

nhungkc29072006
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 19

Exercise 1: AND, OR, NOT

a b c m=a>b
24 24 14 FALSE
2 12 32 FALSE
30 24 16 TRUE

Exercise 2: IF

1 Rank students based on their scores as follows using IF function


<=5 C
<=8 B
>8 A
2 Commendation for students with excellent grades and 2 or more scientific research topics

Student ID Full name Class Score


MA01 Trần Quỳnh Anh 56 2.00
MA02 Trương Ngọc Lâm 57 8.00
MA03 Cao Huyền Vũ 58 7.00
MA04 Trần Quỳnh Anh 59 9.00
MA05 Trần Thi Bích Lê 56 10.00
EC01 Nguyễn Văn Linh 57 7.00
EC02 Hà Văn Tú 56 5.00
EC03 Ngô Ánh Dương 56 8.00
EC04 Đào Thị Lê Nga 56 7.00
EC05 Trần Anh 59 5.50
AND OR
n=b>c and(m,n) or(m,n)
TRUE FALSE
FALSE FALSE
TRUE TRUE

g IF function

and 2 or more scientific research topics

Number of research topics Ranking Commendation


1C Not commended
0B Not commended
2B Not commended
4A commended
3A commended
2B Not commended
1C Not commended
1B Not commended
0B Not commended
0B Not commended
NOT
a#b
Data
Student ID Full name Class Score
MA01 Trần Quỳnh Anh 56 2.00
MA02 Trương Ngọc Lâm 57 8.00
MA03 Cao Huyền Vũ 58 7.00
MA04 Trần Quỳnh Anh 59 9.00
MA05 Trần Thi Bích Lê 56 10.00
EC01 Nguyễn Văn Linh 57 7.00
EC02 Hà Văn Tú 56 5.00
EC03 Ngô Ánh Dương 56 8.00
EC04 Đào Thị Lê Nga 56 7.00
EC05 Trần Anh 59 5.50

Exercise 1: SUM, SUMIF, SUMIFS


1 Calculate the total number of scientific research topics that students have participated in
2 Calculate the total number of scientific research topics of students of class 56
3 Calculate the total number of scientific research topics of A students of class 56

Exercise 2: AVERAGE, AVERAGEIF, AVERAGEIFS


1 Calculate the average number of research topics per student
2 Calculate the average number of research topics per student of class 56
3 Calculate the average number of research topics per student of class 56 and ranking A

Exercise 3: COUNT, COUNTIF, COUNTIFS


1 Count the number of students
2 Count the number of students ranking A
3 Count the number of students ranking A in class 56

Exercise 4: Frequency

Frequency
Bin Result
4 1
6 2
8 5
2
Number of research topics Ranking
1
0
2
4
3
2
1
1
0
0

hat students have participated in


of students of class 56
of A students of class 56

dent of class 56
dent of class 56 and ranking A
Data
Student ID Full name Class Score
MA01 Trần Quỳnh Anh 56 2.00
MA02 Trương Ngọc Lâm 57 8.00
MA03 Cao Huyền Vũ 58 7.00
MA04 Trần Quỳnh Anh 59 9.00
MA05 Trần Thi Bích Lê 56 10.00
EC01 Nguyễn Văn Linh 57 7.00
EC02 Hà Văn Tú 56 5.00
EC03 Ngô Ánh Dương 56 8.00
EC04 Đào Thị Lê Nga 56 7.00
EC05 Trần Anh 59 5.50

Exercise 1: MAX, MIN


1 Highest score in group of students: 10.00
2 Lowest score in group of students: 2.00

Exercise 2: DMAX, DMIN


1 Highest score of students in class 57
2 Highest score of students in class 56 and 57
3 Highest score of students in class 56 and ranking B
Number of research topics Ranking
1 Kém
0 Khá
2 Khá
4 Giỏi
3 Giỏi
2 Khá
1 Kém
1 Khá Class
0 Khá 57
0 Khá
Exercise 1: VLOOKUP, HLOOKUP

1 Find the average score and number of research topics of students with the following student codes

Student ID Score Number of research topics


EC01 7 2
MA01 2 1

Student ID Full name Class Score


MA01 Trần Quỳnh Anh 56 2.00
MA02 Trương Ngọc Lâm 57 8.00
MA03 Cao Huyền Vũ 58 7.00
MA04 Trần Quỳnh Anh 59 9.00
MA05 Trần Thi Bích Lê 56 10.00
EC01 Nguyễn Văn Linh 57 7.00
EC02 Hà Văn Tú 56 5.00
EC03 Ngô Ánh Dương 56 8.00
EC04 Đào Thị Lê Nga 56 7.00
EC05 Trần Anh 59 5.50

Exercise 2: MATCH, INDEX

MATCH Search for a value in a data range to return the relative position of the cell con
INDEX Returns the data of a cell in a data range based on the row index and column i

Column

Student ID Score Number of research topics


EC01 #VALUE!
Row
MA01

Exercise 3: Advanced exercises, find data based on multiple conditions

1 Find GPA based on Student's Name and Course

Full name Course Score


Trần Quỳnh Anh 56
Trần Quỳnh Anh 59

Student ID Full name Class Score


MA01 Trần Quỳnh Anh 56 2.00
MA02 Trương Ngọc Lâm 57 8.00
MA03 Cao Huyền Vũ 58 7.00
MA04 Trần Quỳnh Anh 59 9.00
MA05 Trần Thi Bích Lê 56 10.00
EC01 Nguyễn Văn Linh 57 7.00
EC02 Hà Văn Tú 56 5.00
EC03 Ngô Ánh Dương 56 8.00
EC04 Đào Thị Lê Nga 56 7.00
EC05 Trần Anh 59 5.50
wing student codes

Number of research topics


1
0
2
4
3
2
1
1
0
0

position of the cell containing that value.


row index and column index of that range

research topics

Number of research topics


1
0
2
4
3
2
1
1
0
0
Function Example
Date Today()
Text(A1,"ddd")
Text(A1,"dddd")
Text(A1,"dd/mm/yyyy")
Date
Month
Year
Day

Time

Time format h:mm


Convert to number of hours: format [hh]:mm
Convert time to hours
Convert time to minutes
Convert time to seconds
Convert time to number
Function Demonstration Example Result
Left Left(Example,2) abcde
Right Right(Example,3) abcde
Mid Mid(Example,2,3) abcde
Len Len(Example) abcde
Trim Trim(Example) abcde
Search Search("b",Example) aBab
Find Find("b",Example) aBab
space + *
Replace
* + space

1 Split Last name, middle and first name from Full name
2 If the SV code starts with MA, return the Marketing value. If it starts with EC, return the Econom

Student ID Full name Last name Middle name


MA01 Trần Quỳnh Anh
MA02 Trương Ngọc Lâm
MA03 Cao Huyền Vũ
MA04 Trần Quỳnh Anh
MA05 Trần Thi Bích Lê
EC01 Nguyễn Văn Linh
EC02 Hà Văn Tú
EC03 Ngô Ánh Dương
EC04 Đào Thị Lê Nga
EC05 Trần Anh
Descriptions

Remove leading and trailing spaces in a text


Find order of the text in a cell (case insensitive)
Find order of the text in a cell (case sensitive)
Replace with the text prior to space. Ex: Last name
Replace with the text after the space. Ex: First name

it starts with EC, return the Economic value.

First name Marketing/Economic


Số thẻ Customer's ID Customer's name Account type Currency Balance
MAS2101 63265246 Nguyễn Văn Hưng MASTER CARD JPY 33,000
AME3521 63265246 Nguyễn Văn Hưng AMERICAN CARD JPY 43,000
AME3522 63265246 Nguyễn Văn Hưng AMERICAN CARD JPY 43,000
VIS0202 63265246 Nguyễn Văn Hưng VISA CARD USD 33,000
VIS0203 63265246 Nguyễn Văn Hưng VISA CARD USD 33,000
MAS3798 63265246 Nguyễn Văn Hưng MASTER CARD RUB 463,000
VIS3861 63265246 Nguyễn Văn Hưng VISA CARD EUR 58,000
JBC3503 63265246 Nguyễn Văn Hưng JBC CARD JPY 43,000
JBC3504 63265246 Nguyễn Văn Hưng JBC CARD JPY 43,000
VIS3860 63265246 Nguyễn Văn Hưng VISA CARD EUR 58,000
MAS4602 45622462 Nguyễn Ngọc Ánh MASTER CARD JPY 43,000
MAS4601 45622462 Nguyễn Ngọc Ánh MASTER CARD JPY 43,000
MAS2515 45622462 Nguyễn Ngọc Ánh MASTER CARD RUB 28,000
JBC0001 45622462 Nguyễn Ngọc Ánh JBC CARD USD 18,000
JBC0002 45622462 Nguyễn Ngọc Ánh JBC CARD USD 18,000
JBC1500 45622462 Nguyễn Ngọc Ánh JBC CARD USD 28,000
MAS3501 45622462 Nguyễn Ngọc Ánh MASTER CARD USD 33,000
MAS2512 45622462 Nguyễn Ngọc Ánh MASTER CARD RUB 28,000
VIS1009 45622462 Nguyễn Ngọc Ánh VISA CARD GBP 23,000
MAS3506 45622462 Nguyễn Ngọc Ánh MASTER CARD USD 33,000
VIS1010 45622462 Nguyễn Ngọc Ánh VISA CARD GBP 23,000
AME0002 42436526 Phùng Chí Kiên AMERICAN CARD EUR 23,000
AME1021 42436526 Phùng Chí Kiên AMERICAN CARD JPY 33,000
JBC2501 42436526 Phùng Chí Kiên JBC CARD USD 28,000
JBC2502 42436526 Phùng Chí Kiên JBC CARD USD 28,000
AME1022 42436526 Phùng Chí Kiên AMERICAN CARD JPY 33,000
VIS3509 42436526 Phùng Chí Kiên VISA CARD GBP 33,000
MAS0011 42436526 Phùng Chí Kiên MASTER CARD RUB 63,000
MAS0012 42436526 Phùng Chí Kiên MASTER CARD RUB 63,000
MAS3515 42436526 Phùng Chí Kiên MASTER CARD USD 38,000
AME2502 36542662 Vũ Ngọc Mai AMERICAN CARD EUR 33,000
AME2503 36542662 Vũ Ngọc Mai AMERICAN CARD EUR 33,000
MAS1016 36542662 Vũ Ngọc Mai MASTER CARD USD 28,000
AME2010 36542662 Vũ Ngọc Mai AMERICAN CARD USD 28,000
AME2011 36542662 Vũ Ngọc Mai AMERICAN CARD USD 28,000
AME4505 36542662 Vũ Ngọc Mai AMERICAN CARD USD 73,000
MAS1001 36542662 Vũ Ngọc Mai MASTER CARD USD 23,000
MAS1002 36542662 Vũ Ngọc Mai MASTER CARD USD 23,000
MAS1015 36542662 Vũ Ngọc Mai MASTER CARD USD 28,000
VIS3501 36542662 Vũ Ngọc Mai VISA CARD USD 43,000
AME2046 35783265 Le Kim Ngân AMERICAN CARD JPY 23,000
AME4547 35783265 Le Kim Ngân AMERICAN CARD JPY 78,000
MAS3799 35783265 Le Kim Ngân MASTER CARD RUB 463,000
AME4510 35783265 Le Kim Ngân AMERICAN CARD USD 38,000
AME4511 35783265 Le Kim Ngân AMERICAN CARD USD 38,000
AME4545 35783265 Le Kim Ngân AMERICAN CARD JPY 78,000
JBC3565 35783265 Le Kim Ngân JBC CARD JPY 73,000
JBC3565 35783265 Le Kim Ngân JBC CARD JPY 73,000
MAS3791 35783265 Le Kim Ngân MASTER CARD RUB 463,000
MAS0013 35783265 Le Kim Ngân MASTER CARD RUB 18,000
MAS0014 35783265 Le Kim Ngân MASTER CARD RUB 18,000
VIS1360 31645326 Phạm Tuyết Mai VISA CARD EUR 48,000
AME2047 31645326 Phạm Tuyết Mai AMERICAN CARD JPY 68,000
AME4546 31645326 Phạm Tuyết Mai AMERICAN CARD JPY 33,000
AME2045 31645326 Phạm Tuyết Mai AMERICAN CARD JPY 68,000
VIS0201 31645326 Phạm Tuyết Mai VISA CARD RUB 31,000
MAS2511 31645326 Phạm Tuyết Mai MASTER CARD RUB 73,000
MAS2513 31645326 Phạm Tuyết Mai MASTER CARD RUB 73,000
AME2005 31645326 Phạm Tuyết Mai AMERICAN CARD USD 63,000
AME2010 31645326 Phạm Tuyết Mai AMERICAN CARD USD 63,000
VIS1362 31645326 Phạm Tuyết Mai VISA CARD EUR 48,000
JBC1003 26326236 Vũ Văn Sơn JBC CARD JPY 33,000
JBC1004 26326236 Vũ Văn Sơn JBC CARD JPY 33,000
JBC1065 26326236 Vũ Văn Sơn JBC CARD JPY 63,000
JBC1066 26326236 Vũ Văn Sơn JBC CARD JPY 63,000
VIS2702 26326236 Vũ Văn Sơn VISA CARD RUB 41,000
MAS3700 26326236 Vũ Văn Sơn MASTER CARD USD 118,000
MAS1200 26326236 Vũ Văn Sơn MASTER CARD USD 108,000
VIS2701 26326236 Vũ Văn Sơn VISA CARD RUB 41,000
JBC4000 26326236 Vũ Văn Sơn JBC CARD USD 38,000
JBC4001 26326236 Vũ Văn Sơn JBC CARD USD 38,000
MAS1200 26326236 Vũ Văn Sơn MASTER CARD USD 108,000
Balance in VND Issue Date Year Question 1:
6,831,000 1/21/2023 7/15/1905 Convert balance of each record to V
8,901,000 9/10/2023 USD
8,901,000 9/10/2023 GBP
770,022,000 1/5/2022 RUB
770,022,000 1/5/2022 JPY
164,365,000 5/5/2022 EUR
1,596,044,000 5/7/2023
8,901,000 10/23/2022 Question 2:
8,901,000 10/23/2022 Define name for each column
1,596,044,000 5/7/2023 Count the number of transactions
8,901,000 8/26/2023 Count the number of transactions in
8,901,000 8/26/2023 Calculate total deposit of all transac
9,940,000 10/15/2022 Calculate total doposit in Yen
420,012,000 5/1/2022 What is the highest deposit amount
420,012,000 5/1/2022 What is the highest deposit amount
653,352,000 1/20/2023 Calculate the average balance in VN
770,022,000 5/6/2023 What type of acount has the highest
9,940,000 10/15/2022 Find the 4 highest deposit balances
704,375,000 12/12/2023 Calculate total deposit by currency
770,022,000 5/6/2023 Calculate total deposit by year
704,375,000 12/12/2023 What customer has the highest total
632,914,000 5/10/2022
6,831,000 2/5/2023
653,352,000 12/4/2022
653,352,000 12/4/2022
6,831,000 2/5/2023
1,010,625,000 7/17/2023
22,365,000 2/1/2022
22,365,000 2/1/2022
886,692,000 9/15/2023
908,094,000 12/13/2022
908,094,000 12/13/2022
653,352,000 2/10/2023
653,352,000 2/10/2022
653,352,000 2/10/2022
1,703,382,000 8/6/2023
536,682,000 10/1/2023
536,682,000 10/1/2023
653,352,000 2/10/2023
1,003,362,000 8/10/2022
4,761,000 1/10/2023
16,146,000 10/8/2023
164,365,000 5/5/2023
886,692,000 9/15/2022
886,692,000 9/15/2022
16,146,000 10/8/2023
15,111,000 8/20/2023
15,111,000 8/20/2023
164,365,000 5/5/2023
6,390,000 3/12/2022
6,390,000 3/12/2022
1,320,864,000 10/2/2023
14,076,000 3/5/2023
6,831,000 8/15/2023
14,076,000 3/5/2023
11,005,000 3/5/2022
25,915,000 9/6/2022
25,915,000 9/6/2022
1,470,042,000 1/1/2023
1,470,042,000 1/1/2023
1,320,864,000 10/2/2023
6,831,000 3/20/2022
6,831,000 3/20/2022
13,041,000 1/15/2023
13,041,000 1/15/2023
14,555,000 10/8/2022
2,753,412,000 12/9/2023
2,520,072,000 5/6/2023
14,555,000 10/8/2022
886,692,000 8/25/2023
886,692,000 8/25/2023
2,520,072,000 5/6/2023
Question 1:
onvert balance of each record to VND based on the following exchange rate table:
23,334
30,625
355
207
27,518

Question 2:
efine name for each column
ount the number of transactions
ount the number of transactions in 2023
alculate total deposit of all transactions
alculate total doposit in Yen
What is the highest deposit amount in VND?
What is the highest deposit amount in VND in 2022?
alculate the average balance in VND
What type of acount has the highest average balance?
ind the 4 highest deposit balances
alculate total deposit by currency
alculate total deposit by year
What customer has the highest total deposit?

You might also like