0% found this document useful (0 votes)
7 views35 pages

ENGG1003 Lab03 MoreExcel

Uploaded by

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

ENGG1003 Lab03 MoreExcel

Uploaded by

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

ENGG1003/1004

Digital Literacy and


Computational Thinking—P/R

Lab 03 More Excel


2023-24 Term 1
Lab 02 Revision

We have done these in the previous lab:


Perform calculations, e.g., BMI, on Excel worksheet
cells
Copy cells with formulas
Perform statistical calculations: MAX, MIN, AVERAGE,
Standard Deviation (Population), and MEDIAN
Conditional formatting
Make a Scatter Plot for data visualization
Lab 03 Activities

Setup Excel on your computer (through CUHK O365)

Download from Blackboard Lab03_StudentGPA.xlsx

Insert the Academic Honesty Declaration Statement to the [Declaration]


worksheet

Inspect the given worksheets [CourseList], [GradePointConversion],


[CourseGradeRecords], and [StudentGPA] (For bonus part:
[BONUS_CollegeAward])

Follow given steps to complete the file

Save your work in the same file

Upload and submit your saved file to Blackboard

Extras
Download Given Lab File

Download, Save properly and Open


Lab03_StudentGPA.xlsx

Save to folder ENGG1003\Lab03\ (or


ENGG1004\Lab03)…
You may move or copy the file from
Downloads\

OR Save to your OneDrive cloud storage


Recap: Save Your Work
Properly

Setup your own filing system: create a folder


for your works in ENGG1003/1004
Keep on your own computer, e.g., Documents
Keep on portable storage such as USB drive
Keep on cloud storage such as OneDrive (CUHK
O365)

Folder structure is hierarchical, i.e., tree-like


with branches called sub-folders
Academic Honesty and
Declaration Statement
You must read the University Guideline on Academic Honest (
https://www.cuhk.edu.hk/policy/academichonesty/), and place
the following declaration statement (with your information filled in) in cell A1 of a
worksheet named [Declaration] in your submitted Excel file

You should NOT share your file to others, regardless of your intention

You should NOT obtain other’s works by any means

Submitting the wrong file by “accident” will NOT be accepted as an excuse – so


please double-check which file you have submitted

I declare that the lab work here submitted is original


except for source material explicitly acknowledged,
and that the same or closely related material has not been
previously submitted for another course.
I also acknowledge that I am aware of University policy and
regulations on honesty in academic work, and of the
disciplinary
guidelines and procedures applicable to breaches of such
policy and regulations, as contained in the website.
University Guideline on Academic Honesty:
https://www.cuhk.edu.hk/policy/academichonesty/
Student Name : <your name>
Student ID : <your student ID>
Class/Section : <your class/section>
Date : <date>
Preview and Define
Worksheet [CourseList] Name

Go to worksheet [CourseList]
We want to define a name for the tableso it can be
referred easily later
Select Columns A and B by clicking on A and
dragging to B
And then…
Preview and Define
Worksheet [CourseList] Name

*Ribbon refers to the menu bar at the


top
Click *ribbon Formulas  Define Name
Change name to Course_unitsBe careful with letter cases and
spellings!
Click OK
Worksheet
[GradePointConversion]
Go to worksheet [GradePointConversion]
We want to define a name for the table so it can be
referred easily later
Select Columns A and B by clicking on A and
dragging to B
Click *ribbon Formulas  Define Name
Change name to Grade_pointsBe careful with letter cases and
spellings!
Click OK
See next page for the screenshot
We are going to

Worksheet fill in all yellow


boxes

[CourseGradeRecords]
Worksheet
[CourseGradeRecords]Lookup
Grade Points
Each row contains a course grade record
Row 1 is usually for field names, i.e., attribute or
header
Let's focus on row 2, leaving other rows alone

Click cell E2, enter this formula:


= VLOOKUP(D2, Grade_points, 2, FALSE)

What do you see? Do you understand the parameters?


Copy the cell formula to the remaining records in
column E (up to E51)
Worksheet
[CourseGradeRecords]Lookup
Course Units
Let's focus on row 2, leaving other rows alone

Click cell F2, enter this formula:


= VLOOKUP(B2, Course_units, 2, FALSE)

What do you see? Do you understand the parameters?

Copy the cell formula to the remaining records in


column F (up to F51)
Worksheet [CourseGradeRecords]
Calculate Weighted Converted
Points
Let's focus on row 2, leaving other rows alone

Click cell G2, enter this formula:


= E2 * F2


What do you see?

Copy the cell formula to the remaining records in


column G (up to G51)
You shall fill in correct formulas; the above numbers are just for
We are going to
Worksheet [StudentGPA] fill in all yellow
boxes
Worksheet [StudentGPA]

Click cell B2, enter this formula:


=COUNTIF(CourseGradeRecords!C:C, A2)

Click cell C2, enter this formula:


=SUMIF(CourseGradeRecords!C:C, A2, CourseGradeRecords!F:F)

Click cell D2, enter this formula:


=SUMIF(CourseGradeRecords!C:C, A2, CourseGradeRecords!G:G)

What do you see?

Why does SUMIF() take one more parameter?


Worksheet [StudentGPA]

Click cell E2, enter this formula:


= D2 / C2

You have completed the row for the first student record

Drag and fill columns B to E of the remaining records up to row


11
Worksheet [StudentGPA]
To display the GPA values in 2 decimal
places:
Select column E
Right-click* column E
Select “Format Cells…” inthe right-click
menu
Select “Number” in Category
Decimal places: 2 (default)
Click OK
Alternative method:
Try here in the Home ribbon

* How to right-click on Mac


https://support.apple.com/en-gb/guide/mac-
Worksheet [StudentGPA]

To highlight the GPA value > 3:


Select cells E2:E11
Ribbon  Home  Conditional Formatting  Highlight Cells
Rules  Greater Than…  Enter 3 with Green Fill with …
To find the number of students with GPA > 3, click cell G2,
enter this formula:
= COUNTIF(E2:E11, ">3")
Worksheet [StudentGPA]Filled
with Proper Formulas!

You shall fill in correct formulas; the above numbers are just for
verification!
Back to
Worksheet [CourseGradeRecords],
insert Pivot Table
[CourseGradeRecords]

You shall fill in correct formulas; the above numbers are just for
Worksheet
[CourseGradeRecords]
Click cell A1

Ribbon Insert  PivotTable  OK(I.e., using defaults)


Worksheet Rename Be careful with the letter cases and
[PivotTableSummary]
spellings!
Pick PivotTable Fields

Pick Course Code, Student ID, and


Grade
Drag Field Item

Drag fields items to these


positions
Fix the Row Label Order
We want to have the order of “A A- B+ B B- C+ C C- D+ D F”
instead
Fix the Row Label Order

Right-click cell F4 (the one with B+) to open the


menu
Choose Move  Move “B+” Up/Down
The column for “B+” will be moved to the left/right
Fix the Row Label Order

Repeat the process on B+ and other grades until


the row label order is fixed (see the screenshot
below):
Bonus Part
[BONUS_CollegeAward]
A certain college has award for its students who
satisfy both of the following two criteria:
GPA > 3.5
Obtained at least one grade A
The students in this college are listed in the
[BONUS_CollegeAward] worksheet under the same
Excel file
Do NOT add or remove any student record from
this list
Bonus Part
[BONUS_CollegeAward]
Task 1: Find who are eligible for the college award by completing B2:D7
with formulas in [BONUS_CollegeAward]
You MUST use proper formulas for cells B2:D7
That is, you should NOT just input those displayed values yourself!
The values should be the results calculated by Excel according to your
formulas
Cells D2:D7 should display either “Yes” or “No”, but they are still the results of
your formulas
You may find the following functions useful:
VLOOKUP()
Hint 1: the cell addresses in the Pivot Table can also be used as the VLOOKUP()
argument
Hint 2: you can trace the GPA values from worksheet [StudentGPA] column E
IF()
AND()
Bonus Part
[BONUS_CollegeAward]
Task 2: Highlight cells D2:D7 by conditional formatting
Yes  Green Fill with …
No  Light Red Fill with …
Task 3: Display the GPA values (cells B2:B7) in 2 decimal places by using
“Format Cells” in the right-click menu
Note that 4 should be displayed as 4.00

Task 4: Sort the table in this worksheet according to GPA in descending


order
Do not sort the tables in other worksheets

Submit your file with Bonus part instead of the regular one
Bonus Part
[BONUS_CollegeAward]

This screenshot is just for your verification!


Blackboard Submission

Login Blackboard course ENGG1003/1004


Go to Lab 03 MoreExcel online submission form
Under [Upload Files], Browse and select your
saved file Lab03_StudentGPA.xlsx from your
newly created folder
NO need to “Create Submission” or “Add
Comments”
Click [Submit] button
ExtrasSelf-revision and
self-testing
Submit your file first. Then after
submission, experience with PivotTable
Tick more fields
Drag fields around
Try different grouping by ordering fields under
ROWS section
Change Value Field Settings under VALUES
section
Make sure your submitted file has the right
fields in the right place as required in p26!

You might also like